aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/jzip.org
diff options
context:
space:
mode:
authorhq <hq@FreeBSD.org>2005-01-29 06:56:54 +0800
committerhq <hq@FreeBSD.org>2005-01-29 06:56:54 +0800
commit2cb0f68cf8efb0d64c2393a9fe955277a7666763 (patch)
tree41490edbfa0309e4f4ed12f9ec90373515fb35ff /archivers/jzip.org
parent50948b4955a92fe657cb32024f503ea9687b0566 (diff)
downloadfreebsd-ports-gnome-2cb0f68cf8efb0d64c2393a9fe955277a7666763.tar.gz
freebsd-ports-gnome-2cb0f68cf8efb0d64c2393a9fe955277a7666763.tar.zst
freebsd-ports-gnome-2cb0f68cf8efb0d64c2393a9fe955277a7666763.zip
- Update to bsd.java.mk 2.0
- Add 'java' category - Add a launcher shell script: 'jzip.org'
Diffstat (limited to 'archivers/jzip.org')
-rw-r--r--archivers/jzip.org/Makefile13
-rw-r--r--archivers/jzip.org/files/jzip.org.sh.in5
2 files changed, 14 insertions, 4 deletions
diff --git a/archivers/jzip.org/Makefile b/archivers/jzip.org/Makefile
index 9b71ae835408..10fbd434f493 100644
--- a/archivers/jzip.org/Makefile
+++ b/archivers/jzip.org/Makefile
@@ -8,7 +8,7 @@
PORTNAME= jzip.org
PORTVERSION= 0.2.0
-CATEGORIES= archivers
+CATEGORIES= archivers java
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= jzipdotorg
DISTNAME= ${PORTNAME}${PORTVERSION}.src
@@ -16,18 +16,23 @@ DISTNAME= ${PORTNAME}${PORTVERSION}.src
MAINTAINER= ports@FreeBSD.org
COMMENT= A WinZip like program written in java
-PLIST_FILES= %%JAVAJARDIR%%/jzip.org.jar
+RUN_DEPENDS= java:${PORTSDIR}/java/javavmwrapper
+
+PLIST_FILES= %%JAVAJARDIR%%/jzip.org.jar bin/${PORTNAME}
USE_ZIP= yes
-USE_JAVA= 1.2+
-NEED_JAVAC= yes
+USE_JAVA= yes
+JAVA_VERSION= 1.2+
WRKSRC= ${WRKDIR}/${PORTNAME}.${PORTVERSION}.src
+SUB_FILES= ${PORTNAME}.sh
+
do-build:
@cd ${WRKSRC} && ${JAVAC} -d bin src/*.java && \
cd bin && ${JAR} cvfm jzip.org.jar manifest/MANIFEST.MF \
i18n/*.properties jzipdotorg/*.class images/*.png
do-install:
+ @${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME}
@${INSTALL_DATA} ${WRKSRC}/bin/${PORTNAME}.jar ${JAVAJARDIR}
.include <bsd.port.mk>
diff --git a/archivers/jzip.org/files/jzip.org.sh.in b/archivers/jzip.org/files/jzip.org.sh.in
new file mode 100644
index 000000000000..1e1c53658c04
--- /dev/null
+++ b/archivers/jzip.org/files/jzip.org.sh.in
@@ -0,0 +1,5 @@
+#!/bin/sh
+#
+# $FreeBSD$
+
+JAVA_VERSION=1.2+ "%%LOCALBASE%%/bin/java" -jar "%%JAVAJARDIR%%/jzip.org.jar" "$@"