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>
This commit is contained in:
Volkmar W. Pogatzki
2022-09-21 14:57:05 +02:00
committed by Florian Schmaus
parent 03b2dec1e1
commit 683bb83585
3 changed files with 118 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST jdisasm-1.0.6.tar.gz 60275 BLAKE2B 75231659b51891df37dbc74a150a26ca6ee661f3bc1a5674c99c9ff9b37850f68cba893922e2549fb2b05ec82e479d5b348b6018f2ac6689fd764ebb8d19bbbb SHA512 3c006ae74e7ada7a987a68cbdc0e99694290a3ad984a2d9985a9484c6dea4be08eb48cc66cbeb81b56ff875ad3c2d6ed20a57646d29ab5a6d2d39ae5a939f841

View File

@@ -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
}

View File

@@ -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>