summaryrefslogtreecommitdiff
path: root/dev-java/asm
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-10-11 04:04:15 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-10-11 04:04:15 +0100
commit61af1efe96cf1037982d2fc90af0749b5ec5a0c6 (patch)
treefd4966f3b19ef9b18ed5024d7e2f48ef73eb2fee /dev-java/asm
parent3aae425b3c39d02e2dc917db0fae8c225c158ca1 (diff)
gentoo auto-resync : 11:10:2024 - 04:04:14
Diffstat (limited to 'dev-java/asm')
-rw-r--r--dev-java/asm/Manifest4
-rw-r--r--dev-java/asm/asm-9.7.1.ebuild97
-rw-r--r--dev-java/asm/asm-9.7.ebuild2
3 files changed, 101 insertions, 2 deletions
diff --git a/dev-java/asm/Manifest b/dev-java/asm/Manifest
index 05f5f0dd5300..5b35a99e1c44 100644
--- a/dev-java/asm/Manifest
+++ b/dev-java/asm/Manifest
@@ -1,5 +1,7 @@
DIST asm-ASM_9_6.tar.bz2 1374579 BLAKE2B 621b19f1818ffdd451037af210ec7c3286e3dabdb1d6192157c2e6e8c101f599691cd4de57adf500f5413b4aaf4f808d6ac791e84626223a7be5672a17137670 SHA512 86b2db3e81c29c465d4128736f88ae3b73af8f312915921549d0acdb50a8d2c2c2beed5162af164b6e75278702af0c6f0a8d84b4133516eb4ac419520b7c764d
DIST asm-ASM_9_7.tar.bz2 1376322 BLAKE2B 397a884b257edfd61f67909390c8fe07880d5a295b51dd3982ebbe9b6f8fbac200c46913e6c18e4efdcc80f0e1f0b8463ca9d912484b466ca174b55919a1c259 SHA512 9b7f2d4895f105f75e2c42d8882b176dba32defb17d8da4bdedb2bfe4e5413b03c05a9694114d171aa9623e86a65a677a24ab16a47aef774342d56224400274f
+DIST asm-ASM_9_7_1.tar.bz2 1378103 BLAKE2B f7da3a9c1bcf76398c9e9b9b86d60f8854e5248632a8b2d76605851e29ee1807713fb28c9e76012ec8f9444c44e3a151ed409cd120c34ab8d3495fdc9c84edcb SHA512 77ae76464eec97dbc8129c4a746d13f0d286d2033f909b65e0e34858e1785616b7bee22faa92128b91eb39cbd849e262efe574b73ed2859920add457d6422dd0
EBUILD asm-9.6.ebuild 2443 BLAKE2B 324fbe45ac823e70b8827c6ce6bd7fe9f89d0713050a9884d9f12444b07e57735a8ee042ef73974c7e5791b7f6b6a83ce272dd841658ce2f5e70fafa40dd592b SHA512 9e423e980744892a16bafee114a48b376978b492574b93f6915eeda2db2c885603cb5a5cbb8bf9cb082a38e4fc35b1abf038ae51cfa91271e74fac43ebb92fbd
-EBUILD asm-9.7.ebuild 2504 BLAKE2B 011175045fbfeff565208f511f6caf9f570503464f66d863770149e0e563fe83f80e7ee72640dc5fc67610bdbc1a3d6582f165e29cada76d0742f4bee30e3b94 SHA512 618dc561d13c190ea647dce8bef7155b4411fc3e903ea0229e82e90b5b53a9378ee19f25ad74764685bbd175a3f8a722c65eda0ae2ebfa0ac4d4cf0e0ae4a5d0
+EBUILD asm-9.7.1.ebuild 2507 BLAKE2B 630d61129c94c80db003a9c83561d0d363be43535920055d5cc499f70c71faf02053915895704f65d70b8c2f7dea8f85c883782ed498f8c405b44386091415a1 SHA512 9278a37cbb3051cb1c9133e939e4c89f3c66d352f5a203ba2fdbe31513bbc4b4936b538cccae69e5e77a5559fd1a6cde6efa07b2754e4725d3cbc5da2aedf25b
+EBUILD asm-9.7.ebuild 2503 BLAKE2B 3d3564248617d006664119a06a52b9fbc730abb69723b3f7660005a0cad37bf909c39df4ac9b5935a23e130b316edf1df6869c4230eddf763ae539279b209285 SHA512 3ba7ed8f580a40d06f5aa2c00385dc93af2bcb0cf4e165429cf3b7590ef2722b8867ad560304d7b5fe7e0efc7ee5551b333b1c3775306262a15084bcfe8823c5
MISC metadata.xml 1233 BLAKE2B 13faf251d3d40ed558c83262972ea106892cc3be0f7a1b95a0b484123d93473bd867b2f7b53c3e5ccc2f1fe249ebe66cb9e757e19ad36c8d3e3eac6a7a981d98 SHA512 59a292291ac757818e41d009e2cdbb73b6d914c1f552c34e9360635cb468f1ebfdf9c58d6642710d5218689d08797320102c8ccb6d5f4bc9478883feb9b9b397
diff --git a/dev-java/asm/asm-9.7.1.ebuild b/dev-java/asm/asm-9.7.1.ebuild
new file mode 100644
index 000000000000..eb1994183f55
--- /dev/null
+++ b/dev-java/asm/asm-9.7.1.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# tests not enabled because of missing eclass support of junit-jupiter
+JAVA_PKG_IUSE="doc source"
+MAVEN_PROVIDES="
+ org.ow2.asm:asm-bom:${PV}
+ org.ow2.asm:asm:${PV}
+ org.ow2.asm:asm-analysis:${PV}
+ org.ow2.asm:asm-commons:${PV}
+ org.ow2.asm:asm-tree:${PV}
+ org.ow2.asm:asm-util:${PV}
+"
+
+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.bz2"
+S="${WORKDIR}/asm-${MY_P}"
+
+LICENSE="BSD"
+SLOT="9"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~x64-macos"
+
+DEPEND=">=virtual/jdk-11:*"
+RDEPEND=">=virtual/jre-1.8:*"
+
+ASM_MODULES=( "asm" "asm-tree" "asm-analysis" "asm-commons" "asm-util" )
+JAVADOC_SRC_DIRS=(
+ asm/src/main/java
+ asm-tree/src/main/java
+ asm-analysis/src/main/java
+ asm-commons/src/main/java
+ asm-util/src/main/java
+)
+
+src_prepare() {
+ default
+ local module
+ touch asm.module || die
+ for module in "${ASM_MODULES[@]}"; do
+ module=${module/-/.}
+ cat > ${module/./-}/src/main/java/module-info.java <<-EOF || die
+ open module org.objectweb.${module/analysis/tree.analysis} {
+ $(cat asm.module)
+ requires java.base;
+ exports org.objectweb.${module/analysis/tree.analysis};
+ }
+ EOF
+ echo "requires transitive org.objectweb.${module/analysis/tree.analysis};" \
+ >> asm.module || die
+ done
+ sed -e '/^$/d' \
+ -e '/asm;/p;s:\(asm\)\(;\):\1.signature\2:' \
+ -i asm/src/main/java/module-info.java || die
+ sed -e '/analysis/d' \
+ -i asm-commons/src/main/java/module-info.java || die
+ sed -e '/commons/d' \
+ -i asm-util/src/main/java/module-info.java || die
+}
+
+src_compile() {
+ local module
+ for module in "${ASM_MODULES[@]}"; do
+ einfo "Compiling ${module}"
+ JAVA_JAR_FILENAME="${module}.jar"
+ JAVA_SRC_DIR="${module}/src/main/java"
+ java-pkg-simple_src_compile
+ JAVA_GENTOO_CLASSPATH_EXTRA+=":${module}.jar"
+ rm -r target || die
+ done
+
+ if use doc; then
+ einfo "Compiling javadocs"
+ for module in "${ASM_MODULES[@]}"; do
+ rm "${module}/src/main/java/module-info.java" || die
+ JAVA_SRC_DIR+=("${module}/src/main/java")
+ done
+ ejavadoc
+ fi
+}
+
+src_install() {
+ JAVA_JAR_FILENAME="asm.jar"
+ java-pkg-simple_src_install
+ local module
+ for module in asm-{analysis,commons,tree,util}; do
+ java-pkg_dojar ${module}.jar
+ if use source; then
+ java-pkg_dosrc "${module}/src/main/java/*"
+ fi
+ done
+}
diff --git a/dev-java/asm/asm-9.7.ebuild b/dev-java/asm/asm-9.7.ebuild
index 4eeede15217a..258cfd738067 100644
--- a/dev-java/asm/asm-9.7.ebuild
+++ b/dev-java/asm/asm-9.7.ebuild
@@ -24,7 +24,7 @@ S="${WORKDIR}/asm-${MY_P}"
LICENSE="BSD"
SLOT="9"
-KEYWORDS="amd64 ~arm ~arm64 ppc64 x86 ~x64-macos"
+KEYWORDS="amd64 ~arm arm64 ppc64 x86 ~x64-macos"
DEPEND=">=virtual/jdk-11:*"
RDEPEND=">=virtual/jre-1.8:*"