diff options
author | 2004-09-10 19:42:39 +0000 | |
---|---|---|
committer | 2004-09-10 19:42:39 +0000 | |
commit | 7e7fc2483a07704381910f42f135528ac024b94b (patch) | |
tree | c2b43d6a170f60fd57a24003bd11e5178c07f8f9 /dev-java/ant-tasks/ant-tasks-1.6.2-r5.ebuild | |
parent | This is now a metapackage for ant-core & ant-tasks (Manifest recommit) (diff) | |
download | gentoo-2-7e7fc2483a07704381910f42f135528ac024b94b.tar.gz gentoo-2-7e7fc2483a07704381910f42f135528ac024b94b.tar.bz2 gentoo-2-7e7fc2483a07704381910f42f135528ac024b94b.zip |
revision bump: ant moved to ant-core
Diffstat (limited to 'dev-java/ant-tasks/ant-tasks-1.6.2-r5.ebuild')
-rw-r--r-- | dev-java/ant-tasks/ant-tasks-1.6.2-r5.ebuild | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/dev-java/ant-tasks/ant-tasks-1.6.2-r5.ebuild b/dev-java/ant-tasks/ant-tasks-1.6.2-r5.ebuild new file mode 100644 index 000000000000..5a8b671bf29e --- /dev/null +++ b/dev-java/ant-tasks/ant-tasks-1.6.2-r5.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/ant-tasks/ant-tasks-1.6.2-r5.ebuild,v 1.1 2004/09/10 19:41:12 axxo Exp $ + +inherit java-pkg eutils + +DESCRIPTION="Apache ANT Optional Tasks Jar Files" +HOMEPAGE="http://ant.apache.org/" +SRC_URI="mirror://apache/ant/source/apache-ant-${PV}-src.tar.bz2" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="x86 ~amd64 ppc sparc" +IUSE="javamail noantlr nobcel nobeanutils nobsh nocommonsnet nocommonslogging nojdepend nojsch nojython nolog4j nooro noregexp norhino noxalan noxerces" + +DEPEND="=dev-java/ant-${PV}* + !dev-java/ant-optional + >=dev-java/java-config-1.2 + >=dev-java/junit-3.8 + !nolog4j? ( >=dev-java/log4j-1.2.8 ) + !noxerces? ( >=dev-java/xerces-2.6.2-r1 ) + !noxalan? ( >=dev-java/xalan-2.5.2 ) + !nobsh? ( >=dev-java/bsh-1.2-r7 ) + !noantlr? ( >=dev-java/antlr-2.7.2 ) + !nobeanutils? ( >=dev-java/commons-beanutils-1.6.1 ) + !nocommonslogging? ( >=dev-java/commons-logging-1.0.3 ) + !nocommonsnet? ( >=dev-java/commons-net-1.1.0 ) + !nobcel? ( >=dev-java/bcel-5.1 ) + !nooro? ( >=dev-java/oro-2.0.7 ) + !norhino? ( >=dev-java/rhino-1.5_rc4 ) + !nojdepend? ( >=dev-java/jdepend-2.6 ) + !nojsch? ( >=dev-java/jsch-0.1.12 ) + !noregexp? ( >=dev-java/regexp-1.3-r1 ) + !nojython? ( >=dev-java/jython-2.1-r5 ) + javamail? ( >=dev-java/sun-javamail-bin-1.3 )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/apache-ant-${PV}" + +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 + + local p="ant-core,junit" + use noantlr || p="${p},antlr" + use nobcel || p="${p},bcel" + use nobeanutils || p="${p},commons-beanutils" + use nobsh || p="${p},bsh" + use nocommonslogging || p="${p},commons-logging" + use nocommonsnet || p="${p},commons-net" + use nojdepend || p="${p},jdepend" + use nojsch || p="${p},jsch" + use nojython || p="${p},jython" + use nolog4j || p="${p},log4j" + use nooro || p="${p},oro" + use noregexp || p="${p},regexp" + use norhino || p="${p},rhino" + use noxalan || p="${p},xalan" + use noxerces || p="${p},xerces-2" + + use javamail && p="${p},sun-javamail-bin,sun-jaf-bin" + + packages=${p} + + libs=$(java-config -p ${packages}) + ./build.sh -Ddist.dir=${D}/usr/share/ant-core -lib ${libs} || die "build failed" +} + +src_install() { + + local jars="junit vaj weblogic apache-resolver netrexx nodeps \ + starteam xslp stylebook icontract jmf swing jai trax" + + use noantlr || jars="${jars} antlr" + use nobcel || jars="${jars} apache-bcel" + #use nobsf || jars="${jars} apache-bsf" + use nocommonslogging || jars="${jars} commons-logging" + use nocommonsnet || jars="${jars} commons-net" + use nojdepend || jars="${jars} jdepend" + use nojsch || jars="${jars} jsch" + use nolog4j || jars="${jars} apache-log4j" + use nooro || jars="${jars} apache-oro" + use noregexp || jars="${jars} apache-regexp" + use noxalan || jars="${jars} xalan1" + use javamail && jars="${jars} javamail" + + dodir /usr/share/ant-core/lib + for jar in ${jars}; do + java-pkg_dojar build/lib/ant-${jar}.jar + dosym /usr/share/${PN}/lib/ant-${jar}.jar /usr/share/ant-core/lib/ + done +} + +pkg_postinst() { + local noset=false + for x in ${IUSE} ; do + if [ "${x:0:2}" == "no" ] ; then + use ${x} && noset=true + fi + done + if [ ${noset} == "true" ]; then + ewarn "You have disabled some of the ant tasks. Be advised that this may" + ewarn "break building some of the Java packages!!" + ewarn "" + ewarn "We can only offer very limited support in cases where dev-java/ant-tasks" + ewarn "has been build with essential features disabled." + fi +} |