diff options
author | Miroslav Šulc <fordfrog@gentoo.org> | 2023-06-27 09:33:11 +0200 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2023-06-27 09:33:11 +0200 |
commit | ea31ce8a3a2dd95c5d27d880ad350addddefdc8e (patch) | |
tree | f2f923bff933f3c766539e2a7d8c79df56260088 /dev-java/maven-bin | |
parent | net-p2p/biglybt: add 3.4.0.0 (diff) | |
download | gentoo-ea31ce8a3a2dd95c5d27d880ad350addddefdc8e.tar.gz gentoo-ea31ce8a3a2dd95c5d27d880ad350addddefdc8e.tar.bz2 gentoo-ea31ce8a3a2dd95c5d27d880ad350addddefdc8e.zip |
dev-java/maven-bin: bump to 3.9.3
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/maven-bin')
-rw-r--r-- | dev-java/maven-bin/Manifest | 1 | ||||
-rw-r--r-- | dev-java/maven-bin/maven-bin-3.9.3.ebuild | 64 |
2 files changed, 65 insertions, 0 deletions
diff --git a/dev-java/maven-bin/Manifest b/dev-java/maven-bin/Manifest index 10d64997d41e..d92cee0e870b 100644 --- a/dev-java/maven-bin/Manifest +++ b/dev-java/maven-bin/Manifest @@ -1,2 +1,3 @@ DIST apache-maven-3.8.8-bin.tar.gz 8296049 BLAKE2B af6353193365ed33e8f2f0a7e4d31933132751f142ebbdb68aab7a74ad2dda6593bf34cef9d8d56d6c93ff93293b75517a10a5c1c048733b8c911f4ac150bdf6 SHA512 332088670d14fa9ff346e6858ca0acca304666596fec86eea89253bd496d3c90deae2be5091be199f48e09d46cec817c6419d5161fb4ee37871503f472765d00 DIST apache-maven-3.9.2-bin.tar.gz 9248920 BLAKE2B 4aef801d463c7a5e1fb3d9e97459c7dca5e09033727ca43821e5b7296e5eedc158859980ff9231130aecc8c1507ac497206f24393291b37c33a751d795dc443c SHA512 900bdeeeae550d2d2b3920fe0e00e41b0069f32c019d566465015bdd1b3866395cbe016e22d95d25d51d3a5e614af2c83ec9b282d73309f644859bbad08b63db +DIST apache-maven-3.9.3-bin.tar.gz 9258617 BLAKE2B fb73e0f8d9c9cf70912329c58f36044858021753ea7b3b0d0a2a95addd68202ad18c4c049c513af884ba2651165acef042500c3c0536ca52a5eabf883f43e97e SHA512 400fc5b6d000c158d5ee7937543faa06b6bda8408caa2444a9c947c21472fde0f0b64ac452b8cec8855d528c0335522ed5b6c8f77085811c7e29e1bedbb5daa2 diff --git a/dev-java/maven-bin/maven-bin-3.9.3.ebuild b/dev-java/maven-bin/maven-bin-3.9.3.ebuild new file mode 100644 index 000000000000..6748f5927604 --- /dev/null +++ b/dev-java/maven-bin/maven-bin-3.9.3.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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="https://maven.apache.org/" + +LICENSE="Apache-2.0" +SLOT="3.9" +KEYWORDS="~amd64 ~x86" + +DEPEND=" + >=virtual/jdk-1.8:* + app-eselect/eselect-java" + +RDEPEND=" + >=virtual/jre-1.8:*" + +S="${WORKDIR}/${MY_P}" + +MAVEN="${PN}-${SLOT}" +MAVEN_SHARE="/usr/share/${MAVEN}" + +QA_FLAGS_IGNORED=( + "${MAVEN_SHARE}/lib/jansi-native/linux32/libjansi.so" + "${MAVEN_SHARE}/lib/jansi-native/linux64/libjansi.so" +) + +# TODO: +# We should use jars from packages, instead of what is bundled. +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 NOTICE 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 +} |