Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Dec 2000 19:08:39 -0600
From:      Dave Glowacki <dglo@ssec.wisc.edu>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/23368: New port: java/ant
Message-ID:  <200012080108.TAA00914@hyde.ssec.wisc.edu>
Resent-Message-ID: <200012080110.eB81A5t30896@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         23368
>Category:       ports
>Synopsis:       New port: java/ant
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 07 17:10:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Dave Glowacki
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
>Environment:
>Description:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	ant
#	ant/Makefile
#	ant/distinfo
#	ant/files
#	ant/pkg-comment
#	ant/pkg-descr
#	ant/pkg-plist
#	ant/files/patch-antsrc
#	ant/files/patch-build.xml
#
echo c - ant
mkdir -p ant > /dev/null 2>&1
echo x - ant/Makefile
sed 's/^X//' >ant/Makefile << 'END-of-ant/Makefile'
X# Ports collection makefile for:    Jakarta Ant
X# Date created:         2000/12/01
X# Whom:                 Dave Glowacki <dglo@ssec.wisc.edu>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	ant
XPORTVERSION=	1.2
XCATEGORIES=	java
XMASTER_SITES=	http://jakarta.apache.org/builds/ant/release/v${PORTVERSION}/src/
XDISTNAME=	jakarta-ant-src
X
XMAINTAINER=	dglo@SSEC.WISC.EDU
X
XJAVA_HOME?=	${LOCALBASE}/jdk1.2.2
XBUILD_DEPENDS=	${JAVA_HOME}/bin/javac:${PORTSDIR}/java/jdk12-beta
XRUN_DEPENDS=	${JAVA_HOME}/bin/java:${PORTSDIR}/java/jdk12-beta
X
XNO_WRKSUBDIR=	true
X
Xdo-build:
X	@if [ ! -d ${WRKDIR}/build ]; then ${MKDIR} ${WRKDIR}/build; fi
X	@if [ ! -d ${WRKDIR}/dist ]; then ${MKDIR} ${WRKDIR}/dist; fi
X	cd ${WRKSRC} && PATH=$$PATH:${JAVA_HOME}/bin JAVA_HOME=${JAVA_HOME} ${SH} build.sh dist
X
Xdo-install:
X	@${MKDIR} ${PREFIX}/share/java/classes
X	@${INSTALL_SCRIPT} ${WRKSRC}/dist/ant/bin/ant ${PREFIX}/bin
X	@${INSTALL_SCRIPT} ${WRKSRC}/dist/ant/bin/antRun ${PREFIX}/bin
X	@${INSTALL_DATA} ${WRKSRC}/dist/ant/lib/ant.jar ${LOCALBASE}/share/java/classes/ant.jar
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${PREFIX}/share/doc/ant
X	@(cd ${WRKSRC}/dist/ant/docs && ${TAR} -c -f - .) \
X		| (cd ${PREFIX}/share/doc/ant && ${TAR} --unlink -x -f -)
X	@(cd ${PREFIX} \
X		&& find share/doc/ant -type f -print >> ${TMPPLIST})
X.endif
X
X.include <bsd.port.mk>
END-of-ant/Makefile
echo x - ant/distinfo
sed 's/^X//' >ant/distinfo << 'END-of-ant/distinfo'
XMD5 (jakarta-ant-src.tar.gz) = d0a71b75ae9e4e08251e6bdfcb7d700d
END-of-ant/distinfo
echo c - ant/files
mkdir -p ant/files > /dev/null 2>&1
echo x - ant/pkg-comment
sed 's/^X//' >ant/pkg-comment << 'END-of-ant/pkg-comment'
XJava-based build tool
END-of-ant/pkg-comment
echo x - ant/pkg-descr
sed 's/^X//' >ant/pkg-descr << 'END-of-ant/pkg-descr'
XAn XML-based build tool implemented in Java.
X
XWWW: http://jakarta.apache.org/ant/
END-of-ant/pkg-descr
echo x - ant/pkg-plist
sed 's/^X//' >ant/pkg-plist << 'END-of-ant/pkg-plist'
Xbin/ant
Xbin/antRun
Xshare/java/classes/ant.jar
END-of-ant/pkg-plist
echo x - ant/files/patch-antsrc
sed 's/^X//' >ant/files/patch-antsrc << 'END-of-ant/files/patch-antsrc'
X--- src/bin/ant.orig	Tue Oct 24 07:50:51 2000
X+++ src/bin/ant	Thu Dec  7 11:01:54 2000
X@@ -37,7 +37,7 @@
X   JAVACMD=java
X fi
X 
X-LOCALCLASSPATH=`echo $ANT_HOME/lib/*.jar | tr ' ' ':'`
X+LOCALCLASSPATH=`echo $ANT_HOME/lib/*jar /usr/local/share/java/classes/*.jar | tr ' ' ':'`
X 
X if [ "$CLASSPATH" != "" ] ; then
X   LOCALCLASSPATH=$CLASSPATH:$LOCALCLASSPATH
END-of-ant/files/patch-antsrc
echo x - ant/files/patch-build.xml
sed 's/^X//' >ant/files/patch-build.xml << 'END-of-ant/files/patch-build.xml'
X--- build.xml.orig	Tue Oct 24 07:50:52 2000
X+++ build.xml	Thu Dec  7 10:26:15 2000
X@@ -20,13 +20,13 @@
X   <property name="src.dir" value="src/main"/>
X   <property name="src.tests.dir" value="src/testcases"/>
X   <property name="docs.dir" value="docs"/>
X-  <property name="build.dir" value="../build/ant"/>
X+  <property name="build.dir" value="build/ant"/>
X   <property name="lib.dir" value="${build.dir}/lib"/>
X   <property name="bin.dir" value="${build.dir}/bin"/>
X   <property name="build.classes" value="${build.dir}/classes"/>
X   <property name="build.javadocs" value="${build.dir}/javadocs"/>
X   <property name="build.tests" value="${build.dir}/testcases"/>
X-  <property name="ant.dist.dir" value="../dist/ant"/>
X+  <property name="ant.dist.dir" value="dist/ant"/>
X 
X   <path id="classpath">
X   </path>
X@@ -375,7 +375,7 @@
X   <!-- =================================================================== -->
X 
X   <property name="JAXP_HOME" value="/usr/local/java/lib/jaxp1.0.1" />
X-  <property name="ant.srcdist.dir" value="../dist/jakarta-ant-src"/>
X+  <property name="ant.srcdist.dir" value="dist/jakarta-ant-src"/>
X 
X   <target name="srcbuild">
X      <mkdir dir="${ant.srcdist.dir}" />
X@@ -404,13 +404,13 @@
X   </target>
X   
X   <target name="src.zip" depends="srcbuild">
X-    <zip zipfile="${ant.srcdist.dir}/../jakarta-ant-src.zip" 
X+    <zip zipfile="${ant.srcdist.dir}/jakarta-ant-src.zip" 
X          basedir="${ant.srcdist.dir}" />
X   </target>
X 
X   <target name="src.tgz" depends="srcbuild">
X     <property name="src.tar" 
X-              value="${ant.srcdist.dir}/../jakarta-ant-src.tar" />
X+              value="${ant.srcdist.dir}/jakarta-ant-src.tar" />
X     <tar tarfile="${src.tar}" basedir="${ant.srcdist.dir}" />
X     <gzip src="${src.tar}" zipfile="${src.tar}.gz" />
X     <delete file="${src.tar}" />
X@@ -419,7 +419,7 @@
X   <target name="srcdist" description="Creates the source distribution"
X           depends="src.zip,src.tgz" />
X 
X-  <property name="ant.bindist.dir" value="../dist/jakarta-ant-bin"/>
X+  <property name="ant.bindist.dir" value="dist/jakarta-ant-bin"/>
X 
X   <target name="binbuild" depends="compile">
X 
X@@ -502,13 +502,13 @@
X   </target>
X 
X   <target name="bin.zip" depends="binbuild">
X-    <zip zipfile="${ant.bindist.dir}/../jakarta-ant-bin.zip" 
X+    <zip zipfile="${ant.bindist.dir}/jakarta-ant-bin.zip" 
X          basedir="${ant.bindist.dir}" />
X   </target>
X 
X   <target name="bin.tgz" depends="binbuild">
X     <property name="bin.tar" 
X-              value="${ant.bindist.dir}/../jakarta-ant-bin.tar" />
X+              value="${ant.bindist.dir}/jakarta-ant-bin.tar" />
X     <tar tarfile="${bin.tar}" basedir="${ant.bindist.dir}" />
X     <gzip src="${bin.tar}" zipfile="${bin.tar}.gz" />
X     <delete file="${bin.tar}" />
X@@ -517,8 +517,8 @@
X   <target name="bindist" description="Creates the binary distribution"
X           depends="bin.zip,bin.tgz" />
X 
X-  <property name="contributed.tasks" value="../build/ant.contrib" />
X-  <property name="optional" value="../dist/optional.jar" />
X+  <property name="contributed.tasks" value="build/ant.contrib" />
X+  <property name="optional" value="dist/optional.jar" />
X 
X   <target name="optional.jar" depends="compile"
X           description="Creates a JAR of the optional tasks">
END-of-ant/files/patch-build.xml
exit


>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
 'ant' is a portable build tool based on XML.  It's used to build
 most of the open source projects at jakarta.apache.org
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012080108.TAA00914>