diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-09-14 11:10:11 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-09-14 11:10:11 +0100 |
commit | 81b8f20732954c4508baf2f77472b5435e3f851f (patch) | |
tree | 4180177cb7ba85eab50159ce96218c2419fb24a6 /dev-java/javassist | |
parent | 946859e0e36904cffb3e0ccbccb6b7b1347c1cc8 (diff) |
gentoo auto-resync : 14:09:2022 - 11:10:10
Diffstat (limited to 'dev-java/javassist')
-rw-r--r-- | dev-java/javassist/Manifest | 2 | ||||
-rw-r--r-- | dev-java/javassist/javassist-3.29.1.ebuild | 68 |
2 files changed, 70 insertions, 0 deletions
diff --git a/dev-java/javassist/Manifest b/dev-java/javassist/Manifest index 635c0c03b182..8f78f64ddaf3 100644 --- a/dev-java/javassist/Manifest +++ b/dev-java/javassist/Manifest @@ -1,3 +1,5 @@ DIST javassist-3.29.0.tar.gz 1290728 BLAKE2B 21543fe4d81cc46fa8d6530e8b5b821df64af31404831d15255fe7d362fe40de39451f4e6a264986ce7b8fdb16116c3266a522caf24a2df6a91cc7203354e070 SHA512 9487d4b6e1d7981360f768f2ebe7e8313c103752cc458eb454fffcf6714f62952cc772e920ee663e89cd51cd6a2669993f5595e682ec74313799eff32144541c +DIST javassist-3.29.1.tar.gz 1291658 BLAKE2B 4064401ad01c1e1c9aa4a219a81f0fc2e67b1d4cb85cb98b4a996dd2bf789ee1feb790e5bb332205ef2fafe1c7ac0ea82e5e25afff4d9960c54dfe2cb895d0fd SHA512 5788a4a50b803b2a4520340ceae9fd47466d2004cce4138fd861b57fd760109c61c375a28bd907bb9dfeb56bd44734f003ddd1b550571f101a7d1bc04096b5f8 EBUILD javassist-3.29.0-r2.ebuild 1919 BLAKE2B 21202b1fc59b585ed2e079627dcfad10e65f785319673829d90df723b900a0a6faf3101e26e17dd38e12340f9b3b557602f2c48836d783ee3dd17642e4122466 SHA512 5e1e997c9d9605bc9004672c699b936c4f0349c05960330f40141476099dba2359c2d4f34e4d9332d396688c3b39dec09ea63f3f2cd5fc368b8b222601b41dd8 +EBUILD javassist-3.29.1.ebuild 2076 BLAKE2B f126eb8b1744e5cc1953e64da0dd9b2068d37c9a6e7dbc8e40ca38197dc8308f0b57255ccf2e517a4c0db44dbe1be3f24e0cd387ae4a7fe11d5cb629a730e59d SHA512 f436cc307858a95c487b93f15b43f8d70f50bbdf5b80f281b754f9b71bd9b0291dd30079e336a113b0dc7d7058b91c7381679345e5b172dfacdc117f8c5ab500 MISC metadata.xml 551 BLAKE2B c2f226813733db484e082189bb9420fa19eea8d5f95f751cf42305f110dc6b8a6e07370d9e3bca4be9dfac71333c86e95fb5e3f48543ca0041c2e2a4d96808b0 SHA512 b6b193720397459d3133bed6d0e93973084375684f1df77f93703f9cadf06e0a23e2798a13edf70c67642a656d5e5ef24aef2c032c71b65bc215622dbe42c1e2 diff --git a/dev-java/javassist/javassist-3.29.1.ebuild b/dev-java/javassist/javassist-3.29.1.ebuild new file mode 100644 index 000000000000..d9a588f78267 --- /dev/null +++ b/dev-java/javassist/javassist-3.29.1.ebuild @@ -0,0 +1,68 @@ +# 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/jboss-javassist/javassist/archive/rel_3_29_1_ga.tar.gz --slot 3 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild javassist-3.29.1.ebuild + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="org.javassist:javassist:3.29.1-GA" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="A class library for editing bytecodes in Java." +HOMEPAGE="https://www.javassist.org" +SRC_URI="https://github.com/jboss-javassist/javassist/archive/rel_${PV//./_}_ga.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0 LGPL-2.1 MPL-1.1" +SLOT="3" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux" + +# Tests run: 431, Failures: 6 +# Cannot solve those test failures. Using "mvn test" they all pass. +# https://bugs.gentoo.org/856364 +RESTRICT="test" + +# Compile dependencies +# POM: pom.xml +# test? junit:junit:[4.13.1,) -> >=dev-java/junit-4.13.2:4 +# test? org.hamcrest:hamcrest-all:1.3 -> !!!artifactId-not-found!!! + +DEPEND=">=virtual/jdk-11:* + test? ( dev-java/hamcrest-library:1.3 )" + +RDEPEND=">=virtual/jre-1.8:*" + +DOCS=( Changes.md README.md ) +HTML_DOCS=( tutorial/{brown.css,tutorial.html,tutorial2.html,tutorial3.html} ) + +S="${WORKDIR}/${PN}-rel_${PV//./_}_ga" + +JAVA_AUTOMATIC_MODULE_NAME="org.javassist" +JAVA_MAIN_CLASS="javassist.CtClass" +JAVA_NEEDS_TOOLS=1 +JAVA_SRC_DIR="src/main" + +JAVA_TEST_GENTOO_CLASSPATH="hamcrest-library-1.3,junit-4" +JAVA_TEST_SRC_DIR="src/test" +JAVA_TEST_RESOURCE_DIRS="src/test/resources" + +# https://github.com/jboss-javassist/javassist/blob/rel_3_29_0_ga/pom.xml#L166-L168 +# <include>javassist/JvstTest.java</include> +JAVA_TEST_RUN_ONLY="javassist.JvstTest" + +src_prepare() { + default + java-pkg_clean javassist.jar + sed -e 's:\.\./\.\./::' -i src/test/javassist/JvstTest{4,Root}.java || die +} + +src_test() { + default + einfo "Testing" + JAVA_PKG_WANT_SOURCE=11 + JAVA_PKG_WANT_TARGET=11 + java-pkg-simple_src_test +} |