diff dev-java/ant-bin/ant-bin-1.8.1.ebuild @ 238:86a0cec24d06

Automated merge with http://hoho.dyndns.org/hg/portage
author Dirk Olmes <dirk@xanthippe.ping.de>
date Wed, 11 Aug 2010 04:08:09 +0200
parents ea975b812fa2
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dev-java/ant-bin/ant-bin-1.8.1.ebuild	Wed Aug 11 04:08:09 2010 +0200
@@ -0,0 +1,36 @@
+
+inherit java-pkg-2
+
+DESCRIPTION="Java-based build tool similar to 'make' that uses XML configuration files."
+HOMEPAGE="http://ant.apache.org/"
+
+MY_P="apache-ant-1.8.1"
+SRC_URI="mirror://apache/ant/binaries/${MY_P}-bin.tar.gz"
+LICENSE="Apache-2.0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+SLOT="0"
+RDEPEND=">=virtual/jdk-1.5"
+IUSE=""
+
+S="${WORKDIR}/${MY_P}"
+ANT_SHARE="/usr/share/${PN}"
+
+src_unpack() {
+    unpack ${A}
+
+    rm -v "${S}"/bin/*.bat || die
+    rm -v "${S}"/bin/*.cmd || die
+}
+
+src_install() {
+    dodir "${ANT_SHARE}"
+    cp -Rp bin etc lib fetch.xml get-m2.xml "${D}/${ANT_SHARE}" || die "failed to copy"
+
+    java-pkg_regjar "${D}/${ANT_SHARE}"/lib/*.jar
+
+    dodoc INSTALL KEYS LICENSE NOTICE README WHATSNEW || die
+
+    dodir /usr/bin
+    dosym "${ANT_SHARE}/bin/ant" /usr/bin/ant
+}