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.
This commit is contained in:
parent
16f87cf787
commit
58f4e98c04
7 changed files with 112 additions and 0 deletions
33
devel/jakarta-ant/Makefile
Normal file
33
devel/jakarta-ant/Makefile
Normal file
|
@ -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"
|
3
devel/jakarta-ant/files/md5
Normal file
3
devel/jakarta-ant/files/md5
Normal file
|
@ -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
|
3
devel/jakarta-ant/files/patch-sum
Normal file
3
devel/jakarta-ant/files/patch-sum
Normal file
|
@ -0,0 +1,3 @@
|
|||
$NetBSD: patch-sum,v 1.1.1.1 2000/07/03 03:50:11 jwise Exp $
|
||||
|
||||
MD5 (patch-aa) = caf086503e039cfdb52362130887e3d5
|
58
devel/jakarta-ant/patches/patch-aa
Normal file
58
devel/jakarta-ant/patches/patch-aa
Normal file
|
@ -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 $@
|
1
devel/jakarta-ant/pkg/COMMENT
Normal file
1
devel/jakarta-ant/pkg/COMMENT
Normal file
|
@ -0,0 +1 @@
|
|||
the Apache Project's Java-Based make(1) replacement
|
6
devel/jakarta-ant/pkg/DESCR
Normal file
6
devel/jakarta-ant/pkg/DESCR
Normal file
|
@ -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.
|
8
devel/jakarta-ant/pkg/PLIST
Normal file
8
devel/jakarta-ant/pkg/PLIST
Normal file
|
@ -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
|
Loading…
Reference in a new issue