Mercurial > hg > portage
annotate dev-java/ant-bin/ant-bin-1.8.1.ebuild @ 564:fdae90d4ff68
bogofilter is in main portage tree now
author | Dirk Olmes <dirk.olmes@codedo.de> |
---|---|
date | Tue, 20 Dec 2022 08:25:51 +0100 |
parents | ea975b812fa2 |
children |
rev | line source |
---|---|
219
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
1 |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
2 inherit java-pkg-2 |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
3 |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
4 DESCRIPTION="Java-based build tool similar to 'make' that uses XML configuration files." |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
5 HOMEPAGE="http://ant.apache.org/" |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
6 |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
7 MY_P="apache-ant-1.8.1" |
220 | 8 SRC_URI="mirror://apache/ant/binaries/${MY_P}-bin.tar.gz" |
219
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
9 LICENSE="Apache-2.0" |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
10 KEYWORDS="~amd64 ~ppc ~x86" |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
11 |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
12 SLOT="0" |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
13 RDEPEND=">=virtual/jdk-1.5" |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
14 IUSE="" |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
15 |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
16 S="${WORKDIR}/${MY_P}" |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
17 ANT_SHARE="/usr/share/${PN}" |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
18 |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
19 src_unpack() { |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
20 unpack ${A} |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
21 |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
22 rm -v "${S}"/bin/*.bat || die |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
23 rm -v "${S}"/bin/*.cmd || die |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
24 } |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
25 |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
26 src_install() { |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
27 dodir "${ANT_SHARE}" |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
28 cp -Rp bin etc lib fetch.xml get-m2.xml "${D}/${ANT_SHARE}" || die "failed to copy" |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
29 |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
30 java-pkg_regjar "${D}/${ANT_SHARE}"/lib/*.jar |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
31 |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
32 dodoc INSTALL KEYS LICENSE NOTICE README WHATSNEW || die |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
33 |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
34 dodir /usr/bin |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
35 dosym "${ANT_SHARE}/bin/ant" /usr/bin/ant |
0f64e7bb73d9
add an ebuild for apache ant
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
36 } |