diff options
author | Vlastimil Babka <caster@gentoo.org> | 2007-03-11 00:37:02 +0000 |
---|---|---|
committer | Vlastimil Babka <caster@gentoo.org> | 2007-03-11 00:37:02 +0000 |
commit | abd166863d354ce67a8ad59eb4bc989ee137cfb5 (patch) | |
tree | 3409a3a7232494a8f5ed5c6df977d928551cace5 /dev-java/ant-tasks | |
parent | Version bump (diff) | |
download | gentoo-2-abd166863d354ce67a8ad59eb4bc989ee137cfb5.tar.gz gentoo-2-abd166863d354ce67a8ad59eb4bc989ee137cfb5.tar.bz2 gentoo-2-abd166863d354ce67a8ad59eb4bc989ee137cfb5.zip |
Revbump that symlinks all ant-core and tasks jars into one lib dir in /usr/share/ant and points ANT_HOME there, for stuff that loads the jars directly without launcher.
(Portage version: 2.1.2.2)
Diffstat (limited to 'dev-java/ant-tasks')
-rw-r--r-- | dev-java/ant-tasks/ChangeLog | 10 | ||||
-rw-r--r-- | dev-java/ant-tasks/ant-tasks-1.7.0-r1.ebuild | 119 | ||||
-rw-r--r-- | dev-java/ant-tasks/files/digest-ant-tasks-1.7.0-r1 | 0 |
3 files changed, 128 insertions, 1 deletions
diff --git a/dev-java/ant-tasks/ChangeLog b/dev-java/ant-tasks/ChangeLog index 20363420672a..cfb2de962569 100644 --- a/dev-java/ant-tasks/ChangeLog +++ b/dev-java/ant-tasks/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for dev-java/ant-tasks # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/ant-tasks/ChangeLog,v 1.57 2007/02/18 18:22:24 betelgeuse Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/ant-tasks/ChangeLog,v 1.58 2007/03/11 00:37:02 caster Exp $ + +*ant-tasks-1.7.0-r1 (11 Mar 2007) + + 11 Mar 2007; Vlastimil Babka <caster@gentoo.org> + +ant-tasks-1.7.0-r1.ebuild: + Revbump that symlinks all ant-core and tasks jars into one lib dir in + /usr/share/ant and points ANT_HOME there, for stuff that loads the jars + directly without launcher. 18 Feb 2007; Petteri Räty <betelgeuse@gentoo.org> -ant-tasks-1.6.5-r2.ebuild: diff --git a/dev-java/ant-tasks/ant-tasks-1.7.0-r1.ebuild b/dev-java/ant-tasks/ant-tasks-1.7.0-r1.ebuild new file mode 100644 index 000000000000..192c0fc5a008 --- /dev/null +++ b/dev-java/ant-tasks/ant-tasks-1.7.0-r1.ebuild @@ -0,0 +1,119 @@ +# Copyright 1999-2007 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.7.0-r1.ebuild,v 1.1 2007/03/11 00:37:02 caster Exp $ + +inherit java-pkg-2 eutils + +DESCRIPTION="Meta-package for Apache Ant's optional tasks." +HOMEPAGE="http://ant.apache.org/" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd" +IUSE="jai javamail noantlr nobcel nobsf nocommonsnet nocommonslogging nojdepend + nojmf nojsch nolog4j nooro noregexp noresolver noswing noxalan" +# nobeanutils nobsh nojython norhino noxerces + +RDEPEND=">=virtual/jre-1.4 + ~dev-java/ant-core-${PV} + ~dev-java/ant-nodeps-${PV} + ~dev-java/ant-junit-${PV} + !dev-java/ant-optional + !noantlr? ( ~dev-java/ant-antlr-${PV} ) + !nobcel? ( ~dev-java/ant-apache-bcel-${PV} ) + !nobsf? ( ~dev-java/ant-apache-bsf-${PV} ) + !nolog4j? ( ~dev-java/ant-apache-log4j-${PV} ) + !nooro? ( ~dev-java/ant-apache-oro-${PV} ) + !noregexp? ( ~dev-java/ant-apache-regexp-${PV} ) + !noresolver? ( ~dev-java/ant-apache-resolver-${PV} ) + !nocommonslogging? ( ~dev-java/ant-commons-logging-${PV} ) + !nocommonsnet? ( ~dev-java/ant-commons-net-${PV} ) + jai? ( ~dev-java/ant-jai-${PV} ) + javamail? ( ~dev-java/ant-javamail-${PV} ) + !nojdepend? ( ~dev-java/ant-jdepend-${PV} ) + !nojmf? ( ~dev-java/ant-jmf-${PV} ) + !nojsch? ( ~dev-java/ant-jsch-${PV} ) + !noswing? ( ~dev-java/ant-swing-${PV} ) + !noxalan? ( ~dev-java/ant-trax-${PV} )" + +# TODO: consider those +# !noxerces? ( >=dev-java/xerces-2.6.2-r1 ) +# !nobsh? ( >=dev-java/bsh-1.2-r7 ) +# !nobeanutils? ( =dev-java/commons-beanutils-1.6* ) +# !norhino? ( =dev-java/rhino-1.5* ) +# !nojython? ( >=dev-java/jython-2.1-r5 ) + +DEPEND=">=virtual/jdk-1.4 + ${RDEPEND}" + +S="${WORKDIR}" + +src_compile() { :; } + +my_reg_jars() { + # Recording jars to get the same behaviour as before + local oldifs="${IFS}" + IFS=":" + for jar in $(java-pkg_getjars ${1}); do + # these two are only for tasks, not core + if [[ "${1}" != ant-core ]]; then + # this one for package.env, thus java-config -p etc + java-pkg_regjar "${jar}" + # this one for broken stuff with hardcoded paths + dosym ${jar} /usr/share/${PN}/lib/ + fi + # this one for the non-split $ANT_HOME/lib expected by stuff that + # doesn't use the launcher (eclipse, ...) + dosym ${jar} /usr/share/ant/lib/ + done + IFS="${oldifs}" +} + +src_install() { + # create the fake ANT_HOME with symlinks to all ant jars + # starting with ant-core + dodir /usr/share/ant/lib + my_reg_jars ant-core + # just in case + dosym /usr/share/ant-core/bin /usr/share/ant/bin + + # now process the tasks + use !noantlr && my_reg_jars ant-antlr + use !nobcel && my_reg_jars ant-apache-bcel + use !nobsf && my_reg_jars ant-apache-bsf + use !nolog4j && my_reg_jars ant-apache-log4j + use !nooro && my_reg_jars ant-apache-oro + use !noregexp && my_reg_jars ant-apache-regexp + use !noresolver && my_reg_jars ant-apache-resolver + use !nocommonslogging && my_reg_jars ant-commons-logging + use !nocommonsnet && my_reg_jars ant-commons-net + use jai && my_reg_jars ant-jai + use javamail && my_reg_jars ant-javamail + use !nojdepend && my_reg_jars ant-jdepend + use !nojmf && my_reg_jars ant-jmf + use !nojsch && my_reg_jars ant-jsch + my_reg_jars ant-junit + use !noswing && my_reg_jars ant-swing + use !noxalan && my_reg_jars ant-trax + + # point ANT_HOME to the one with all symlinked jars + # ant-core startup script will ignore this one anyway + echo "ANT_HOME=\"/usr/share/ant\"" > ${T}/21ant-tasks + doenvd ${T}/21ant-tasks || die "failed to install env.d file" +} + +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 +} diff --git a/dev-java/ant-tasks/files/digest-ant-tasks-1.7.0-r1 b/dev-java/ant-tasks/files/digest-ant-tasks-1.7.0-r1 new file mode 100644 index 000000000000..e69de29bb2d1 --- /dev/null +++ b/dev-java/ant-tasks/files/digest-ant-tasks-1.7.0-r1 |