diff options
author | Thierry Thomas <thierry@FreeBSD.org> | 2010-08-28 15:56:43 +0000 |
---|---|---|
committer | Thierry Thomas <thierry@FreeBSD.org> | 2010-08-28 15:56:43 +0000 |
commit | eb2794183f6980b94d25fb3b7419a36092a2a008 (patch) | |
tree | e5f30b0e341f9f999924ada6341fd5dbc936d350 /textproc/jarnal | |
parent | 5c08fd594bc7ee0082dc89de65a7349cf4e3a1ac (diff) | |
download | ports-eb2794183f6980b94d25fb3b7419a36092a2a008.tar.gz ports-eb2794183f6980b94d25fb3b7419a36092a2a008.zip |
Notes
Diffstat (limited to 'textproc/jarnal')
-rw-r--r-- | textproc/jarnal/Makefile | 45 | ||||
-rw-r--r-- | textproc/jarnal/distinfo | 3 | ||||
-rw-r--r-- | textproc/jarnal/files/patch-jarnal.sh | 21 | ||||
-rw-r--r-- | textproc/jarnal/files/patch-jarnalannotate.sh | 16 | ||||
-rw-r--r-- | textproc/jarnal/pkg-descr | 7 | ||||
-rw-r--r-- | textproc/jarnal/pkg-plist | 22 |
6 files changed, 114 insertions, 0 deletions
diff --git a/textproc/jarnal/Makefile b/textproc/jarnal/Makefile new file mode 100644 index 000000000000..1b4f26b79d7e --- /dev/null +++ b/textproc/jarnal/Makefile @@ -0,0 +1,45 @@ +# New ports collection makefile for: jarnal +# Date created: 28 August 2010 +# Whom: Thierry Thomas <thierry@pompo.net> +# +# $FreeBSD$ +# + +PORTNAME= jarnal +PORTVERSION= 970 +CATEGORIES= textproc editors +MASTER_SITES= http://levine.sscnet.ucla.edu/general/software/tc1000/ +DISTNAME= ${PORTNAME}-install +DIST_SUBDIR= ${PORTNAME}-${PORTVERSION} + +MAINTAINER= thierry@FreeBSD.org +COMMENT= A tool to take notes, annotate documents (including PDF), and more + +RUN_DEPENDS= java:${PORTSDIR}/java/javavmwrapper + +USE_ZIP= yes +USE_JAVA= yes +JAVA_VERSION= 1.4+ + +LICENSE= GPLv2 + +NO_BUILD= yes +NO_WRKSUBDIR= yes + +SCRIPTS= jarnal.sh jarnalannotate.sh +LIBFILES= lbouncy_license.html lib-ver.txt jarnal-readme.txt + +pre-configure: + ${MV} ${WRKDIR}/lib/readme.txt ${WRKDIR}/lib/jarnal-readme.txt + ${REINPLACE_CMD} -e 's|%%JAVAJARDIR%%|${JAVAJARDIR}|' \ + -e 's|%%DATADIR%%|${DATADIR}|' ${SCRIPTS:S|^|${WRKDIR}/|} + +do-install: + ${MKDIR} ${JAVAJARDIR}/lib ${DATADIR}/templates + ${INSTALL_DATA} ${PORTNAME:S|^|${WRKDIR}/|:S|$|.jar|} ${JAVAJARDIR} + ${INSTALL_DATA} ${WRKDIR}/lib/*.jar ${JAVAJARDIR}/lib/ + ${INSTALL_DATA} ${LIBFILES:S|^|${WRKDIR}/lib/|} ${JAVAJARDIR}/lib/ + ${INSTALL_SCRIPT} ${SCRIPTS:S|^|${WRKDIR}/|} ${PREFIX}/bin/ + ${INSTALL_DATA} ${WRKDIR}/templates/* ${DATADIR}/templates/ + +.include <bsd.port.mk> diff --git a/textproc/jarnal/distinfo b/textproc/jarnal/distinfo new file mode 100644 index 000000000000..7624eb3b2670 --- /dev/null +++ b/textproc/jarnal/distinfo @@ -0,0 +1,3 @@ +MD5 (jarnal-970/jarnal-install.zip) = e0e5c8cbb1dded5873d42cf9c9f88c79 +SHA256 (jarnal-970/jarnal-install.zip) = 79fdaaf1214f44668ad7e78785bc0149d10fca2ff95ed782cf3ee5bc31a75c71 +SIZE (jarnal-970/jarnal-install.zip) = 12819263 diff --git a/textproc/jarnal/files/patch-jarnal.sh b/textproc/jarnal/files/patch-jarnal.sh new file mode 100644 index 000000000000..3f0b8b7e30bc --- /dev/null +++ b/textproc/jarnal/files/patch-jarnal.sh @@ -0,0 +1,21 @@ +--- jarnal.sh.orig 2009-09-02 15:02:32.000000000 +0200 ++++ jarnal.sh 2010-08-28 15:46:31.000000000 +0200 +@@ -1,14 +1,14 @@ +-#! /bin/bash ++#! /bin/sh + +-cd `dirname $0` ++cd %%JAVAJARDIR%% + if [ -d upgrade-lib ]; then + cp -fr lib old-lib + cp -fr upgrade-lib lib +- rm -fr upgrade-lib ++ rm -fr upgrade-lib + fi + if [ -f upgrade-jarnal.jar ]; then + cp -f jarnal.jar old-jarnal.jar + cp -f upgrade-jarnal.jar jarnal.jar + rm -f upgrade-jarnal.jar + fi +-java -Dfile.encoding=UTF-8 -Xmx192m -jar jarnal.jar -t templates/default.jaj "$1" "$2" "$3" "$4" "$5" ++java -Dfile.encoding=UTF-8 -Xmx192m -jar jarnal.jar -t %%DATADIR%%/templates/default.jaj "$1" "$2" "$3" "$4" "$5" diff --git a/textproc/jarnal/files/patch-jarnalannotate.sh b/textproc/jarnal/files/patch-jarnalannotate.sh new file mode 100644 index 000000000000..0769efa06f1e --- /dev/null +++ b/textproc/jarnal/files/patch-jarnalannotate.sh @@ -0,0 +1,16 @@ +--- jarnalannotate.sh.orig 2009-09-02 16:04:31.000000000 +0200 ++++ jarnalannotate.sh 2010-08-28 16:34:02.000000000 +0200 +@@ -1,10 +1,10 @@ +-#! /bin/bash ++#! /bin/sh + +-cd `dirname $0` ++cd %%JAVAJARDIR%% + if [ -d upgrade-lib ]; then + cp -fr lib old-lib + cp -fr upgrade-lib lib +- rm -fr upgrade-lib ++ rm -fr upgrade-lib + fi + if [ -f upgrade-jarnal.jar ]; then + cp -f jarnal.jar old-jarnal.jar diff --git a/textproc/jarnal/pkg-descr b/textproc/jarnal/pkg-descr new file mode 100644 index 000000000000..5da6e8ce5fd1 --- /dev/null +++ b/textproc/jarnal/pkg-descr @@ -0,0 +1,7 @@ +Jarnal is an open-source application for notetaking, sketching, keeping a +journal, making a presentation, annotating a document - including pdf - or +collaborating using a stylus, mouse or keyboard. It is similar to Microsoft +Windows Journal and to the earlier Mimeo whiteboarding and Palm notepad +applications. + +WWW: http://levine.sscnet.ucla.edu/general/software/tc1000/jarnal.htm diff --git a/textproc/jarnal/pkg-plist b/textproc/jarnal/pkg-plist new file mode 100644 index 000000000000..0783d8735174 --- /dev/null +++ b/textproc/jarnal/pkg-plist @@ -0,0 +1,22 @@ +bin/jarnal.sh +bin/jarnalannotate.sh +%%DATADIR%%/templates/annotate.jaj +%%DATADIR%%/templates/default.jaj +%%DATADIR%%/templates/tab-email.jaj +%%DATADIR%%/templates/text.jaj +%%JAVAJARDIR%%/jarnal.jar +%%JAVAJARDIR%%/lib/bcprov-jdk14-119.jar +%%JAVAJARDIR%%/lib/cid.jar +%%JAVAJARDIR%%/lib/itext-1.2.jar +%%JAVAJARDIR%%/lib/jai_codec.jar +%%JAVAJARDIR%%/lib/jai_core.jar +%%JAVAJARDIR%%/lib/jai_imageio.jar +%%JAVAJARDIR%%/lib/jarnal-readme.txt +%%JAVAJARDIR%%/lib/jdom.jar +%%JAVAJARDIR%%/lib/jpedalt.jar +%%JAVAJARDIR%%/lib/lbouncy_license.html +%%JAVAJARDIR%%/lib/lib-ver.txt +@dirrmtry %%JAVAJARDIR%%/lib +@dirrmtry %%JAVAJARDIR%% +@dirrm %%DATADIR%%/templates +@dirrm %%DATADIR%% |