diff options
Diffstat (limited to 'dev-java/ant-core/ant-core-1.6.3-r1.ebuild')
-rw-r--r-- | dev-java/ant-core/ant-core-1.6.3-r1.ebuild | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/dev-java/ant-core/ant-core-1.6.3-r1.ebuild b/dev-java/ant-core/ant-core-1.6.3-r1.ebuild new file mode 100644 index 000000000000..a12d2a55cbdd --- /dev/null +++ b/dev-java/ant-core/ant-core-1.6.3-r1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/ant-core/ant-core-1.6.3-r1.ebuild,v 1.1 2005/05/14 16:09:55 luckyduck Exp $ + +inherit java-pkg eutils + +MY_PN=${PN/-core} + +MY_PV=${PV/_/} + +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-${MY_PN}-${PV}-src.tar.bz2" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~x86 ~amd64 ~ppc ~sparc ~ppc64" +IUSE="doc" + +DEPEND="virtual/libc + >=virtual/jdk-1.4 + >=dev-java/java-config-1.2" +RDEPEND=">=virtual/jdk-1.4 + app-shells/bash + >=dev-java/java-config-1.2" + +S="${WORKDIR}/apache-ant-${MY_PV}" + +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" + if [ `arch` == "ppc" ] ; then + # We're compiling _ON_ PPC + export THREADS_FLAG="green" + fi + + + local myc + myc="${myc} -Ddist.dir=${D}/usr/share/${PN}" + myc="${myc} -Djavac.target=1.4" + echo $CLASSPATH + CLASSPATH="." ./build.sh -Ddist.dir=${D}/usr/share/${PN} || die + + use doc && ./build.sh dist_javadocs +} + +src_install() { + newbin ${FILESDIR}/${PV/_*}-ant ant || die "failed to install wrapper" + + dodir /usr/share/${PN}/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/${PN}/bin/${each} + done + + dodir /etc/env.d + echo "ANT_HOME=\"/usr/share/${PN}\"" > ${D}/etc/env.d/20ant + + java-pkg_dojar build/lib/ant.jar + java-pkg_dojar build/lib/ant-launcher.jar + + dodoc README WHATSNEW KEYS + use doc && dohtml welcome.html + use doc && java-pkg_dohtml -r docs/* + use doc && java-pkg_dohtml -r dist/docs/manual/api/* +} |