From 7f0ed111c7dde7444586f60c07a900ed839f3484 Mon Sep 17 00:00:00 2001 From: Robert Allen Date: Wed, 12 May 2010 23:27:39 +0200 Subject: [PATCH] academic/jpicedt: Added to 12.2 repository --- academic/jpicedt/README | 12 ++++++ academic/jpicedt/jpicedt.SlackBuild | 65 +++++++++++++++++++++++++++++ academic/jpicedt/jpicedt.info | 8 ++++ academic/jpicedt/jpicedt.sh | 11 +++++ academic/jpicedt/slack-desc | 19 +++++++++ 5 files changed, 115 insertions(+) create mode 100644 academic/jpicedt/README create mode 100644 academic/jpicedt/jpicedt.SlackBuild create mode 100644 academic/jpicedt/jpicedt.info create mode 100644 academic/jpicedt/jpicedt.sh create mode 100644 academic/jpicedt/slack-desc diff --git a/academic/jpicedt/README b/academic/jpicedt/README new file mode 100644 index 0000000000..ddc93e1dee --- /dev/null +++ b/academic/jpicedt/README @@ -0,0 +1,12 @@ +jPicEdt is a software aimed at alleviating the burden of using PSTricks, +eepic or LaTeX's picture environment macros in a LaTeX file. It allows the +user to draw graphical objects using graphic primitives (e.g. splines, +arcs, polygons,...), position them easily with the mouse, and add text +using LaTeX/PSTricks box commands (e.g. dashbox, psframebox,...). + +This is a repackaging of the JPicEdt distribution jar archive. + +There is a required pstricks-add.{sty,tex} available in add-ons/Tex-macros +of the source. The versions supplied with Slackware's tetex package are +newer and seem to work fine by default; however, if you encounter any problems +with it, you might try using the files supplied with JPicEdt. diff --git a/academic/jpicedt/jpicedt.SlackBuild b/academic/jpicedt/jpicedt.SlackBuild new file mode 100644 index 0000000000..fb9095710d --- /dev/null +++ b/academic/jpicedt/jpicedt.SlackBuild @@ -0,0 +1,65 @@ +#!/bin/sh + +# Copyright 2008 Robert Allen - slacker@slaphappygeeks.com +# All rights reserved including Creator Endowed Unalienable Rights. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=jpicedt +VERSION=${VERSION:-1.4.1_03} +ARCH=i486 +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT + +mkdir -p $PKG/opt/$PRGNAM-$VERSION +unzip $CWD/jpicedt-install_1_4_1_03_20071021.jar -d $PKG/opt/$PRGNAM-$VERSION +# Add a convenience symlink to keep path simple +( cd $PKG/opt ; ln -s $PRGNAM-$VERSION $PRGNAM ) + +# Install a wrapper script to start jpicedit +mkdir -p $PKG/usr/bin +cp $CWD/jpicedt.sh $PKG/usr/bin/jpicedt +chmod 755 $PKG/usr/bin/jpicedt + +# Remove META-INF/, installer/, windows addons from the package +rm -rf $PKG/opt/$PRGNAM-$VERSION/{META-INF,installer,add-ons/windows} + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +( cd $PKG/usr/doc/$PRGNAM-$VERSION + for doc in \ + COPYING.txt quickstart.html readme.html api-doc help-files add-ons ; + do ln -s $PKG/opt/$PRGNAM-$VERSION/$doc . ; + done +) + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +chown -R root:root . +/sbin/makepkg -c n -l y $OUTPUT/${PRGNAM}-$VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/academic/jpicedt/jpicedt.info b/academic/jpicedt/jpicedt.info new file mode 100644 index 0000000000..2f4a12a665 --- /dev/null +++ b/academic/jpicedt/jpicedt.info @@ -0,0 +1,8 @@ +PRGNAM="jpicedt" +VERSION="1.4.1_03_20071021" +HOMEPAGE="http://jpicedt.sourceforge.net/" +DOWNLOAD="http://downloads.sourceforge.net/jpicedt/jpicedt-install_1_4_1_03_20071021.jar" +MD5SUM="bc1894efbe41c87e5767fb17c8a21d20" +MAINTAINER="Robert Allen" +EMAIL="slacker@slaphappygeeks.com" +APPROVED="rworkman" diff --git a/academic/jpicedt/jpicedt.sh b/academic/jpicedt/jpicedt.sh new file mode 100644 index 0000000000..65e8bd828a --- /dev/null +++ b/academic/jpicedt/jpicedt.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +# Java heap size, in megabytes +# Increase if you experience OutOfMemory errors (see quickstart.html) +JAVA_HEAP_SIZE=96 + +exec /usr/lib/java/bin/java \ + -Xmx${JAVA_HEAP_SIZE}m ${JPICEDT} \ + -classpath "${CLASSPATH}:/opt/jpicedt:/opt/jpicedt/lib/jpicedt.jar" \ + jpicedt.JPicEdt $@ + diff --git a/academic/jpicedt/slack-desc b/academic/jpicedt/slack-desc new file mode 100644 index 0000000000..e54b8ff5a6 --- /dev/null +++ b/academic/jpicedt/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +jpicedt: jpicedt (picture creator/editor for LaTeX and PSTricks) +jpicedt: +jpicedt: JPicEdt is an open source, multi-platform, and interactive picture +jpicedt: editor for LaTeX and PSTricks. +jpicedt: +jpicedt: Homepage: http://jpicedt.sourceforge.net/ +jpicedt: +jpicedt: +jpicedt: +jpicedt: +jpicedt: