# Copyright 1999-2007 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.7.0.ebuild,v 1.8 2007/02/24 00:32:20 caster Exp $ # don't depend on itself JAVA_ANT_DISABLE_ANT_CORE_DEP=true # rewriting build.xml files for the testcases has no reason atm JAVA_PKG_BSFIX_ALL=no inherit java-pkg-2 java-ant-2 MY_P="apache-ant-${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/${MY_P}-src.tar.bz2 mirror://gentoo/ant-${PV}-gentoo.tar.bz2" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd" IUSE="doc source" # 1.7.0 instead of $PV in blocks is intentional, >1.7.0 upgrades should # be block free (but these fixed blocks should stay there for users upgrading # from <1.7.0 to >1.7.0 of course) RDEPEND=">=virtual/jdk-1.4 ! ${T}/20ant doenvd ${T}/20ant || die "failed to install env.d file" java-pkg_dojar build/lib/ant.jar java-pkg_dojar build/lib/ant-bootstrap.jar java-pkg_dojar build/lib/ant-launcher.jar use source && java-pkg_dosrc src/main/* dodoc README WHATSNEW KEYS if use doc; then dohtml welcome.html dohtml -r docs/* java-pkg_dojavadoc build/javadocs fi } pkg_postinst() { elog "The way of packaging ant in Gentoo has changed since version 1.7.0." elog "For more info, please see http://overlays.gentoo.org/proj/java/wiki/Split_Ant" }