mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-java/javassist: add 3.29.1
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/26874 Signed-off-by: Florian Schmaus <flow@gentoo.org>
This commit is contained in:
committed by
Florian Schmaus
parent
28e271a7e7
commit
6a0b6efc62
@@ -1 +1,2 @@
|
||||
DIST javassist-3.29.0.tar.gz 1290728 BLAKE2B 21543fe4d81cc46fa8d6530e8b5b821df64af31404831d15255fe7d362fe40de39451f4e6a264986ce7b8fdb16116c3266a522caf24a2df6a91cc7203354e070 SHA512 9487d4b6e1d7981360f768f2ebe7e8313c103752cc458eb454fffcf6714f62952cc772e920ee663e89cd51cd6a2669993f5595e682ec74313799eff32144541c
|
||||
DIST javassist-3.29.1.tar.gz 1291658 BLAKE2B 4064401ad01c1e1c9aa4a219a81f0fc2e67b1d4cb85cb98b4a996dd2bf789ee1feb790e5bb332205ef2fafe1c7ac0ea82e5e25afff4d9960c54dfe2cb895d0fd SHA512 5788a4a50b803b2a4520340ceae9fd47466d2004cce4138fd861b57fd760109c61c375a28bd907bb9dfeb56bd44734f003ddd1b550571f101a7d1bc04096b5f8
|
||||
|
||||
68
dev-java/javassist/javassist-3.29.1.ebuild
Normal file
68
dev-java/javassist/javassist-3.29.1.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user