diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2022-05-02 19:50:42 +0200 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2022-05-04 21:46:47 +0200 |
commit | 259b2ba08576699efe7e9af86ccc1de9ea36f5eb (patch) | |
tree | 7b74e9f41f91a0491f0c37744576425c6b0f6698 /dev-java/asm | |
parent | dev-java/commons-cli: add 1.5.0 (diff) | |
download | gentoo-259b2ba08576699efe7e9af86ccc1de9ea36f5eb.tar.gz gentoo-259b2ba08576699efe7e9af86ccc1de9ea36f5eb.tar.bz2 gentoo-259b2ba08576699efe7e9af86ccc1de9ea36f5eb.zip |
dev-java/asm: add 9.3
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/25289
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-java/asm')
-rw-r--r-- | dev-java/asm/Manifest | 1 | ||||
-rw-r--r-- | dev-java/asm/asm-9.3.ebuild | 65 |
2 files changed, 66 insertions, 0 deletions
diff --git a/dev-java/asm/Manifest b/dev-java/asm/Manifest index d11595f87be4..23ef00249b2f 100644 --- a/dev-java/asm/Manifest +++ b/dev-java/asm/Manifest @@ -1,3 +1,4 @@ DIST asm-ASM_4_0.tar.gz 14789505 BLAKE2B 62b49d904f1ef2d32379f4f5d644cdc274b30f292ee4f64ad02be7d2226a90965f7b12421700e79dcd1e67a46e6a8543d5e353486a1577313616688ddc57f3b3 SHA512 e654623a882d9fe414e71861183f64840f7b6629231864872497d4bf9274e8ac05e05496593fa54a90d8c6a2e6d701b9a6f3876df611637f7d2079c5519def1e DIST asm-ASM_5_1.tar.gz 16258842 BLAKE2B bd7d717cdfa6ff652c96b88d7b7d33fae614acba390c256ea72ecfbb3edc48382621a076dedf9b8728fdb1d0961cda943f165f99de840824b766c9af45a49339 SHA512 4bb32ce6eba267928261238f8f13cd2365ab374780039ad1df31698cd791645a370aca58c44270ec05f8377d6aa0a0d00f9f3890961cbd32a10cbd2e79e2d518 DIST asm-ASM_9_2.tar.gz 1614845 BLAKE2B 3fc0fb45d0583b06371452d2df166ce53f81a114a386eda96fe3b0c748beffdd42791d59ddfb4c9ad368f73728f3382855a7336324b013e937c20a4f31cea44b SHA512 a0077e3c1ebbd8a841d3556be4363383951244ba87670af45a8565e14ad3ac94ab89a23b934b3609190e1b16dd9663798c01d1c859eddb2e825c41908c2e2afd +DIST asm-ASM_9_3.tar.gz 1666740 BLAKE2B 6905233f666159f861dda68a855e8f5632817b0627c2006d3a8e61340cd4afca9310860dd1eff46173ca7356583e6c44027e674f7e17eacaaf0dbcc24b92198e SHA512 401a4dd7c2638bbad940ca92c42b7ec6f44e1d19c407bba3cd6a081e0b51969cf62a0fbcc407ef4889d3c7d6c7b9893e77642c058f812e9d10b9d67c5215be42 diff --git a/dev-java/asm/asm-9.3.ebuild b/dev-java/asm/asm-9.3.ebuild new file mode 100644 index 000000000000..1f60fa7df080 --- /dev/null +++ b/dev-java/asm/asm-9.3.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +JAVA_PKG_IUSE="doc source" +MAVEN_ID="org.ow2.asm:asm-bom:9.3" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Bytecode manipulation framework for Java" +HOMEPAGE="https://asm.ow2.io" +MY_P="ASM_${PV//./_}" +SRC_URI="https://gitlab.ow2.org/asm/asm/-/archive/${MY_P}/asm-${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="9" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~x64-macos" + +DEPEND=">=virtual/jdk-1.8:*" +RDEPEND=">=virtual/jre-1.8:*" + +ASM_MODULES=( "asm" "asm-tree" "asm-analysis" "asm-commons" "asm-util" ) + +S="${WORKDIR}/asm-${MY_P}" + +src_compile() { + local module + for module in "${ASM_MODULES[@]}"; do + einfo "Compiling ${module}" + JAVA_RESOURCE_DIRS=() + JAVA_MAIN_CLASS="" + JAVA_SRC_DIR="$module/src/main/java" + JAVA_JAR_FILENAME="$module.jar" + # Not all of the modules have resources. + if [[ -d $module/src/main/resources ]]; then \ + JAVA_RESOURCE_DIRS="$module/src/main/resources" + fi + java-pkg-simple_src_compile + JAVA_GENTOO_CLASSPATH_EXTRA+=":$module.jar" + rm -r target || die + done + + if use doc; then + JAVA_SRC_DIR=() + JAVA_JAR_FILENAME="ignoreme.jar" + for module in "${ASM_MODULES[@]}"; do + JAVA_SRC_DIR+=( "$module/src/main/java" ) + done + java-pkg-simple_src_compile + fi +} + +src_install() { + einstalldocs # https://bugs.gentoo.org/789582 + local module + for module in "${ASM_MODULES[@]}"; do + java-pkg_dojar $module.jar + if use source; then + java-pkg_dosrc "$module/src/main/java/*" + fi + done + if use doc; then + java-pkg_dojavadoc target/api + fi +} |