diff options
Diffstat (limited to 'dev-java/cglib')
-rw-r--r-- | dev-java/cglib/Manifest | 1 | ||||
-rw-r--r-- | dev-java/cglib/cglib-3.3.0-r3.ebuild | 71 |
2 files changed, 72 insertions, 0 deletions
diff --git a/dev-java/cglib/Manifest b/dev-java/cglib/Manifest index 24d819cca342..1389d05eff26 100644 --- a/dev-java/cglib/Manifest +++ b/dev-java/cglib/Manifest @@ -1,3 +1,4 @@ DIST cglib-RELEASE_3_3_0.tar.gz 151490 BLAKE2B d7ca4cc9ea6dad9f7a827c784ad13f93e8f31c817c5a0182a86b2ba759ccd3dfbec88d5178507599cd08a97a1ef13ba4880cab016b68b92dda3358bfb0a751c0 SHA512 635dcdb10a8fe83887a1dc8cf12844fe61b73a12fb530bf84d6ac53f75b0103820d76518cbc0d93d63dba86d13929f0df4dbae3b4943a402cf9f2af76f44161a EBUILD cglib-3.3.0-r2.ebuild 2048 BLAKE2B 6839bbf7f1b555a264f67465fa60336a07d8d61e4b300873154d0574e42957a0572c0b0b1ea75abda081f5bb6ba7fb92e036545969cfa39e7979e23ddf567a5d SHA512 e6ee4ff8bf63a7d2c20ed7a9d6ccb69ce46c093e2806d890a11cdbb7a0f42edbb93132df3fbd74f506c2dce185c92d5a229b7e66535f5cd8d4f12ac825c77d02 +EBUILD cglib-3.3.0-r3.ebuild 2069 BLAKE2B bb42055835d7ed5f2133bbdfdd88171532aaa2c97b422e561ffb0352a5ad3e74adbbf59fec3eb15f3aea582147801bc0092d0be01b3ec3c69b0bea902282dff0 SHA512 97f85433509a23a2ce765f38deb94f1cdacd91c19b68e15ca2328b20a7bd95b0f73017966a88cbc283b0d11d071ca8c692b2e4c0fefa57f5f31a4f707df03cbd MISC metadata.xml 663 BLAKE2B b64f3da3e4d1dd5ac67867d982f124244f81c03e91b5d7140ee1b16a0fd0250751d41debf9a228150569b7e750929942d011afb0872e3e5098e6106639e0ee3b SHA512 d05d3d71c2511c289c2d1cd4ba638cdc488ee5ea5a8a0da8145929befb41c3efa64f672f12584974239039536c68051f7665730221364ffd20fb8f301672db42 diff --git a/dev-java/cglib/cglib-3.3.0-r3.ebuild b/dev-java/cglib/cglib-3.3.0-r3.ebuild new file mode 100644 index 000000000000..32dcc2c635c1 --- /dev/null +++ b/dev-java/cglib/cglib-3.3.0-r3.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# doc USE flag is not in IUSE as the docs does not compile because of errors +JAVA_PKG_IUSE="examples source test" +MAVEN_ID="cglib:cglib:3.3.0" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +MY_PV=RELEASE_${PV//./_} +MY_P=cglib-${MY_PV} + +DESCRIPTION="cglib is a powerful, high performance and quality Code Generation Library" +HOMEPAGE="https://github.com/cglib/cglib" +SRC_URI="https://github.com/cglib/cglib/archive//${MY_PV}.tar.gz -> ${MY_P}.tar.gz" +S="${WORKDIR}" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64" + +CP_DEPEND=" + >=dev-java/ant-1.10.14-r3:0 + >=dev-java/asm-9.7.1_p20241213:0 +" +DEPEND=" + >=virtual/jdk-1.8:* + ${CP_DEPEND} +" +RDEPEND=" + >=virtual/jre-1.8:* + ${CP_DEPEND} +" + +JAVA_SRC_DIR="${MY_P}/${PN}/src/main/java" +JAVA_RESOURCE_DIRS="${MY_P}/${PN}/src/main/resources" + +JAVA_TEST_GENTOO_CLASSPATH="junit-4" +JAVA_TEST_SRC_DIR="${MY_P}/${PN}/src/test/java" +JAVA_TEST_EXCLUDES=( + "net.sf.cglib.CodeGenTestCase" # not a test class + "net.sf.cglib.TestAll" + "net.sf.cglib.TestGenerator" # not a test class + "net.sf.cglib.proxy.TestEnhancer" # broken tests + "net.sf.cglib.proxy.TestInterceptor" # not a test class + "net.sf.cglib.reflect.TestFastClass" # broken tests +) + +src_test() { + # Caused by: net.sf.cglib.core.CodeGenerationException: + # java.lang.reflect.InaccessibleObjectException-->Unable to make protected final java.lang.Class + # java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) + # throws java.lang.ClassFormatError accessible: \ + # module java.base does not "opens java.lang" to unnamed module @42bb2aee + + local vm_version="$(java-config -g PROVIDES_VERSION)" + if ver_test "${vm_version}" -ge "17" ; then + JAVA_TEST_EXTRA_ARGS+=( --add-opens=java.base/java.lang=ALL-UNNAMED ) + fi + + java-pkg-simple_src_test +} + +src_install() { + java-pkg-simple_src_install + + use examples && java-pkg_doexamples --subdir samples ${MY_P}/cglib-sample/src/main/java +} |