summaryrefslogtreecommitdiff
path: root/dev-java/jdisasm
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-12-23 13:59:28 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-12-23 13:59:28 +0000
commit1ffbeeb1643e9197d8a58c65a1d76bbaf3656292 (patch)
tree2cb5d912afaf290c355b58f8a7334b0e6c5277f0 /dev-java/jdisasm
parent7819ef4baadbb9171070ce385f7051989fe64e49 (diff)
gentoo auto-resync : 23:12:2022 - 13:59:28
Diffstat (limited to 'dev-java/jdisasm')
-rw-r--r--dev-java/jdisasm/Manifest3
-rw-r--r--dev-java/jdisasm/jdisasm-1.0.6.ebuild110
-rw-r--r--dev-java/jdisasm/metadata.xml7
3 files changed, 120 insertions, 0 deletions
diff --git a/dev-java/jdisasm/Manifest b/dev-java/jdisasm/Manifest
new file mode 100644
index 000000000000..965dafa4c943
--- /dev/null
+++ b/dev-java/jdisasm/Manifest
@@ -0,0 +1,3 @@
+DIST jdisasm-1.0.6.tar.gz 60275 BLAKE2B 75231659b51891df37dbc74a150a26ca6ee661f3bc1a5674c99c9ff9b37850f68cba893922e2549fb2b05ec82e479d5b348b6018f2ac6689fd764ebb8d19bbbb SHA512 3c006ae74e7ada7a987a68cbdc0e99694290a3ad984a2d9985a9484c6dea4be08eb48cc66cbeb81b56ff875ad3c2d6ed20a57646d29ab5a6d2d39ae5a939f841
+EBUILD jdisasm-1.0.6.ebuild 2786 BLAKE2B 42ae025316619c31ac15b817f4bacf2a9e0773d040a53e0180a7c842fda74dd61fe61f4a6c89e1ddb5346c367c48cfb3d86196703f66a806d363cbcf999e9619 SHA512 bdeea938425ce301055b7aa48eb97ba9f31bb8c898356e26ff89725ecf40efdf106ab3366d5ad949d25895090c61c62c82c52dd21c0f3a8b253e5dc5e39ddddf
+MISC metadata.xml 217 BLAKE2B cb41a7bd7e5c55319465d67551eae75371cc72d58629c61f70a7f54c388645d5ab1427c66dfdd5954e36ca40f0d3209f871d476cacd61516dd57e3297aaa601f SHA512 4df8395dcf07c52adadee71ad7dfa9f611ade8485cc9869397d0037272ae9add9b40d90669da8b80e578b4ee14c512da01ba096abe39a5859ac71c5316e425b6
diff --git a/dev-java/jdisasm/jdisasm-1.0.6.ebuild b/dev-java/jdisasm/jdisasm-1.0.6.ebuild
new file mode 100644
index 000000000000..0191e918c661
--- /dev/null
+++ b/dev-java/jdisasm/jdisasm-1.0.6.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Skeleton command:
+# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri https://github.com/aunkrig/jdisasm/archive/5e354d659e4320d154b3f1fbff24c89c1ba48987.tar.gz --slot 0 --keywords "~amd64" --ebuild jdisasl-1.0.6.ebuild
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source test"
+MAVEN_ID="de.unkrig.jdisasm:jdisasm:1.0.6"
+JAVA_TESTING_FRAMEWORKS="junit-4"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="A disassembler for Java .class files"
+HOMEPAGE="https://github.com/aunkrig/jdisasm"
+MY_COMMIT="5e354d659e4320d154b3f1fbff24c89c1ba48987"
+SRC_URI="https://github.com/aunkrig/jdisasm/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+
+# There was 1 failure:
+# 1) testWideLocals(jdisasm.Tests)
+# java.lang.AssertionError: regex [(?m)^ iload_2 \[int l1\]$] not found in [
+# // *** Disassembly of 'target/test-classes/subject/WideLocals.class'.
+#
+# // Class file version = 52.0 (Java 8)
+#
+# package subject;
+#
+# public class WideLocals extends Object {
+#
+# public WideLocals() {
+# // Line 35
+# aload_0 [this]
+# invokespecial Object()
+# return
+# }
+#
+# public int methodWithOnlyAFewLocals(int p0) {
+# // Line 39
+# iconst_2
+# iload_1 [p0]
+# imul
+# istore_2 [v2]
+# // Line 40
+# iload_2 [v2]
+# ireturn
+# }
+#
+# public int methodWithManyLocals(int p0) {
+# // Line 79
+# iconst_3
+# istore [v202]
+# // Line 80
+# iconst_4
+# wide istore [v272]
+# // Line 81
+# iload_1 [p0]
+# ireturn
+# }
+# }
+# ]
+# at org.junit.Assert.fail(Assert.java:89)
+# at de.unkrig.commons.junit4.AssertRegex.assertFind(AssertRegex.java:182)
+# at de.unkrig.commons.junit4.AssertRegex.assertFind(AssertRegex.java:169)
+# at jdisasm.Tests.testWideLocals(Tests.java:44)
+#
+# FAILURES!!!
+# Tests run: 1, Failures: 1
+RESTRICT="test"
+
+# Common dependencies
+# POM: pom.xml
+# de.unkrig.commons:commons-nullanalysis:1.2.13 -> >=dev-java/commons-nullanalysis-1.2.17:0
+
+CP_DEPEND="
+ dev-java/commons-nullanalysis:0
+"
+
+# Compile dependencies
+# POM: pom.xml
+# test? de.unkrig.commons:commons-junit4:1.2.13 -> >=dev-java/commons-junit4-1.2.17:0
+
+DEPEND="
+ >=virtual/jdk-1.8:*
+ ${CP_DEPEND}
+ test? (
+ dev-java/commons-junit4:0
+ )
+"
+
+RDEPEND="
+ >=virtual/jre-1.8:*
+ ${CP_DEPEND}"
+
+S="${WORKDIR}/jdisasm-${MY_COMMIT}/jdisasm"
+
+JAVA_SRC_DIR="src/main/java"
+
+JAVA_TEST_GENTOO_CLASSPATH="commons-junit4"
+JAVA_TEST_SRC_DIR="src/test/java"
+
+src_test() {
+ # but it doesn't help :-(
+ export LANG="C" LC_ALL="C"
+ java-pkg-simple_src_test
+}
diff --git a/dev-java/jdisasm/metadata.xml b/dev-java/jdisasm/metadata.xml
new file mode 100644
index 000000000000..75321cfb5598
--- /dev/null
+++ b/dev-java/jdisasm/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>