summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/ant/ant-1.6.2-r4.ebuild')
-rw-r--r--dev-java/ant/ant-1.6.2-r4.ebuild86
1 files changed, 0 insertions, 86 deletions
diff --git a/dev-java/ant/ant-1.6.2-r4.ebuild b/dev-java/ant/ant-1.6.2-r4.ebuild
deleted file mode 100644
index 690d4ca07b1c..000000000000
--- a/dev-java/ant/ant-1.6.2-r4.ebuild
+++ /dev/null
@@ -1,86 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/ant/ant-1.6.2-r4.ebuild,v 1.2 2004/08/31 06:15:30 axxo Exp $
-
-inherit java-pkg eutils
-
-DESCRIPTION="Java-based build tool similar to 'make' that uses XML configuration files."
-HOMEPAGE="http://ant.apache.org/"
-SRC_URI="mirror://apache/ant/source/apache-${PN}-${PV}-src.tar.bz2"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~x86 ~amd64 ~ppc"
-IUSE="doc"
-
-DEPEND="virtual/libc
- >=virtual/jdk-1.4
- !dev-java/ant-optional
- >=dev-java/java-config-1.2"
-RDEPEND=">=virtual/jdk-1.4
- app-shells/bash
- >=dev-java/java-config-1.2"
-PDEPEND="=dev-java/ant-tasks-1.6.2-r3"
-
-S="${WORKDIR}/apache-ant-${PV}"
-
-pkg_setup() {
- if [ -n "$JAVA_HOME" ] ; then
- export CLASSPATH=".:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/jre/lib/rt.jar:."
- else
- einfo "Warning: JAVA_HOME environment variable is not set (or not exported)."
- einfo " If build fails because sun.* classes could not be found"
- einfo " you will need to set the JAVA_HOME environment variable"
- einfo " to the installation directory of java."
- einfo " Try using java-config script"
- die
- fi
-
- if [ `arch` == "ppc" ] ; then
- # We're compiling _ON_ PPC
- export THREADS_FLAG="green"
- fi
-}
-
-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"
-
- local myc
- myc="${myc} -Ddist.dir=${D}/usr/share/ant"
- myc="${myc} -Djavac.target=1.4"
-
- echo $CLASSPATH
- ./build.sh -Ddist.dir=${D}/usr/share/ant || die
-}
-
-src_install() {
- cp ${FILESDIR}/${PVR}/ant ${S}/src/ant
-
- exeinto /usr/bin
- doexe src/ant
-
- dodir /usr/share/ant/bin
- for each in antRun runant.pl runant.py complete-ant-cmd.pl ; do
- dobin ${S}/src/script/${each}
- dosym /usr/bin/${each} /usr/share/ant/bin/${each}
- done
-
- insinto /etc/env.d
- doins ${FILESDIR}/20ant
-
- java-pkg_dojar build/lib/ant.jar
- java-pkg_dojar build/lib/ant-launcher.jar
-
- dodoc LICENSE LICENSE.* README WHATSNEW KEYS
- use doc && dohtml welcome.html
- use doc && dohtml -r docs/*
-}