Mercurial > hg > portage
changeset 386:9d2a913e5010
pull the Maven 3.3.1 ebuild from Holgi's portage
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Wed, 18 Mar 2015 08:19:31 +0100 |
parents | 4885ef1fda56 |
children | 473b16d70a09 |
files | dev-java/maven/Manifest dev-java/maven/maven-3.3.1.ebuild |
diffstat | 2 files changed, 60 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dev-java/maven/Manifest Wed Mar 18 08:08:19 2015 +0100 +++ b/dev-java/maven/Manifest Wed Mar 18 08:19:31 2015 +0100 @@ -1,3 +1,5 @@ AUX maven 5108 SHA256 ddce53375271fd6e9515350083fd4c97ae86213e5bdb9984faf770ccdac1ff10 SHA512 91901a50153e148b2799b8a1298b4ef26ac07af4b7bbb3ae5c76edccdc8efe41b5613ffd78bd1dd917a78fae8086cdbe737096ff2d4912d0333fff206026dd0b WHIRLPOOL 6f281693bcf3201e9aa245494dd4dec6b623adf19bf89a44461eadb27e6747c590cebe7c73b5f16b77f5eaa04991236ce6820cd0e5980d7e109f110338c6045c DIST apache-maven-3.2.5-bin.tar.gz 7956528 SHA256 8c190264bdf591ff9f1268dc0ad940a2726f9e958e367716a09b8aaa7e74a755 SHA512 0cdbf4c1e045ac7f96c176058f19ebb838bd46caadc4fb479e11eda67efbb66218fe67c370ddec6d2e4d91091ac9e81ff9eea8d64174cbe1e6d5f7e15962cfc5 WHIRLPOOL 79feb96c42dfd2235b0513ce50cf3d684224dcbccb290d2d80565648a6b30af8961b2e3d02d38818ca5c89386c5a25f2a8025e696279a339844535c2d2733f96 +DIST apache-maven-3.3.1-bin.tar.gz 8059952 SHA256 153564900617218a126f78d2603d060d0a15f19f3ec1689fc2b7692a3c15b9aa SHA512 b5f601c6a321d2aecebd3582a40ab46943d07b4a690bbe9cbc084369fa1728556fb9758fa885665863f6ab9dd296c8efa4a50902684a9dd8b66ab1e79ea3d8ac WHIRLPOOL bea3d1c3bdb997aa702b47da1797070ad79ed3e76cbbd530a75e67f0262d20579b98c1d72a2554a02e268ecb9eedce18daa2bfbb0ef231540075348e58a8da97 EBUILD maven-3.2.5.ebuild 1198 SHA256 56ea6f674eda20ec75de1d50258353091edeff10addde343305ee8fabdd5f816 SHA512 027c5a7e10da7d39d308afa1f65fb55aff03fd2a4a24f4cff951f7c568c641edbbb45af56d9088ed01e1f74c5f2f4357801a7235543554818facad52dd30102e WHIRLPOOL f01297d6df6e2d566ebf90f28fd93d9a016e9f29ea94019601e581d6979a7a700e5e499e7274dc6bedb0db829c1814259d89183cc2b7ff47aadb4a4d4e83a6d2 +EBUILD maven-3.3.1.ebuild 1216 SHA256 7a8051b4a82245ae2323f42965bd441a20b7981688bdc207aa7b91f3fc90eca8 SHA512 b9a6eae7f6e68e19b3652a620d80663c82b38b8fe135ddb4fb4c4b8834cc72e7ccc28edea0fa1b8406c5e986d5097b65cbc9427da916d16e4fa37e61954eb33a WHIRLPOOL 59a7d53518693cd34f78b4acf1c4b88d8f5afb8b68d825582a99f6144245dee86af293edef88c6199900e2da2f9f84b9483bec71da97bc5a320b210734c533c5
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dev-java/maven/maven-3.3.1.ebuild Wed Mar 18 08:19:31 2015 +0100 @@ -0,0 +1,58 @@ + +EAPI="5" + +inherit java-pkg-2 + +MY_PN=apache-${PN%%-bin} +MY_PV=${PV/_alpha/-alpha-} +MY_P="${MY_PN}-${MY_PV}" +MY_MV="${PV%%.*}" + +DESCRIPTION="Project Management and Comprehension Tool for Java" +SRC_URI="mirror://apache/maven/maven-${MY_MV}/${PV}/binaries/${MY_P}-bin.tar.gz" +HOMEPAGE="http://maven.apache.org/" + +LICENSE="Apache-2.0" +SLOT="3.3" +KEYWORDS="amd64 x86" + +DEPEND="|| ( app-admin/eselect-java app-admin/eselect-maven )" + +RDEPEND=">=virtual/jdk-1.7 + ${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +MAVEN=${PN}-${SLOT} +MAVEN_SHARE="/usr/share/${MAVEN}" + +java_prepare() { + rm -fv "${S}"/bin/*.bat "${S}"/bin/*.cmd || die + chmod 644 "${S}"/boot/*.jar "${S}"/lib/*.jar "${S}"/conf/settings.xml || die +} + +src_install() { + dodir "${MAVEN_SHARE}" + + cp -Rp bin boot conf lib "${ED}/${MAVEN_SHARE}" || die "failed to copy" + + java-pkg_regjar "${ED}/${MAVEN_SHARE}"/boot/*.jar + java-pkg_regjar "${ED}/${MAVEN_SHARE}"/lib/*.jar + + dodoc README.txt + + dodir /usr/bin + dosym "${MAVEN_SHARE}/bin/mvn" /usr/bin/mvn-${SLOT} + + # See bug #342901. + echo "CONFIG_PROTECT=\"${MAVEN_SHARE}/conf\"" > "${T}/25${MAVEN}" || die + doenvd "${T}/25${MAVEN}" +} + +pkg_postinst() { + eselect maven update mvn-${SLOT} +} + +pkg_postrm() { + eselect maven update +}