Mercurial > hg > portage
annotate dev-java/maven/maven-3.3.1.ebuild @ 396:af9fcfc5c007
add a nodejs ebuild that supports building without the ssl flag
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Wed, 26 Aug 2015 09:27:04 +0200 |
parents | f43f356f7c65 |
children |
rev | line source |
---|---|
386
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
1 |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
2 EAPI="5" |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
3 |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
4 inherit java-pkg-2 |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
5 |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
6 MY_PN=apache-${PN%%-bin} |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
7 MY_PV=${PV/_alpha/-alpha-} |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
8 MY_P="${MY_PN}-${MY_PV}" |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
9 MY_MV="${PV%%.*}" |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
10 |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
11 DESCRIPTION="Project Management and Comprehension Tool for Java" |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
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" |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
13 HOMEPAGE="http://maven.apache.org/" |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
14 |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
15 LICENSE="Apache-2.0" |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
16 SLOT="3.3" |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
17 KEYWORDS="amd64 x86" |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
18 |
388
f43f356f7c65
update the eselect dependency
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
386
diff
changeset
|
19 DEPEND="|| ( app-eselect/eselect-java app-eselect/eselect-maven )" |
386
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
20 |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
21 RDEPEND=">=virtual/jdk-1.7 |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
22 ${DEPEND}" |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
23 |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
24 S="${WORKDIR}/${MY_P}" |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
25 |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
26 MAVEN=${PN}-${SLOT} |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
27 MAVEN_SHARE="/usr/share/${MAVEN}" |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
28 |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
29 java_prepare() { |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
30 rm -fv "${S}"/bin/*.bat "${S}"/bin/*.cmd || die |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
31 chmod 644 "${S}"/boot/*.jar "${S}"/lib/*.jar "${S}"/conf/settings.xml || die |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
32 } |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
33 |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
34 src_install() { |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
35 dodir "${MAVEN_SHARE}" |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
36 |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
37 cp -Rp bin boot conf lib "${ED}/${MAVEN_SHARE}" || die "failed to copy" |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
38 |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
39 java-pkg_regjar "${ED}/${MAVEN_SHARE}"/boot/*.jar |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
40 java-pkg_regjar "${ED}/${MAVEN_SHARE}"/lib/*.jar |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
41 |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
42 dodoc README.txt |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
43 |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
44 dodir /usr/bin |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
45 dosym "${MAVEN_SHARE}/bin/mvn" /usr/bin/mvn-${SLOT} |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
46 |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
47 # See bug #342901. |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
48 echo "CONFIG_PROTECT=\"${MAVEN_SHARE}/conf\"" > "${T}/25${MAVEN}" || die |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
49 doenvd "${T}/25${MAVEN}" |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
50 } |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
51 |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
52 pkg_postinst() { |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
53 eselect maven update mvn-${SLOT} |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
54 } |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
55 |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
56 pkg_postrm() { |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
57 eselect maven update |
9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
58 } |