summaryrefslogtreecommitdiff
path: root/java/jakarta-oro/Makefile
diff options
context:
space:
mode:
authorPete Fritchman <petef@FreeBSD.org>2001-12-25 18:31:22 +0000
committerPete Fritchman <petef@FreeBSD.org>2001-12-25 18:31:22 +0000
commitfca3d1c84c3b60b3c8ee9068fa63850d1c3aa164 (patch)
treef1ef197d1ace04b295d3495c44fdb292ec09ccf0 /java/jakarta-oro/Makefile
parentAdd xtexsh 1.4.2, Tcl/Tk-based simple TeX interface. (diff)
Add jakarta-oro 2.0.1, perl/awk/sh regular expressions for Java.
PR: 23358 Submitted by: Dave Glowacki <dglo@ssec.wisc.edu>
Diffstat (limited to 'java/jakarta-oro/Makefile')
-rw-r--r--java/jakarta-oro/Makefile43
1 files changed, 43 insertions, 0 deletions
diff --git a/java/jakarta-oro/Makefile b/java/jakarta-oro/Makefile
new file mode 100644
index 000000000000..c032c23c5904
--- /dev/null
+++ b/java/jakarta-oro/Makefile
@@ -0,0 +1,43 @@
+# Ports collection makefile for: Jakarta ORO
+# Date created: 2000/12/01
+# Whom: Dave Glowacki <dglo@ssec.wisc.edu>
+#
+# $FreeBSD$
+#
+
+PORTNAME= jakarta-oro
+PORTVERSION= 2.0.1
+CATEGORIES= java
+MASTER_SITES= http://jakarta.apache.org/builds/jakarta-oro/release/v${PORTVERSION}/
+
+MAINTAINER= dglo@ssec.wisc.edu
+
+BUILD_DEPENDS= ${JAVA_HOME}/bin/javac:${PORTSDIR}/java/jdk
+RUN_DEPENDS= ${JAVA_HOME}/bin/java:${PORTSDIR}/java/jdk
+
+JAVA_HOME?= ${LOCALBASE}/jdk1.2.2
+PLIST= ${WRKDIR}/PLIST
+
+post-extract:
+ @${CP} ${.CURDIR}/pkg-plist ${WRKDIR}/PLIST
+
+do-build:
+ @cd ${WRKSRC}/build && ${SETENV} PATH=$$PATH:${JAVA_HOME}/bin \
+ JAVA_HOME=${JAVA_HOME} ${SH} build-oro.sh package
+
+do-install:
+ @${MKDIR} ${PREFIX}/share/java/classes
+ @${INSTALL_DATA} ${WRKSRC}/jakarta-oro-2.0.1.jar ${LOCALBASE}/share/java/classes/jakarta-oro.jar
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ @(cd ${WRKSRC}/doc/api && ${TAR} -c -f - .) \
+ | (cd ${DOCSDIR} && ${TAR} --unlink -x -f -)
+ @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
+ @cd ${PREFIX} \
+ && find share/doc/jakarta-oro -type f -print >> ${PLIST}
+ @cd ${PREFIX} \
+ && find share/doc/jakarta-oro -type d -print | sort -r | \
+ ${SED} "s,^,@dirrm ,g" >> ${PLIST}
+.endif
+
+.include <bsd.port.mk>