diff options
author | Dylan Carlson <absinthe@gentoo.org> | 2003-04-15 21:10:16 +0000 |
---|---|---|
committer | Dylan Carlson <absinthe@gentoo.org> | 2003-04-15 21:10:16 +0000 |
commit | 3adddd69b3995fb1914ff4f614586f8c7ece9935 (patch) | |
tree | a5bb5c1d2aac62fdb1197501ae1c3e13ee8d0767 /dev-java/ant | |
parent | Added additional use flags for sys-kernel/gentoo-sources : aavm & evms2 (diff) | |
download | historical-3adddd69b3995fb1914ff4f614586f8c7ece9935.tar.gz historical-3adddd69b3995fb1914ff4f614586f8c7ece9935.tar.bz2 historical-3adddd69b3995fb1914ff4f614586f8c7ece9935.zip |
Version bump. Closes #17097.
Diffstat (limited to 'dev-java/ant')
-rw-r--r-- | dev-java/ant/ChangeLog | 8 | ||||
-rw-r--r-- | dev-java/ant/ant-1.5.3.ebuild | 26 | ||||
-rw-r--r-- | dev-java/ant/files/1.5.3/ant | 89 | ||||
-rw-r--r-- | dev-java/ant/files/digest-ant-1.5.2 | 1 | ||||
-rw-r--r-- | dev-java/ant/files/digest-ant-1.5.3 | 4 |
5 files changed, 127 insertions, 1 deletions
diff --git a/dev-java/ant/ChangeLog b/dev-java/ant/ChangeLog index 5fd78260fdf4..fe2395696a03 100644 --- a/dev-java/ant/ChangeLog +++ b/dev-java/ant/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-java/ant # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/ant/ChangeLog,v 1.28 2003/04/06 08:20:54 absinthe Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/ant/ChangeLog,v 1.29 2003/04/15 21:10:04 absinthe Exp $ + +*ant-1.5.3 (15 Apr 2003) + + 15 Apr 2003; Dylan Carlson <absinthe@gentoo.org> ant-1.5.3.ebuild, + files/1.5.3/ant: + Version bump. Closes # 17097. *ant-1.5.2 (21 Mar 2003) diff --git a/dev-java/ant/ant-1.5.3.ebuild b/dev-java/ant/ant-1.5.3.ebuild new file mode 100644 index 000000000000..ed1f3d15ea70 --- /dev/null +++ b/dev-java/ant/ant-1.5.3.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/ant/ant-1.5.3.ebuild,v 1.1 2003/04/15 21:10:04 absinthe Exp $ + +S=${WORKDIR}/apache-ant-${PV} +DESCRIPTION="Build system for Java" +SRC_URI="http://www.apache.org/dist/ant/binaries/apache-ant-${PV}-bin.tar.bz2" +HOMEPAGE="http://jakarta.apache.org" +LICENSE="Apache-1.1" +SLOT="0" +KEYWORDS="~x86 ~ppc ~sparc ~alpha" +DEPEND="virtual/glibc + >=virtual/jdk-1.3" +RDEPEND=">=virtual/jdk-1.3" +IUSE="doc" + +src_install() { + mkdir src + cp ${FILESDIR}/${PV}/ant src/ant + exeinto /usr/bin + doexe src/ant + dojar lib/*.jar lib/*.jar + dodoc LICENSE LICENSE.* README WHATSNEW KEYS + use doc && dohtml welcome.html + use doc && dohtml -r docs/* +} diff --git a/dev-java/ant/files/1.5.3/ant b/dev-java/ant/files/1.5.3/ant new file mode 100644 index 000000000000..ba30f64dfc6f --- /dev/null +++ b/dev-java/ant/files/1.5.3/ant @@ -0,0 +1,89 @@ +#! /bin/sh + +# Copyright (c) 2001-2003 The Apache Software Foundation. All rights +# reserved. +# Edited for Gentoo Linux +# $Header: /var/cvsroot/gentoo-x86/dev-java/ant/files/1.5.3/ant,v 1.1 2003/04/15 21:10:04 absinthe Exp $ + +if [ -f $HOME/.gentoo/java-env ] ; then + source $HOME/.gentoo/java-env +else + JAVA_HOME=`java-config --jdk-home` + if [ -z $JAVA_HOME ] ; then + JAVA_HOME=`java-config --jre-home` + fi + CLASSPATH=`java-config --classpath`:${CLASSPATH} +fi + +if [ -z $JAVA_HOME ] ; then + echo "Error: No JDK/JRE found!" + exit 1 +fi + +# load system-wide ant configuration +if [ -f "/etc/ant.conf" ] ; then + . /etc/ant.conf +fi + +# provide default values for people who don't use RPMs +if [ -z "$rpm_mode" ] ; then + rpm_mode=false; +fi +if [ -z "$usejikes" ] ; then + usejikes=false; +fi + +# load user ant configuration +if [ -f "$HOME/.antrc" ] ; then + . "$HOME/.antrc" +fi + +ANT_HOME=/usr/share/ant + +# set ANT_LIB location +ANT_LIB="${ANT_HOME}/lib" + +JAVACMD="`java-config --java`" + +if [ ! -x "$JAVACMD" ] ; then + echo "Error: JAVA_HOME is not defined correctly." + echo " We cannot execute $JAVACMD" + exit 1 +fi + +if [ -n "$CLASSPATH" ] ; then + LOCALCLASSPATH="$CLASSPATH" +fi + +# add in the dependency .jar files +LOCALCLASSPATH="${LOCALCLASSPATH}:`java-config --classpath=ant`" + +if [ -n "$JAVA_HOME" ] ; then + if [ -f "$JAVA_HOME/lib/tools.jar" ] ; then + LOCALCLASSPATH="$LOCALCLASSPATH:$JAVA_HOME/lib/tools.jar" + fi + + if [ -f "$JAVA_HOME/lib/classes.zip" ] ; then + LOCALCLASSPATH="$LOCALCLASSPATH:$JAVA_HOME/lib/classes.zip" + fi + +else + echo "Warning: JAVA_HOME environment variable is not set (or not exported)." + echo " If build fails because sun.* classes could not be found" + echo " you will need to set the JAVA_HOME environment variable" + echo " to the installation directory of java." +fi + +# Allow Jikes support (off by default) +if $usejikes; then + ANT_OPTS="$ANT_OPTS -Dbuild.compiler=jikes" +fi + +# 2002-11-02, karltk@gentoo.org: +# The Blackdown JDK on PPC hiccups with native threads +# +if [ "`arch`" == "ppc" ] ; then + export THREADS_FLAG="green" +fi + +"$JAVACMD" -classpath "$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" $ANT_OPTS org.apache.tools.ant.Main $ANT_ARGS "$@" diff --git a/dev-java/ant/files/digest-ant-1.5.2 b/dev-java/ant/files/digest-ant-1.5.2 index b6c063a1ac53..f3d175634339 100644 --- a/dev-java/ant/files/digest-ant-1.5.2 +++ b/dev-java/ant/files/digest-ant-1.5.2 @@ -1,3 +1,4 @@ MD5 2db5008ae90f3b508fa45b8bea36c9b6 /files/1.5.2/ant 2373 +MD5 6e22e7d1b121a847e107b6498f48e0a4 /files/1.5.3/ant 2207 MD5 a5cb516430eda14e16893fe939a0fa6c /ant-1.5.2.ebuild 779 MD5 f91504b3af51358c034fb926f4ce9895 apache-ant-1.5.2-bin.tar.bz2 5556999 diff --git a/dev-java/ant/files/digest-ant-1.5.3 b/dev-java/ant/files/digest-ant-1.5.3 new file mode 100644 index 000000000000..d4c8a34f12f0 --- /dev/null +++ b/dev-java/ant/files/digest-ant-1.5.3 @@ -0,0 +1,4 @@ +MD5 2db5008ae90f3b508fa45b8bea36c9b6 /files/1.5.2/ant 2373 +MD5 a9f0b57c8cc89323c4e216d6c0733849 /files/1.5.3/ant 2207 +MD5 26f39c2dffdcb766938d0408d52ace76 /ant-1.5.3.ebuild 782 +MD5 ecffee2290ca25ba0e108a1130fe0f91 apache-ant-1.5.3-bin.tar.bz2 5674951 |