diff options
author | Adrian Almenar <strider@gentoo.org> | 2004-01-22 01:33:39 +0000 |
---|---|---|
committer | Adrian Almenar <strider@gentoo.org> | 2004-01-22 01:33:39 +0000 |
commit | 230b68f33c28d0f34293030c3c298722e22f7f05 (patch) | |
tree | 418e51065a37fab5afdde543f1e82cdb7a9676db /dev-java/ant | |
parent | stable bump and cleanup - 0.98.0 doesn't work with libxml2.6 (diff) | |
download | historical-230b68f33c28d0f34293030c3c298722e22f7f05.tar.gz historical-230b68f33c28d0f34293030c3c298722e22f7f05.tar.bz2 historical-230b68f33c28d0f34293030c3c298722e22f7f05.zip |
Removed Broken ant version.
Diffstat (limited to 'dev-java/ant')
-rw-r--r-- | dev-java/ant/ant-1.6.0.ebuild | 95 | ||||
-rw-r--r-- | dev-java/ant/files/1.6.0/ant | 89 | ||||
-rw-r--r-- | dev-java/ant/files/digest-ant-1.6.0 | 1 |
3 files changed, 0 insertions, 185 deletions
diff --git a/dev-java/ant/ant-1.6.0.ebuild b/dev-java/ant/ant-1.6.0.ebuild deleted file mode 100644 index a3b936fcbd19..000000000000 --- a/dev-java/ant/ant-1.6.0.ebuild +++ /dev/null @@ -1,95 +0,0 @@ -# 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.6.0.ebuild,v 1.1 2003/12/25 17:46:55 strider Exp $ - -inherit java-pkg - -S="${WORKDIR}/apache-ant-${PV}" -DESCRIPTION="Java-based build tool similar to 'make' that uses XML configuration files." -SRC_URI="mirror://apache/ant/source/apache-${PN}-${PV}-src.tar.bz2" -HOMEPAGE="http://ant.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 - app-shells/bash" -IUSE="doc" - -src_unpack() { - unpack ${A} - cd ${S} - - # Patch build.sh to die with non-zero exit code in case of errors. - # This patch may be useful for all ant versions. - epatch ${FILESDIR}/build.sh-exit-fix.patch.gz -} - -src_compile() { - - addwrite "/proc/self/maps" - export JAVA_HOME=${JDK_HOME} - if [ `arch` == "ppc" ] ; then - # We're compiling _ON_ PPC - export THREADS_FLAG="green" - fi - - # Make sure junit tasks get built if we have junit - if [ -f "/usr/share/junit/lib/junit.jar" ] ; then - export CLASSPATH="/usr/share/junit/lib/junit.jar" - export DEP_APPEND="junit" - if [ -f "/usr/share/xalan/lib/xalan.jar" ] ; then - export CLASSPATH="${CLASSPATH}:/usr/share/xalan/lib/xalan.jar" - export DEP_APPEND="${DEP_APPEND} xalan" - fi - fi - - # Add Xerces in if we have it - if [ -f "/usr/share/xerces/lib/xercesImpl.jar" ] ; then - export CLASSPATH="${CLASSPATH}:/usr/share/xerces/lib/xercesImpl.jar:/usr/share/xerces/lib/xml-apis.jar" - export DEP_APPEND="${DEP_APPEND} xerces" - fi - - # Add oro in if we have it - if [ -f "/usr/share/oro/lib/oro.jar" ] ; then - export CLASSPATH="${CLASSPATH}:/usr/share/oro/lib/oro.jar" - export DEP_APPEND="${DEP_APPEND} oro" - fi - - # Add beanutils if we have it - if [ -f "/usr/share/commons-beanutils/lib/commons-beanutils.jar" ] ; then - export CLASSPATH="${CLASSPATH}:/usr/share/commons-beanutils/lib/commons-beanutils.jar" - export DEP_APPEND="${DEP_APPEND} commons-beanutils" - fi - - # add antlr if we have it - if [ -f "/usr/share/antlr/lib/antlr.jar" ] ; then - export CLASSPATH="${CLASSPATH}:/usr/share/antlr/lib/antlr.jar" - export DEP_APPEND="${DEP_APPEND} antlr" - fi - - # add bcel if we have it - if [ -f "/usr/share/bcel/lib/bcel.jar" ] ; then - export CLASSPATH="${CLASSPATH}:/usr/share/bcel/lib/bcel.jar" - export DEP_APPEND="${DEP_APPEND} bcel" - fi - - ./build.sh -Ddist.dir=${D}/usr/share/ant || die -} - -src_install() { - cp ${FILESDIR}/${PV}/ant ${S}/src/ant - - exeinto /usr/bin - doexe src/ant - for each in antRun runant.pl runant.py complete-ant-cmd.pl ; do - dobin ${S}/src/script/${each} - done - - java-pkg_dojar build/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.6.0/ant b/dev-java/ant/files/1.6.0/ant deleted file mode 100644 index 1ae242b5fc49..000000000000 --- a/dev-java/ant/files/1.6.0/ant +++ /dev/null @@ -1,89 +0,0 @@ -#! /bin/bash - -# 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.6.0/ant,v 1.1 2003/12/25 17:46:55 strider Exp $ - -if [ -f $HOME/.gentoo/java-env ] ; then - source $HOME/.gentoo/java-env -else - JAVA_HOME=`java-config --jdk-home` - CLASSPATH=`java-config --classpath`:${CLASSPATH} -fi - -if [ -z $JAVA_HOME ] ; then - echo "Error: No JDK found!" - echo "Try using java-config script to set your JDK" - echo "Remember that you need a JDK not a JRE" - 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." - echo " Try using java-config script" -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.6.0 b/dev-java/ant/files/digest-ant-1.6.0 deleted file mode 100644 index dd7fbab35622..000000000000 --- a/dev-java/ant/files/digest-ant-1.6.0 +++ /dev/null @@ -1 +0,0 @@ -MD5 18aed5aa33951aa85c237fc4139bad6e apache-ant-1.6.0-src.tar.bz2 6217526 |