aboutsummaryrefslogtreecommitdiff
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
parent3701cd224f9f0316a3931232dface42a9a080b82 (diff)
downloadports-fca3d1c84c3b60b3c8ee9068fa63850d1c3aa164.tar.gz
ports-fca3d1c84c3b60b3c8ee9068fa63850d1c3aa164.zip
Notes
-rw-r--r--java/Makefile1
-rw-r--r--java/jakarta-oro/Makefile43
-rw-r--r--java/jakarta-oro/distinfo1
-rw-r--r--java/jakarta-oro/files/patch-build::build-oro.sh13
-rw-r--r--java/jakarta-oro/pkg-comment1
-rw-r--r--java/jakarta-oro/pkg-descr10
-rw-r--r--java/jakarta-oro/pkg-plist3
7 files changed, 72 insertions, 0 deletions
diff --git a/java/Makefile b/java/Makefile
index ec70c008ae69..795521aef7da 100644
--- a/java/Makefile
+++ b/java/Makefile
@@ -13,6 +13,7 @@
SUBDIR += infobus
SUBDIR += jad
SUBDIR += jaf
+ SUBDIR += jakarta-oro
SUBDIR += jakarta-regexp
SUBDIR += janosvm
SUBDIR += java-cup
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>
diff --git a/java/jakarta-oro/distinfo b/java/jakarta-oro/distinfo
new file mode 100644
index 000000000000..6d984583803f
--- /dev/null
+++ b/java/jakarta-oro/distinfo
@@ -0,0 +1 @@
+MD5 (jakarta-oro-2.0.1.tar.gz) = 8121de3b79acf5f8c8112d518dcf53f0
diff --git a/java/jakarta-oro/files/patch-build::build-oro.sh b/java/jakarta-oro/files/patch-build::build-oro.sh
new file mode 100644
index 000000000000..347bcb4c95d6
--- /dev/null
+++ b/java/jakarta-oro/files/patch-build::build-oro.sh
@@ -0,0 +1,13 @@
+$FreeBSD$
+
+--- build/build-oro.sh.orig Fri Dec 8 15:59:15 2000
++++ build/build-oro.sh Fri Dec 8 15:59:29 2000
+@@ -36,7 +36,7 @@
+
+ echo "Now building ${TARGET}..."
+
+-CP=${CLASSPATH}:ant.jar:xml.jar
++CP=ant.jar:xml.jar:${CLASSPATH}
+
+ echo "Classpath: ${CP}"
+ echo "JAVA_HOME: ${JAVA_HOME}"
diff --git a/java/jakarta-oro/pkg-comment b/java/jakarta-oro/pkg-comment
new file mode 100644
index 000000000000..6e3337e1bafa
--- /dev/null
+++ b/java/jakarta-oro/pkg-comment
@@ -0,0 +1 @@
+Perl/awk/sh regular expressions for Java
diff --git a/java/jakarta-oro/pkg-descr b/java/jakarta-oro/pkg-descr
new file mode 100644
index 000000000000..fc15f6512b0d
--- /dev/null
+++ b/java/jakarta-oro/pkg-descr
@@ -0,0 +1,10 @@
+The Jakarta-ORO Java classes are a set of text-processing Java classes
+that provide Perl5 compatible regular expressions, AWK-like regular
+expressions, glob expressions, and utility classes for performing
+substitutions, splits, filtering filenames, etc. This library is
+the successor to the OROMatcher, AwkTools, PerlTools, and TextTools
+libraries from ORO, Inc. (www.oroinc.com). They have been donated to
+the Jakarta Project by Daniel Savarese (www.savarese.org), the
+copyright holder of the ORO libraries.
+
+WWW: http://jakarta.apache.org/oro/
diff --git a/java/jakarta-oro/pkg-plist b/java/jakarta-oro/pkg-plist
new file mode 100644
index 000000000000..c20b0eac7c5a
--- /dev/null
+++ b/java/jakarta-oro/pkg-plist
@@ -0,0 +1,3 @@
+share/java/classes/jakarta-oro.jar
+@unexec rmdir %D/share/java/classes 2>/dev/null || true
+@unexec rmdir %D/share/java 2>/dev/null || true