Mercurial > hg > portage
annotate dev-java/maven/maven-3.3.9.ebuild @ 447:876c977b5b58
remove the disabled ebuild, update the Manifest for the recently downloaded release
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Mon, 27 Nov 2017 07:56:49 +0100 |
parents | 3931bbd1a475 |
children |
rev | line source |
---|---|
403
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
1 |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
2 EAPI="5" |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
3 |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
4 inherit java-pkg-2 |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
5 |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
6 MY_PN=apache-${PN%%-bin} |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
7 MY_PV=${PV/_alpha/-alpha-} |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
8 MY_P="${MY_PN}-${MY_PV}" |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
9 MY_MV="${PV%%.*}" |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
10 |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
11 DESCRIPTION="Project Management and Comprehension Tool for Java" |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
12 SRC_URI="mirror://apache/maven/maven-${MY_MV}/${PV}/binaries/${MY_P}-bin.tar.gz" |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
13 HOMEPAGE="http://maven.apache.org/" |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
14 |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
15 LICENSE="Apache-2.0" |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
16 SLOT="3.3" |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
17 KEYWORDS="amd64 x86" |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
18 |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
19 DEPEND="|| ( app-eselect/eselect-java app-eselect/eselect-maven )" |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
20 |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
21 RDEPEND=">=virtual/jdk-1.7 |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
22 ${DEPEND}" |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
23 |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
24 S="${WORKDIR}/${MY_P}" |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
25 |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
26 MAVEN=${PN}-${SLOT} |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
27 MAVEN_SHARE="/usr/share/${MAVEN}" |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
28 |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
29 java_prepare() { |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
30 rm -fv "${S}"/bin/*.bat "${S}"/bin/*.cmd || die |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
31 chmod 644 "${S}"/boot/*.jar "${S}"/lib/*.jar "${S}"/conf/settings.xml || die |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
32 } |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
33 |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
34 src_install() { |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
35 dodir "${MAVEN_SHARE}" |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
36 |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
37 cp -Rp bin boot conf lib "${ED}/${MAVEN_SHARE}" || die "failed to copy" |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
38 |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
39 java-pkg_regjar "${ED}/${MAVEN_SHARE}"/boot/*.jar |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
40 java-pkg_regjar "${ED}/${MAVEN_SHARE}"/lib/*.jar |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
41 |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
42 dodoc README.txt |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
43 |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
44 dodir /usr/bin |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
45 dosym "${MAVEN_SHARE}/bin/mvn" /usr/bin/mvn-${SLOT} |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
46 |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
47 # See bug #342901. |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
48 echo "CONFIG_PROTECT=\"${MAVEN_SHARE}/conf\"" > "${T}/25${MAVEN}" || die |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
49 doenvd "${T}/25${MAVEN}" |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
50 } |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
51 |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
52 pkg_postinst() { |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
53 eselect maven update mvn-${SLOT} |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
54 } |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
55 |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
56 pkg_postrm() { |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
57 eselect maven update |
3931bbd1a475
update Maven to 3.3.9, remove old ebuilds
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
58 } |