diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2022-09-21 14:57:05 +0200 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2022-12-23 10:38:18 +0100 |
commit | 683bb8358529f6551e2bef1ff873a9f6cfd74c6d (patch) | |
tree | 6e5888f547423603de62aa647852b6c61d8540db /dev-java/jdisasm | |
parent | dev-java/commons-junit4: new package, add 1.2.17 (diff) | |
download | gentoo-683bb8358529f6551e2bef1ff873a9f6cfd74c6d.tar.gz gentoo-683bb8358529f6551e2bef1ff873a9f6cfd74c6d.tar.bz2 gentoo-683bb8358529f6551e2bef1ff873a9f6cfd74c6d.zip |
dev-java/jdisasm: new package, add 1.0.6
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-java/jdisasm')
-rw-r--r-- | dev-java/jdisasm/Manifest | 1 | ||||
-rw-r--r-- | dev-java/jdisasm/jdisasm-1.0.6.ebuild | 110 | ||||
-rw-r--r-- | dev-java/jdisasm/metadata.xml | 7 |
3 files changed, 118 insertions, 0 deletions
diff --git a/dev-java/jdisasm/Manifest b/dev-java/jdisasm/Manifest new file mode 100644 index 000000000000..4d200cc3b0ed --- /dev/null +++ b/dev-java/jdisasm/Manifest @@ -0,0 +1 @@ +DIST jdisasm-1.0.6.tar.gz 60275 BLAKE2B 75231659b51891df37dbc74a150a26ca6ee661f3bc1a5674c99c9ff9b37850f68cba893922e2549fb2b05ec82e479d5b348b6018f2ac6689fd764ebb8d19bbbb SHA512 3c006ae74e7ada7a987a68cbdc0e99694290a3ad984a2d9985a9484c6dea4be08eb48cc66cbeb81b56ff875ad3c2d6ed20a57646d29ab5a6d2d39ae5a939f841 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> |