| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/ant/ant-1.8.4.ebuild,v 1.4 2012/08/23 07:53:25 xmw Exp $
|
| 4 |
|
| 5 |
EAPI="4"
|
| 6 |
|
| 7 |
inherit versionator
|
| 8 |
|
| 9 |
DESCRIPTION="Java-based build tool similar to 'make' that uses XML configuration files."
|
| 10 |
HOMEPAGE="http://ant.apache.org/"
|
| 11 |
|
| 12 |
LICENSE="Apache-2.0"
|
| 13 |
SLOT="0"
|
| 14 |
KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
| 15 |
IUSE=""
|
| 16 |
|
| 17 |
DEPEND="~dev-java/ant-core-${PV}"
|
| 18 |
RDEPEND="${DEPEND}"
|
| 19 |
|
| 20 |
IUSE="X +antlr +bcel +bsf +commonslogging +commonsnet jai +javamail +jdepend jmf
|
| 21 |
+jsch +log4j +oro +regexp +resolver testutil"
|
| 22 |
|
| 23 |
RDEPEND="~dev-java/ant-core-${PV}
|
| 24 |
~dev-java/ant-nodeps-${PV}
|
| 25 |
~dev-java/ant-junit-${PV}
|
| 26 |
!dev-java/ant-optional
|
| 27 |
!dev-java/ant-tasks
|
| 28 |
~dev-java/ant-trax-${PV}
|
| 29 |
~dev-java/ant-apache-xalan2-${PV}
|
| 30 |
antlr? ( ~dev-java/ant-antlr-${PV} )
|
| 31 |
bcel? ( ~dev-java/ant-apache-bcel-${PV} )
|
| 32 |
bsf? ( ~dev-java/ant-apache-bsf-${PV} )
|
| 33 |
log4j? ( ~dev-java/ant-apache-log4j-${PV} )
|
| 34 |
oro? ( ~dev-java/ant-apache-oro-${PV} )
|
| 35 |
regexp? ( ~dev-java/ant-apache-regexp-${PV} )
|
| 36 |
resolver? ( ~dev-java/ant-apache-resolver-${PV} )
|
| 37 |
commonslogging? ( ~dev-java/ant-commons-logging-${PV} )
|
| 38 |
commonsnet? ( ~dev-java/ant-commons-net-${PV} )
|
| 39 |
jai? ( ~dev-java/ant-jai-${PV} )
|
| 40 |
javamail? ( ~dev-java/ant-javamail-${PV} )
|
| 41 |
jdepend? ( ~dev-java/ant-jdepend-${PV} )
|
| 42 |
jmf? ( ~dev-java/ant-jmf-${PV} )
|
| 43 |
jsch? ( ~dev-java/ant-jsch-${PV} )
|
| 44 |
testutil? ( ~dev-java/ant-testutil-${PV} )
|
| 45 |
X? ( ~dev-java/ant-swing-${PV} )"
|
| 46 |
|
| 47 |
DEPEND=""
|
| 48 |
|
| 49 |
S="${WORKDIR}"
|
| 50 |
|
| 51 |
src_compile() { :; }
|
| 52 |
|
| 53 |
pkg_postinst() {
|
| 54 |
if [[ -n ${REPLACING_VERSIONS} ]]; then
|
| 55 |
# if we update from a version below 1.7.1
|
| 56 |
if ! version_is_at_least 1.7.1 ${REPLACING_VERSIONS}; then
|
| 57 |
elog "Since 1.7.1, the ant-tasks meta-ebuild has been removed and its USE"
|
| 58 |
elog "flags have been moved to dev-java/ant."
|
| 59 |
elog
|
| 60 |
elog "You may now freely set the USE flags of this package without breaking"
|
| 61 |
elog "building of Java packages, which depend on the exact ant tasks they need."
|
| 62 |
elog "The USE flags default to enabled (except X, jai and jmf) for convenience."
|
| 63 |
fi
|
| 64 |
fi
|
| 65 |
}
|