aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/trang/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/trang/Makefile')
-rw-r--r--textproc/trang/Makefile21
1 files changed, 11 insertions, 10 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}