annotate dev-java/maven/maven-3.3.3.ebuild @ 469:ce3ab8337610

new vscode version
author Dirk Olmes <dirk@xanthippe.ping.de>
date Tue, 19 Mar 2019 13:52:51 +0100
parents 33c1ff0ce3ae
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
390
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
1
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
2 EAPI="5"
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
3
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
4 inherit java-pkg-2
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
5
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
6 MY_PN=apache-${PN%%-bin}
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
7 MY_PV=${PV/_alpha/-alpha-}
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
8 MY_P="${MY_PN}-${MY_PV}"
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
9 MY_MV="${PV%%.*}"
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
10
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
11 DESCRIPTION="Project Management and Comprehension Tool for Java"
33c1ff0ce3ae add ebuild for maven 3.3.3
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"
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
13 HOMEPAGE="http://maven.apache.org/"
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
14
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
15 LICENSE="Apache-2.0"
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
16 SLOT="3.3"
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
17 KEYWORDS="amd64 x86"
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
18
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
19 DEPEND="|| ( app-eselect/eselect-java app-eselect/eselect-maven )"
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
20
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
21 RDEPEND=">=virtual/jdk-1.7
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
22 ${DEPEND}"
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
23
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
24 S="${WORKDIR}/${MY_P}"
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
25
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
26 MAVEN=${PN}-${SLOT}
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
27 MAVEN_SHARE="/usr/share/${MAVEN}"
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
28
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
29 java_prepare() {
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
30 rm -fv "${S}"/bin/*.bat "${S}"/bin/*.cmd || die
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
31 chmod 644 "${S}"/boot/*.jar "${S}"/lib/*.jar "${S}"/conf/settings.xml || die
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
32 }
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
33
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
34 src_install() {
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
35 dodir "${MAVEN_SHARE}"
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
36
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
37 cp -Rp bin boot conf lib "${ED}/${MAVEN_SHARE}" || die "failed to copy"
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
38
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
39 java-pkg_regjar "${ED}/${MAVEN_SHARE}"/boot/*.jar
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
40 java-pkg_regjar "${ED}/${MAVEN_SHARE}"/lib/*.jar
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
41
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
42 dodoc README.txt
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
43
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
44 dodir /usr/bin
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
45 dosym "${MAVEN_SHARE}/bin/mvn" /usr/bin/mvn-${SLOT}
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
46
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
47 # See bug #342901.
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
48 echo "CONFIG_PROTECT=\"${MAVEN_SHARE}/conf\"" > "${T}/25${MAVEN}" || die
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
49 doenvd "${T}/25${MAVEN}"
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
50 }
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
51
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
52 pkg_postinst() {
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
53 eselect maven update mvn-${SLOT}
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
54 }
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
55
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
56 pkg_postrm() {
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
57 eselect maven update
33c1ff0ce3ae add ebuild for maven 3.3.3
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
58 }