aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/trang
diff options
context:
space:
mode:
authorhq <hq@FreeBSD.org>2005-02-06 09:53:52 +0800
committerhq <hq@FreeBSD.org>2005-02-06 09:53:52 +0800
commit27d7da6372e3b88dc990221d2463e2cfb0b11bce (patch)
treebe790af175980c08e94bdffcd9d95a8d04d5c143 /textproc/trang
parent974bd552f476c296047c8ed8d0d378737a7dd3e4 (diff)
downloadfreebsd-ports-gnome-27d7da6372e3b88dc990221d2463e2cfb0b11bce.tar.gz
freebsd-ports-gnome-27d7da6372e3b88dc990221d2463e2cfb0b11bce.tar.zst
freebsd-ports-gnome-27d7da6372e3b88dc990221d2463e2cfb0b11bce.zip
- Update to bsd.java.mk 2.0
- Add 'java' category - Add a plain file for launcher shell script - Use PLIST_FILES (and remove pkg-plist)
Diffstat (limited to 'textproc/trang')
-rw-r--r--textproc/trang/Makefile21
-rw-r--r--textproc/trang/files/trang.sh.in5
-rw-r--r--textproc/trang/pkg-plist2
3 files changed, 16 insertions, 12 deletions
diff --git a/textproc/trang/Makefile b/textproc/trang/Makefile
index 45e048a0729f..fa0b6306ec50 100644
--- a/textproc/trang/Makefile
+++ b/textproc/trang/Makefile
@@ -7,7 +7,7 @@
PORTNAME= trang
PORTVERSION= 2003.06.19
-CATEGORIES= textproc
+CATEGORIES= textproc java
MASTER_SITES= http://www.thaiopensource.com/download/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g}
@@ -15,19 +15,20 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Multi-format schema converter based on RELAX NG
USE_ZIP= yes
-USE_JAVA= 1.4+
-PORTDOCS= copying.txt trang-manual.html
+USE_JAVA= yes
+JAVA_VERSION= 1.4+
+NO_BUILD= yes
-NO_BUILD_DEPENDS_JAVA= yes
+.if !defined(NOPORTDOCS)
+PORTDOCS= copying.txt trang-manual.html
+.endif
-do-build:
- ${ECHO_CMD} '#/bin/sh' >${WRKSRC}/trang
- ${ECHO_CMD} 'exec javavm -jar ${JAVAJARDIR}/trang.jar "$$@"' \
- >>${WRKSRC}/trang
+SUB_FILES= trang.sh
+PLIST_FILES= %%JAVAJARDIR%%/trang.jar bin/trang
do-install:
- ${INSTALL_DATA} ${WRKSRC}/*.jar ${JAVAJARDIR}
- ${INSTALL_SCRIPT} ${WRKSRC}/trang ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/trang.jar ${JAVAJARDIR}
+ ${INSTALL_SCRIPT} ${WRKDIR}/trang.sh ${PREFIX}/bin/trang
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKSRC}; ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
diff --git a/textproc/trang/files/trang.sh.in b/textproc/trang/files/trang.sh.in
new file mode 100644
index 000000000000..791ccdf5e4de
--- /dev/null
+++ b/textproc/trang/files/trang.sh.in
@@ -0,0 +1,5 @@
+#!/bin/sh
+#
+# $FreeBSD$
+
+"%%LOCALBASE%%/bin/java" -jar "%%JAVAJARDIR%%/trang.jar" "$@"
diff --git a/textproc/trang/pkg-plist b/textproc/trang/pkg-plist
deleted file mode 100644
index 251be9a58713..000000000000
--- a/textproc/trang/pkg-plist
+++ /dev/null
@@ -1,2 +0,0 @@
-bin/trang
-share/java/classes/trang.jar