diff options
author | jwise <jwise> | 2000-07-03 03:50:11 +0000 |
---|---|---|
committer | jwise <jwise> | 2000-07-03 03:50:11 +0000 |
commit | ccf0d18d335ff5f4a35bd0b901266688c55cc9b4 (patch) | |
tree | be85133f8f7e07d70925c60ba0107b8dac65c982 /devel/jakarta-ant | |
parent | c45d20be9aed7d06f3fc5058d034aa09b6ff53ec (diff) | |
download | pkgsrc-ccf0d18d335ff5f4a35bd0b901266688c55cc9b4.tar.gz |
Reimport this in the right place:
Initial import of jakarta-ant-3.1, a java-based make(1) replacement which
is starting to be used by a lot of java-based projects.
Diffstat (limited to 'devel/jakarta-ant')
-rw-r--r-- | devel/jakarta-ant/Makefile | 33 | ||||
-rw-r--r-- | devel/jakarta-ant/files/md5 | 3 | ||||
-rw-r--r-- | devel/jakarta-ant/files/patch-sum | 3 | ||||
-rw-r--r-- | devel/jakarta-ant/patches/patch-aa | 58 | ||||
-rw-r--r-- | devel/jakarta-ant/pkg/COMMENT | 1 | ||||
-rw-r--r-- | devel/jakarta-ant/pkg/DESCR | 6 | ||||
-rw-r--r-- | devel/jakarta-ant/pkg/PLIST | 8 |
7 files changed, 112 insertions, 0 deletions
diff --git a/devel/jakarta-ant/Makefile b/devel/jakarta-ant/Makefile new file mode 100644 index 00000000000..c9dda157e41 --- /dev/null +++ b/devel/jakarta-ant/Makefile @@ -0,0 +1,33 @@ +# $NetBSD: Makefile,v 1.1.1.1 2000/07/03 03:50:11 jwise Exp $ + +DISTNAME= jakarta-ant +PKGNAME= jakarta-ant-3.1 +CATEGORIES= devel +MASTER_SITES= http://jakarta.apache.org/builds/ant/release/v3.1/src/ + +MAINTAINER= jwise@netbsd.org +HOMEPAGE= http://jakarta.apache.org/ + +DIST_SUBDIR= jakarta-3.1 +USE_JAVA= yes + +WRKSRC= ${WRKDIR}/jakarta-ant + +do-build: + cd ${WRKSRC} && ${SH} bootstrap.sh + +post-build: + ${SED} -e 's,@PREFIX@,${PREFIX},g' -e 's,@JAVA_HOME@,${JAVA_HOME},g' \ + < ${WRKSRC}/bin/ant > ${WRKSRC}/bin/ant.tmp + ${MV} ${WRKSRC}/bin/ant.tmp ${WRKSRC}/bin/ant + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/bin/ant ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/bin/antRun ${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/lib/xml.jar ${PREFIX}/lib/java + ${INSTALL_DATA} ${WRKSRC}/lib/ant.jar ${PREFIX}/lib/java + ${MKDIR} ${PREFIX}/share/doc/java/ant + ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/java/ant + ${INSTALL_DATA} ${WRKSRC}/docs/index.html ${PREFIX}/share/doc/java/ant + +.include "../../mk/bsd.pkg.mk" diff --git a/devel/jakarta-ant/files/md5 b/devel/jakarta-ant/files/md5 new file mode 100644 index 00000000000..f68eb898eea --- /dev/null +++ b/devel/jakarta-ant/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 2000/07/03 03:50:11 jwise Exp $ + +MD5 (jakarta-3.1/jakarta-ant.tar.gz) = f3c6f2df40562b36eed067a8b6580526 diff --git a/devel/jakarta-ant/files/patch-sum b/devel/jakarta-ant/files/patch-sum new file mode 100644 index 00000000000..ec9d46ae864 --- /dev/null +++ b/devel/jakarta-ant/files/patch-sum @@ -0,0 +1,3 @@ +$NetBSD: patch-sum,v 1.1.1.1 2000/07/03 03:50:11 jwise Exp $ + +MD5 (patch-aa) = caf086503e039cfdb52362130887e3d5 diff --git a/devel/jakarta-ant/patches/patch-aa b/devel/jakarta-ant/patches/patch-aa new file mode 100644 index 00000000000..cc37f30fc14 --- /dev/null +++ b/devel/jakarta-ant/patches/patch-aa @@ -0,0 +1,58 @@ +$NetBSD: patch-aa,v 1.1.1.1 2000/07/03 03:50:12 jwise Exp $ +--- src/bin/ant.orig Thu Jan 13 05:41:40 2000 ++++ src/bin/ant Sun Jul 2 17:13:06 2000 +@@ -6,35 +6,18 @@ + + if [ "$ANT_HOME" = "" ] ; then + # try to find ANT +- if [ -d /opt/ant ] ; then +- ANT_HOME=/opt/ant ++ if [ -d @PREFIX@ ] ; then ++ ANT_HOME=@PREFIX@ + fi + +- if [ -d ${HOME}/opt/ant ] ; then +- ANT_HOME=${HOME}/opt/ant ++ if [ -d ${HOME}/ant ] ; then ++ ANT_HOME=${HOME}/ant + fi +- +- ## resolve links - $0 may be a link to ant's home +- PRG=$0 +- progname=`basename $0` +- +- while [ -h "$PRG" ] ; do +- ls=`ls -ld "$PRG"` +- link=`expr "$ls" : '.*-> \(.*\)$'` +- if expr "$link" : '.*/.*' > /dev/null; then +- PRG="$link" +- else +- PRG="`dirname $PRG`/$link" +- fi +- done +- +- ANT_HOME=`dirname "$PRG"`/.. +- + fi + + # Allow .antrc to specifiy flags to java cmd + if [ "$JAVACMD" = "" ] ; then +- JAVACMD=java ++ JAVACMD=@JAVA_HOME@/bin/java + fi + + # Use the original tools.jar if available +@@ -43,10 +26,9 @@ + CLASSPATH=${JAVA_HOME}/lib/classes.zip:$CLASSPATH + fi + +- +-CLASSPATH=${ANT_HOME}/lib/xml.jar:$CLASSPATH +-CLASSPATH=${ANT_HOME}/lib/ant.jar:$CLASSPATH +-CLASSPATH=${ANT_HOME}/lib/moo.jar:$CLASSPATH ++CLASSPATH=${ANT_HOME}/lib/java/xml.jar:$CLASSPATH ++CLASSPATH=${ANT_HOME}/lib/java/ant.jar:$CLASSPATH ++#CLASSPATH=${ANT_HOME}/lib/java/moo.jar:$CLASSPATH + export CLASSPATH + + $JAVACMD -Dant.home=${ANT_HOME} org.apache.tools.ant.Main $@ diff --git a/devel/jakarta-ant/pkg/COMMENT b/devel/jakarta-ant/pkg/COMMENT new file mode 100644 index 00000000000..aae9e011542 --- /dev/null +++ b/devel/jakarta-ant/pkg/COMMENT @@ -0,0 +1 @@ +the Apache Project's Java-Based make(1) replacement diff --git a/devel/jakarta-ant/pkg/DESCR b/devel/jakarta-ant/pkg/DESCR new file mode 100644 index 00000000000..46a6f89cf28 --- /dev/null +++ b/devel/jakarta-ant/pkg/DESCR @@ -0,0 +1,6 @@ +Ant is a Java based build tool. In theory it is kind of like +"make" without make's wrinkles and with the full portability +of pure java code. + +Ant uses XML to specify build actions to be taken, and new +build actions are implemented in Java. diff --git a/devel/jakarta-ant/pkg/PLIST b/devel/jakarta-ant/pkg/PLIST new file mode 100644 index 00000000000..7d5778181b7 --- /dev/null +++ b/devel/jakarta-ant/pkg/PLIST @@ -0,0 +1,8 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2000/07/03 03:50:13 jwise Exp $ +bin/ant +bin/antRun +lib/java/xml.jar +lib/java/ant.jar +share/doc/java/ant/README +share/doc/java/ant/index.html +@dirrm share/doc/java/ant |