diff options
author | V3n3RiX <venerix@koprulu.sector> | 2021-12-22 14:08:05 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2021-12-22 14:08:05 +0000 |
commit | 93a93e9a3b53c1a73142a305ea1f8136846942ee (patch) | |
tree | b9791a06ab3284e27b568412c59316c66240c682 /dev-java/netty-common | |
parent | 2771f79232c273bc2a57d23bf335dd81ccf6af28 (diff) |
gentoo resync : 22.12.2021
Diffstat (limited to 'dev-java/netty-common')
-rw-r--r-- | dev-java/netty-common/Manifest | 1 | ||||
-rw-r--r-- | dev-java/netty-common/netty-common-4.0.36-r1.ebuild | 69 |
2 files changed, 70 insertions, 0 deletions
diff --git a/dev-java/netty-common/Manifest b/dev-java/netty-common/Manifest index 703766be0084..5793df7f23fd 100644 --- a/dev-java/netty-common/Manifest +++ b/dev-java/netty-common/Manifest @@ -1,3 +1,4 @@ DIST netty-4.0.36.Final.tar.gz 1267617 BLAKE2B 351b1f73b1a3c60fd843767254ae57e74d74cdfe570828b1a2e7aea55a203866ae4e232bad285c3937d8f2dc7689534ffb180fcd345c8cf10bced7048ec58ec3 SHA512 b222205963366d5a0f5539c7029dc47edea8d532fca05d169dfe12dbedf956959ba422a22254b09622db428b517da0fd0e58198d11e66193abdb6050481ccbe6 +EBUILD netty-common-4.0.36-r1.ebuild 1902 BLAKE2B e55144811f5420fb32aac5cb0d8e0995d56567926e1afbd027348db3c7ba58815ef91786d7ec5c9702f2641427357ddee9f07512d44e00245eaba22c5cfad348 SHA512 402056e0a715a97af66ffdbadfa850dc2913c36ae481d474a12eec64232e56aed168744432a03eeafed8207e48e4380a7c6c28096f38265d7ed4b7d2d244647f EBUILD netty-common-4.0.36.ebuild 1604 BLAKE2B 1fd6224706f910a51e93b64603e2866912893b0083bdcb1ac4a4171a5bf2e12b772663120c8aa80e167478f3c40c5d76ba44609f2760e31e33463e6e169e2626 SHA512 ac48ea4c6910645f0db1831f41f49ed7ed304ce26267c3311fede9d70b3694f55438d2cd207a48aade49148d7412afde4eb79529c971ac7a4552da9f4f344742 MISC metadata.xml 323 BLAKE2B de4c9f6ab6a8f2e4243cb7ea8d3e96a08e9a99b579d7996601094ca1bba95c4331fec32c42c4fa42defb8de1f5ed3bf9e52cc3ac3ca9e6a0bec6a55c3edf3d3a SHA512 99c3bb74ad41a72119dbccfaf446e9d13fd1002204188c363531a68e4434fb01a9f2ab0158ad359cea6163f3791759e8fa5b7b2c8cb7268212776d912840b89a diff --git a/dev-java/netty-common/netty-common-4.0.36-r1.ebuild b/dev-java/netty-common/netty-common-4.0.36-r1.ebuild new file mode 100644 index 000000000000..74b75f768b49 --- /dev/null +++ b/dev-java/netty-common/netty-common-4.0.36-r1.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-pkg-simple + +MY_PN="netty" +MY_P="${MY_PN}-${PV}" +DESCRIPTION="Async event-driven framework for high performance network applications" +HOMEPAGE="https://netty.io/" +SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/${MY_P}.Final.tar.gz" +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +CDEPEND="dev-java/commons-logging:0 + dev-java/javassist:3 + dev-java/log4j:0 + dev-java/slf4j-api:0" + +RDEPEND="virtual/jre:1.8 + ${CDEPEND}" + +# It does not build with java 11, https://bugs.gentoo.org/788364 +# src/main/java/io/netty/util/internal/Cleaner0.java:44: error: cannot find symbol +# Cleaner cleaner = (Cleaner) cleanerField.get(direct); +# ^ +# symbol: class Cleaner +# location: class Cleaner0 +DEPEND="virtual/jdk:1.8 + ${CDEPEND} + test? ( + dev-java/asm:4 + dev-java/cglib:3 + dev-java/easymock:3.2 + dev-java/hamcrest-core:1.3 + dev-java/hamcrest-library:1.3 + dev-java/junit:4 + dev-java/mockito:0 + dev-java/objenesis:0 + dev-java/slf4j-simple:0 + )" + +S="${WORKDIR}/${MY_PN}-${MY_P}.Final/${PN/${MY_PN}-}" +JAVA_SRC_DIR="src/main/java" +JAVA_GENTOO_CLASSPATH="commons-logging,javassist-3,log4j,slf4j-api" + +src_prepare() { + default + # Needs Mockito 1.10. + rm -v src/test/java/io/netty/util/concurrent/PromiseCombinerTest.java || die +} + +src_test() { + cd src/test/java || die + + local CP=".:${S}/${PN}.jar:$(java-pkg_getjars --with-dependencies ${JAVA_GENTOO_CLASSPATH},asm-4,cglib-3,easymock-3.2,hamcrest-core-1.3,hamcrest-library-1.3,junit-4,mockito,objenesis,slf4j-simple)" + local TESTS=$(find * -name "*Test.java") + TESTS="${TESTS//.java}" + TESTS="${TESTS//\//.}" + + ejavac -cp "${CP}" -d . $(find * -name "*.java") + ejunit4 -classpath "${CP}" ${TESTS} +} |