* [gentoo-commits] repo/gentoo:master commit in: dev-java/netty/
@ 2022-07-28 7:06 Agostino Sarubbo
0 siblings, 0 replies; 14+ messages in thread
From: Agostino Sarubbo @ 2022-07-28 7:06 UTC (permalink / raw
To: gentoo-commits
commit: eb8f2883cb9f40a04724d76d71a87f46901f2a61
Author: Agostino Sarubbo <ago <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 28 07:05:54 2022 +0000
Commit: Agostino Sarubbo <ago <AT> gentoo <DOT> org>
CommitDate: Thu Jul 28 07:05:54 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb8f2883
dev-java/netty: amd64 stable wrt bug #859361
Signed-off-by: Agostino Sarubbo <ago <AT> gentoo.org>
dev-java/netty/netty-4.1.35-r1.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-java/netty/netty-4.1.35-r1.ebuild b/dev-java/netty/netty-4.1.35-r1.ebuild
index f9ee4e1daad5..fd236b9511b2 100644
--- a/dev-java/netty/netty-4.1.35-r1.ebuild
+++ b/dev-java/netty/netty-4.1.35-r1.ebuild
@@ -18,7 +18,7 @@ SRC_URI="https://github.com/netty/netty/archive/refs/tags/netty-${PV}.Final.tar.
LICENSE="Apache-2.0"
SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ppc64 x86"
+KEYWORDS="amd64 ~arm ~arm64 ppc64 x86"
# We do not build the full range of modules provided by netty but only what
# was available before in netty-common, netty-buffer and netty-transport.
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-java/netty/
@ 2022-08-01 18:08 Arthur Zamarin
0 siblings, 0 replies; 14+ messages in thread
From: Arthur Zamarin @ 2022-08-01 18:08 UTC (permalink / raw
To: gentoo-commits
commit: f518e1fdee384a4ef3d8271d7d81d6e5c71dc54d
Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Sun Jul 31 18:28:01 2022 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Mon Aug 1 18:08:20 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f518e1fd
dev-java/netty: drop 4.1.35
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
dev-java/netty/netty-4.1.35.ebuild | 201 -------------------------------------
1 file changed, 201 deletions(-)
diff --git a/dev-java/netty/netty-4.1.35.ebuild b/dev-java/netty/netty-4.1.35.ebuild
deleted file mode 100644
index a59641a77cb8..000000000000
--- a/dev-java/netty/netty-4.1.35.ebuild
+++ /dev/null
@@ -1,201 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-# Skeleton command:
-# java-ebuilder --generate-ebuild --workdir . --pom common/pom.xml --download-uri https://codeload.github.com/netty/netty/tar.gz/netty-4.1.35.Final --slot 0 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild netty-4.1.35.ebuild
-
-EAPI=8
-
-JAVA_PKG_IUSE="doc source test"
-MAVEN_ID="io.netty:netty:4.1.35.Final"
-JAVA_TESTING_FRAMEWORKS="junit-4"
-
-inherit java-pkg-2 java-pkg-simple
-
-DESCRIPTION="Async event-driven framework for high performance network applications"
-HOMEPAGE="https://netty.io/"
-SRC_URI="https://github.com/netty/netty/archive/refs/tags/netty-${PV}.Final.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="amd64 ~arm arm64 ppc64 x86"
-
-# We do not build the full range of modules provided by netty but only what
-# was available before in netty-common, netty-buffer and netty-transport.
-# Further modules might be added to the array.
-NETTY_MODULES=(
- "common"
- "resolver"
- "buffer"
- "transport"
-)
-
-# Common dependencies
-# POM: common/pom.xml
-# commons-logging:commons-logging:1.2 -> >=dev-java/commons-logging-1.2:0
-# log4j:log4j:1.2.17 -> >=dev-java/log4j-1.2.17:0
-# org.apache.logging.log4j:log4j-api:2.6.2 -> >=dev-java/log4j-api-2.17.1:2
-# org.jctools:jctools-core:2.1.1 -> !!!suitable-mavenVersion-not-found!!!
-# org.slf4j:slf4j-api:1.7.21 -> >=dev-java/slf4j-api-1.7.32:0
-
-# "Failed to load class org.slf4j.impl.StaticLoggerBinder"
-# Using slf4j-simple instead of slf4j-api solves it.
-# https://www.slf4j.org/codes.html
-CP_DEPEND="
- dev-java/commons-logging:0
- dev-java/jctools-core:0
- dev-java/log4j-12-api:2
- dev-java/slf4j-simple:0
-"
-
-# Compile dependencies
-# POM: common/pom.xml
-# test? ch.qos.logback:logback-classic:1.1.7 -> !!!groupId-not-found!!!
-# test? io.netty:netty-build:25 -> !!!artifactId-not-found!!!
-# test? io.netty:netty-dev-tools:4.1.35.Final -> !!!artifactId-not-found!!!
-# test? junit:junit:4.12 -> >=dev-java/junit-4.13.2:4
-# test? org.apache.logging.log4j:log4j-core:2.6.2 -> >=dev-java/log4j-core-2.17.1:2
-# test? org.hamcrest:hamcrest-library:1.3 -> >=dev-java/hamcrest-library-1.3:1.3
-# test? org.javassist:javassist:3.20.0-GA -> !!!groupId-not-found!!!
-# test? org.mockito:mockito-core:2.18.3 -> >=dev-java/mockito-4.4.0:4
-
-DEPEND="
- >=virtual/jdk-1.8:*
- ${CP_DEPEND}
- test? (
- dev-java/javassist:3
- dev-java/hamcrest-library:1.3
- dev-java/logback-classic:0
- dev-java/log4j-core:2
- dev-java/mockito:4
- )
-"
-
-RDEPEND="
- >=virtual/jre-1.8:*
- ${CP_DEPEND}
-"
-
-S="${WORKDIR}/netty-netty-${PV}.Final"
-
-JAVA_TEST_GENTOO_CLASSPATH="hamcrest-library-1.3,javassist-3,junit-4,logback-classic,log4j-core-2,mockito-4"
-
-# There were 12 failures:
-# 1) testCompositeDirectBuffer(io.netty.buffer.ByteBufAllocatorTest)
-# java.lang.InstantiationException
-# at java.base/jdk.internal.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:48)
-#
-# FAILURES!!!
-# Tests run: 10015, Failures: 12
-
-# There was 1 failure:
-# 1) initializationError(io.netty.channel.BaseChannelTest)
-# org.junit.runners.model.InvalidTestClassError: Invalid test class 'io.netty.channel.BaseChannelTest':
-# 1. The class io.netty.channel.BaseChannelTest is not public.
-# 2. Test class should have exactly one public constructor
-# 3. No runnable methods
-#
-# FAILURES!!!
-# Tests run: 10277, Failures: 1
-
-JAVA_TEST_EXCLUDES=(
- "io.netty.buffer.ByteBufAllocatorTest"
- "io.netty.channel.BaseChannelTest"
-)
-
-src_prepare() {
- default
-
- sed \
- -e 's:verifyZeroInteractions:verifyNoInteractions:' \
- -i buffer/src/test/java/io/netty/buffer/UnpooledTest.java \
- -i transport/src/test/java/io/netty/channel/CompleteChannelFutureTest.java || die
-
- # transport/src/test/java/io/netty/channel/PendingWriteQueueTest.java:262: error: reference to assertEquals is ambiguous
- # assertEquals(1L, channel.readOutbound());
- # ^
- # both method assertEquals(long,long) in Assert and method assertEquals(Object,Object) in Assert match
- rm transport/src/test/java/io/netty/channel/PendingWriteQueueTest.java || die
-}
-
-src_compile() {
- local module
- # We loop over the modules list and compile the jar files.
- for module in "${NETTY_MODULES[@]}"; do
- JAVA_SRC_DIR=()
- JAVA_RESOURCE_DIRS=()
- JAVA_MAIN_CLASS=""
-
- JAVA_SRC_DIR=(
- "$module/src/main/java"
- "$module/src/module"
- )
-
- # Not all of the modules have resources.
- if [[ -d $module/src/main/resources ]]; then \
- JAVA_RESOURCE_DIRS="$module/src/main/resources"
- fi
-
- JAVA_JAR_FILENAME="$module.jar"
-
- einfo "Compiling netty-${module}"
- java-pkg-simple_src_compile
-
- JAVA_GENTOO_CLASSPATH_EXTRA+=":$module.jar"
-
- rm -r target || die
-
- done
-
- if use doc; then
- JAVA_SRC_DIR=()
- JAVA_JAR_FILENAME="ignoreme.jar"
-
- for module in "${NETTY_MODULES[@]}" ; do
- # Some modules don't have source code
- if [[ -d $module/src/main/java/io ]]; then \
- JAVA_SRC_DIR+=( "$module/src/main/java" )
- fi
-
- done
-
- java-pkg-simple_src_compile
- fi
-}
-
-src_test() {
- local module
- for module in "${NETTY_MODULES[@]}"; do
- JAVA_TEST_SRC_DIR="$module/src/test/java"
- JAVA_TEST_RESOURCE_DIRS=()
-
- # Not all of the modules have test resources.
- if [[ -d $module/src/test/resources ]]; then \
- JAVA_TEST_RESOURCE_DIRS="$module/src/test/resources"
- fi
-
- einfo "Testing netty-${module}"
- java-pkg-simple_src_test
- done
-}
-
-src_install() {
- einstalldocs # https://bugs.gentoo.org/789582
-
- local module
- for module in "${NETTY_MODULES[@]}"; do
- JAVA_MAIN_CLASS=$( sed -n 's:.*<mainClass>\(.*\)</mainClass>:\1:p' $module/pom.xml )
- java-pkg_dojar $module.jar
-
- # Some modules don't have source code
- if [[ -d $module/src/main/java/org ]]; then
- if use source; then
- java-pkg_dosrc "$module/src/main/java/*"
- fi
- fi
- done
-
- if use doc; then
- java-pkg_dojavadoc target/api
- fi
-}
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-java/netty/
@ 2022-07-31 18:20 Arthur Zamarin
0 siblings, 0 replies; 14+ messages in thread
From: Arthur Zamarin @ 2022-07-31 18:20 UTC (permalink / raw
To: gentoo-commits
commit: d3a33b1008543f7964d2f0592d540c150c660f77
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 31 18:20:16 2022 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sun Jul 31 18:20:26 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3a33b10
dev-java/netty: Stabilize 4.1.35-r1 arm64, #859361
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
dev-java/netty/netty-4.1.35-r1.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-java/netty/netty-4.1.35-r1.ebuild b/dev-java/netty/netty-4.1.35-r1.ebuild
index fd236b9511b2..693bf87c6b51 100644
--- a/dev-java/netty/netty-4.1.35-r1.ebuild
+++ b/dev-java/netty/netty-4.1.35-r1.ebuild
@@ -18,7 +18,7 @@ SRC_URI="https://github.com/netty/netty/archive/refs/tags/netty-${PV}.Final.tar.
LICENSE="Apache-2.0"
SLOT="0"
-KEYWORDS="amd64 ~arm ~arm64 ppc64 x86"
+KEYWORDS="amd64 ~arm arm64 ppc64 x86"
# We do not build the full range of modules provided by netty but only what
# was available before in netty-common, netty-buffer and netty-transport.
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-java/netty/
@ 2022-07-25 4:19 Sam James
0 siblings, 0 replies; 14+ messages in thread
From: Sam James @ 2022-07-25 4:19 UTC (permalink / raw
To: gentoo-commits
commit: c1276fafbf7c5ef2ac500c1e93507704a2d508aa
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 25 04:18:28 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jul 25 04:18:28 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1276faf
dev-java/netty: Stabilize 4.1.35-r1 ppc64, #859361
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-java/netty/netty-4.1.35-r1.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-java/netty/netty-4.1.35-r1.ebuild b/dev-java/netty/netty-4.1.35-r1.ebuild
index 328ab221e167..f9ee4e1daad5 100644
--- a/dev-java/netty/netty-4.1.35-r1.ebuild
+++ b/dev-java/netty/netty-4.1.35-r1.ebuild
@@ -18,7 +18,7 @@ SRC_URI="https://github.com/netty/netty/archive/refs/tags/netty-${PV}.Final.tar.
LICENSE="Apache-2.0"
SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 x86"
+KEYWORDS="~amd64 ~arm ~arm64 ppc64 x86"
# We do not build the full range of modules provided by netty but only what
# was available before in netty-common, netty-buffer and netty-transport.
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-java/netty/
@ 2022-06-20 7:41 Florian Schmaus
0 siblings, 0 replies; 14+ messages in thread
From: Florian Schmaus @ 2022-06-20 7:41 UTC (permalink / raw
To: gentoo-commits
commit: 6f816aebbcc9d4bcdebf2bfa6fd4178ddc1498b8
Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Sat Jun 18 12:16:47 2022 +0000
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Mon Jun 20 06:49:26 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f816aeb
dev-java/netty: switch to slot 3 of jctools-core
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/25957
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
dev-java/netty/netty-4.1.35-r1.ebuild | 201 ++++++++++++++++++++++++++++++++++
1 file changed, 201 insertions(+)
diff --git a/dev-java/netty/netty-4.1.35-r1.ebuild b/dev-java/netty/netty-4.1.35-r1.ebuild
new file mode 100644
index 000000000000..fdac02193f25
--- /dev/null
+++ b/dev-java/netty/netty-4.1.35-r1.ebuild
@@ -0,0 +1,201 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Skeleton command:
+# java-ebuilder --generate-ebuild --workdir . --pom common/pom.xml --download-uri https://codeload.github.com/netty/netty/tar.gz/netty-4.1.35.Final --slot 0 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild netty-4.1.35.ebuild
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source test"
+MAVEN_ID="io.netty:netty:4.1.35.Final"
+JAVA_TESTING_FRAMEWORKS="junit-4"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="Async event-driven framework for high performance network applications"
+HOMEPAGE="https://netty.io/"
+SRC_URI="https://github.com/netty/netty/archive/refs/tags/netty-${PV}.Final.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+
+# We do not build the full range of modules provided by netty but only what
+# was available before in netty-common, netty-buffer and netty-transport.
+# Further modules might be added to the array.
+NETTY_MODULES=(
+ "common"
+ "resolver"
+ "buffer"
+ "transport"
+)
+
+# Common dependencies
+# POM: common/pom.xml
+# commons-logging:commons-logging:1.2 -> >=dev-java/commons-logging-1.2:0
+# log4j:log4j:1.2.17 -> >=dev-java/log4j-1.2.17:0
+# org.apache.logging.log4j:log4j-api:2.6.2 -> >=dev-java/log4j-api-2.17.1:2
+# org.jctools:jctools-core:2.1.1 -> !!!suitable-mavenVersion-not-found!!!
+# org.slf4j:slf4j-api:1.7.21 -> >=dev-java/slf4j-api-1.7.32:0
+
+# "Failed to load class org.slf4j.impl.StaticLoggerBinder"
+# Using slf4j-simple instead of slf4j-api solves it.
+# https://www.slf4j.org/codes.html
+CP_DEPEND="
+ dev-java/commons-logging:0
+ dev-java/jctools-core:3
+ dev-java/log4j-12-api:2
+ dev-java/slf4j-simple:0
+"
+
+# Compile dependencies
+# POM: common/pom.xml
+# test? ch.qos.logback:logback-classic:1.1.7 -> !!!groupId-not-found!!!
+# test? io.netty:netty-build:25 -> !!!artifactId-not-found!!!
+# test? io.netty:netty-dev-tools:4.1.35.Final -> !!!artifactId-not-found!!!
+# test? junit:junit:4.12 -> >=dev-java/junit-4.13.2:4
+# test? org.apache.logging.log4j:log4j-core:2.6.2 -> >=dev-java/log4j-core-2.17.1:2
+# test? org.hamcrest:hamcrest-library:1.3 -> >=dev-java/hamcrest-library-1.3:1.3
+# test? org.javassist:javassist:3.20.0-GA -> !!!groupId-not-found!!!
+# test? org.mockito:mockito-core:2.18.3 -> >=dev-java/mockito-4.4.0:4
+
+DEPEND="
+ >=virtual/jdk-1.8:*
+ ${CP_DEPEND}
+ test? (
+ dev-java/javassist:3
+ dev-java/hamcrest-library:1.3
+ dev-java/logback-classic:0
+ dev-java/log4j-core:2
+ dev-java/mockito:4
+ )
+"
+
+RDEPEND="
+ >=virtual/jre-1.8:*
+ ${CP_DEPEND}
+"
+
+S="${WORKDIR}/netty-netty-${PV}.Final"
+
+JAVA_TEST_GENTOO_CLASSPATH="hamcrest-library-1.3,javassist-3,junit-4,logback-classic,log4j-core-2,mockito-4"
+
+# There were 12 failures:
+# 1) testCompositeDirectBuffer(io.netty.buffer.ByteBufAllocatorTest)
+# java.lang.InstantiationException
+# at java.base/jdk.internal.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:48)
+#
+# FAILURES!!!
+# Tests run: 10015, Failures: 12
+
+# There was 1 failure:
+# 1) initializationError(io.netty.channel.BaseChannelTest)
+# org.junit.runners.model.InvalidTestClassError: Invalid test class 'io.netty.channel.BaseChannelTest':
+# 1. The class io.netty.channel.BaseChannelTest is not public.
+# 2. Test class should have exactly one public constructor
+# 3. No runnable methods
+#
+# FAILURES!!!
+# Tests run: 10277, Failures: 1
+
+JAVA_TEST_EXCLUDES=(
+ "io.netty.buffer.ByteBufAllocatorTest"
+ "io.netty.channel.BaseChannelTest"
+)
+
+src_prepare() {
+ default
+
+ sed \
+ -e 's:verifyZeroInteractions:verifyNoInteractions:' \
+ -i buffer/src/test/java/io/netty/buffer/UnpooledTest.java \
+ -i transport/src/test/java/io/netty/channel/CompleteChannelFutureTest.java || die
+
+ # transport/src/test/java/io/netty/channel/PendingWriteQueueTest.java:262: error: reference to assertEquals is ambiguous
+ # assertEquals(1L, channel.readOutbound());
+ # ^
+ # both method assertEquals(long,long) in Assert and method assertEquals(Object,Object) in Assert match
+ rm transport/src/test/java/io/netty/channel/PendingWriteQueueTest.java || die
+}
+
+src_compile() {
+ local module
+ # We loop over the modules list and compile the jar files.
+ for module in "${NETTY_MODULES[@]}"; do
+ JAVA_SRC_DIR=()
+ JAVA_RESOURCE_DIRS=()
+ JAVA_MAIN_CLASS=""
+
+ JAVA_SRC_DIR=(
+ "$module/src/main/java"
+ "$module/src/module"
+ )
+
+ # Not all of the modules have resources.
+ if [[ -d $module/src/main/resources ]]; then \
+ JAVA_RESOURCE_DIRS="$module/src/main/resources"
+ fi
+
+ JAVA_JAR_FILENAME="$module.jar"
+
+ einfo "Compiling netty-${module}"
+ java-pkg-simple_src_compile
+
+ JAVA_GENTOO_CLASSPATH_EXTRA+=":$module.jar"
+
+ rm -r target || die
+
+ done
+
+ if use doc; then
+ JAVA_SRC_DIR=()
+ JAVA_JAR_FILENAME="ignoreme.jar"
+
+ for module in "${NETTY_MODULES[@]}" ; do
+ # Some modules don't have source code
+ if [[ -d $module/src/main/java/io ]]; then \
+ JAVA_SRC_DIR+=( "$module/src/main/java" )
+ fi
+
+ done
+
+ java-pkg-simple_src_compile
+ fi
+}
+
+src_test() {
+ local module
+ for module in "${NETTY_MODULES[@]}"; do
+ JAVA_TEST_SRC_DIR="$module/src/test/java"
+ JAVA_TEST_RESOURCE_DIRS=()
+
+ # Not all of the modules have test resources.
+ if [[ -d $module/src/test/resources ]]; then \
+ JAVA_TEST_RESOURCE_DIRS="$module/src/test/resources"
+ fi
+
+ einfo "Testing netty-${module}"
+ java-pkg-simple_src_test
+ done
+}
+
+src_install() {
+ einstalldocs # https://bugs.gentoo.org/789582
+
+ local module
+ for module in "${NETTY_MODULES[@]}"; do
+ JAVA_MAIN_CLASS=$( sed -n 's:.*<mainClass>\(.*\)</mainClass>:\1:p' $module/pom.xml )
+ java-pkg_dojar $module.jar
+
+ # Some modules don't have source code
+ if [[ -d $module/src/main/java/org ]]; then
+ if use source; then
+ java-pkg_dosrc "$module/src/main/java/*"
+ fi
+ fi
+ done
+
+ if use doc; then
+ java-pkg_dojavadoc target/api
+ fi
+}
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-java/netty/
@ 2022-06-17 12:45 Arthur Zamarin
0 siblings, 0 replies; 14+ messages in thread
From: Arthur Zamarin @ 2022-06-17 12:45 UTC (permalink / raw
To: gentoo-commits
commit: 7d4207f6576707e7f5809a0674a670c5e121fd9e
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 17 12:45:07 2022 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Jun 17 12:45:07 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d4207f6
dev-java/netty: Stabilize 4.1.35 ppc64, #837749
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
dev-java/netty/netty-4.1.35.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-java/netty/netty-4.1.35.ebuild b/dev-java/netty/netty-4.1.35.ebuild
index fb472e6649d6..a59641a77cb8 100644
--- a/dev-java/netty/netty-4.1.35.ebuild
+++ b/dev-java/netty/netty-4.1.35.ebuild
@@ -18,7 +18,7 @@ SRC_URI="https://github.com/netty/netty/archive/refs/tags/netty-${PV}.Final.tar.
LICENSE="Apache-2.0"
SLOT="0"
-KEYWORDS="amd64 ~arm arm64 ~ppc64 x86"
+KEYWORDS="amd64 ~arm arm64 ppc64 x86"
# We do not build the full range of modules provided by netty but only what
# was available before in netty-common, netty-buffer and netty-transport.
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-java/netty/
@ 2022-06-16 15:15 Sam James
0 siblings, 0 replies; 14+ messages in thread
From: Sam James @ 2022-06-16 15:15 UTC (permalink / raw
To: gentoo-commits
commit: ca2f607428b32d437bb9a60e3144f897e5f538e3
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 16 15:14:36 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jun 16 15:14:36 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca2f6074
dev-java/netty: Stabilize 4.1.35 x86, #837749
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-java/netty/netty-4.1.35.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-java/netty/netty-4.1.35.ebuild b/dev-java/netty/netty-4.1.35.ebuild
index 51abac337783..68a2f3ee5111 100644
--- a/dev-java/netty/netty-4.1.35.ebuild
+++ b/dev-java/netty/netty-4.1.35.ebuild
@@ -18,7 +18,7 @@ SRC_URI="https://github.com/netty/netty/archive/refs/tags/netty-${PV}.Final.tar.
LICENSE="Apache-2.0"
SLOT="0"
-KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~x86"
+KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86"
# We do not build the full range of modules provided by netty but only what
# was available before in netty-common, netty-buffer and netty-transport.
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-java/netty/
@ 2022-06-16 15:15 Sam James
0 siblings, 0 replies; 14+ messages in thread
From: Sam James @ 2022-06-16 15:15 UTC (permalink / raw
To: gentoo-commits
commit: a42b4eb2982e9934a8b35a079b88f7f4a83bd2fe
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 16 15:13:26 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jun 16 15:13:26 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a42b4eb2
dev-java/netty: Stabilize 4.1.35 amd64, #837749
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-java/netty/netty-4.1.35.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-java/netty/netty-4.1.35.ebuild b/dev-java/netty/netty-4.1.35.ebuild
index 16ffa4df654d..51abac337783 100644
--- a/dev-java/netty/netty-4.1.35.ebuild
+++ b/dev-java/netty/netty-4.1.35.ebuild
@@ -18,7 +18,7 @@ SRC_URI="https://github.com/netty/netty/archive/refs/tags/netty-${PV}.Final.tar.
LICENSE="Apache-2.0"
SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~x86"
# We do not build the full range of modules provided by netty but only what
# was available before in netty-common, netty-buffer and netty-transport.
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-java/netty/
@ 2022-04-22 19:10 Arthur Zamarin
0 siblings, 0 replies; 14+ messages in thread
From: Arthur Zamarin @ 2022-04-22 19:10 UTC (permalink / raw
To: gentoo-commits
commit: c2267b34fb89b551829b0e0b7614601d80e2b239
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 22 19:09:43 2022 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Apr 22 19:09:43 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2267b34
dev-java/netty: Keyword 4.1.35 arm, #838442
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
dev-java/netty/netty-4.1.35.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-java/netty/netty-4.1.35.ebuild b/dev-java/netty/netty-4.1.35.ebuild
index 467f2b8746e0..ed641014de39 100644
--- a/dev-java/netty/netty-4.1.35.ebuild
+++ b/dev-java/netty/netty-4.1.35.ebuild
@@ -18,7 +18,7 @@ SRC_URI="https://github.com/netty/netty/archive/refs/tags/netty-${PV}.Final.tar.
LICENSE="Apache-2.0"
SLOT="0"
-KEYWORDS="~amd64 ~arm64 ~ppc64"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64"
# We do not build the full range of modules provided by netty but only what
# was available before in netty-common, netty-buffer and netty-transport.
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-java/netty/
@ 2022-04-22 19:10 Arthur Zamarin
0 siblings, 0 replies; 14+ messages in thread
From: Arthur Zamarin @ 2022-04-22 19:10 UTC (permalink / raw
To: gentoo-commits
commit: 4086fc42f7a10bd8639d96b45ab4af3e0a5fa5b4
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 22 19:09:48 2022 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Apr 22 19:09:48 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4086fc42
dev-java/netty: Keyword 4.1.35 x86, #838442
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
dev-java/netty/netty-4.1.35.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-java/netty/netty-4.1.35.ebuild b/dev-java/netty/netty-4.1.35.ebuild
index ed641014de39..16ffa4df654d 100644
--- a/dev-java/netty/netty-4.1.35.ebuild
+++ b/dev-java/netty/netty-4.1.35.ebuild
@@ -18,7 +18,7 @@ SRC_URI="https://github.com/netty/netty/archive/refs/tags/netty-${PV}.Final.tar.
LICENSE="Apache-2.0"
SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
# We do not build the full range of modules provided by netty but only what
# was available before in netty-common, netty-buffer and netty-transport.
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-java/netty/
@ 2022-04-15 17:41 Arthur Zamarin
0 siblings, 0 replies; 14+ messages in thread
From: Arthur Zamarin @ 2022-04-15 17:41 UTC (permalink / raw
To: gentoo-commits
commit: ec3b88525e84d69ca92fef543600de568b0b731c
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 15 17:40:51 2022 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Apr 15 17:40:51 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec3b8852
dev-java/netty: Keyword 4.1.35 ppc64, #838442
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
dev-java/netty/netty-4.1.35.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-java/netty/netty-4.1.35.ebuild b/dev-java/netty/netty-4.1.35.ebuild
index 7b2ccbb0ab8d..467f2b8746e0 100644
--- a/dev-java/netty/netty-4.1.35.ebuild
+++ b/dev-java/netty/netty-4.1.35.ebuild
@@ -18,7 +18,7 @@ SRC_URI="https://github.com/netty/netty/archive/refs/tags/netty-${PV}.Final.tar.
LICENSE="Apache-2.0"
SLOT="0"
-KEYWORDS="~amd64 ~arm64"
+KEYWORDS="~amd64 ~arm64 ~ppc64"
# We do not build the full range of modules provided by netty but only what
# was available before in netty-common, netty-buffer and netty-transport.
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-java/netty/
@ 2022-04-15 17:19 Arthur Zamarin
0 siblings, 0 replies; 14+ messages in thread
From: Arthur Zamarin @ 2022-04-15 17:19 UTC (permalink / raw
To: gentoo-commits
commit: cccb57f5006287b637d85f1df461dead5c5f1fa7
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 15 17:19:34 2022 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Apr 15 17:19:46 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cccb57f5
dev-java/netty: Keyword 4.1.35 arm64, #838442
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
dev-java/netty/netty-4.1.35.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-java/netty/netty-4.1.35.ebuild b/dev-java/netty/netty-4.1.35.ebuild
index 93c2ad37726c..7b2ccbb0ab8d 100644
--- a/dev-java/netty/netty-4.1.35.ebuild
+++ b/dev-java/netty/netty-4.1.35.ebuild
@@ -18,7 +18,7 @@ SRC_URI="https://github.com/netty/netty/archive/refs/tags/netty-${PV}.Final.tar.
LICENSE="Apache-2.0"
SLOT="0"
-KEYWORDS="~amd64"
+KEYWORDS="~amd64 ~arm64"
# We do not build the full range of modules provided by netty but only what
# was available before in netty-common, netty-buffer and netty-transport.
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-java/netty/
@ 2022-04-15 9:36 Florian Schmaus
0 siblings, 0 replies; 14+ messages in thread
From: Florian Schmaus @ 2022-04-15 9:36 UTC (permalink / raw
To: gentoo-commits
commit: d606af42d8cca142f9b508741f7b940d9a0f7621
Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Sun Apr 10 17:16:39 2022 +0000
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Fri Apr 15 09:35:05 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d606af42
dev-java/netty: initial import
Replacement for netty-{common,buffer,transport}
Bug: https://bugs.gentoo.org/827221
Bug: https://bugs.gentoo.org/827919
Bug: https://bugs.gentoo.org/831191
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/24963
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
dev-java/netty/Manifest | 1 +
dev-java/netty/metadata.xml | 14 +++
dev-java/netty/netty-4.1.35.ebuild | 206 +++++++++++++++++++++++++++++++++++++
3 files changed, 221 insertions(+)
diff --git a/dev-java/netty/Manifest b/dev-java/netty/Manifest
new file mode 100644
index 000000000000..8338d35bb737
--- /dev/null
+++ b/dev-java/netty/Manifest
@@ -0,0 +1 @@
+DIST netty-4.1.35.Final.tar.gz 2447958 BLAKE2B 133adc2b37d3e681d11ac2e0187c0f79bb7aeeb6c622a1bf6e66a35bb78cd5730eeeffccfb960948f2e1df5dfadaa44f62b6f354c03065493ae43e1399a5ba2e SHA512 c3ba4e34ae9d309118ff3517467ffc218136789b06287d747b57df08be84779dacf5e29b19157afecd759a3516bc346e434295291b3dd546f80c4ae7c3f0a3ca
diff --git a/dev-java/netty/metadata.xml b/dev-java/netty/metadata.xml
new file mode 100644
index 000000000000..aead41605905
--- /dev/null
+++ b/dev-java/netty/metadata.xml
@@ -0,0 +1,14 @@
+<?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>
+ <name>Java</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">netty/netty</remote-id>
+ </upstream>
+ <longdescription>
+ Netty is an asynchronous event-driven network application framework for rapid development of maintainable high performance protocol servers and clients.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-java/netty/netty-4.1.35.ebuild b/dev-java/netty/netty-4.1.35.ebuild
new file mode 100644
index 000000000000..fdc4a3046307
--- /dev/null
+++ b/dev-java/netty/netty-4.1.35.ebuild
@@ -0,0 +1,206 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Skeleton command:
+# java-ebuilder --generate-ebuild --workdir . --pom common/pom.xml --download-uri https://codeload.github.com/netty/netty/tar.gz/netty-4.1.35.Final --slot 0 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild netty-4.1.35.ebuild
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source test"
+MAVEN_ID="io.netty:netty:4.1.35.Final"
+JAVA_TESTING_FRAMEWORKS="junit-4"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="Async event-driven framework for high performance network applications"
+HOMEPAGE="https://netty.io/"
+SRC_URI="https://codeload.github.com/netty/netty/tar.gz/netty-${PV}.Final -> ${P}.Final.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+# We do not build the full range of modules provided by netty but only what
+# was available before in netty-common, netty-buffer and netty-transport.
+# Further modules might be added to the array.
+modules=(
+ "common"
+ "resolver"
+ "buffer"
+ "transport"
+)
+
+# Common dependencies
+# POM: common/pom.xml
+# commons-logging:commons-logging:1.2 -> >=dev-java/commons-logging-1.2:0
+# log4j:log4j:1.2.17 -> >=dev-java/log4j-1.2.17:0
+# org.apache.logging.log4j:log4j-api:2.6.2 -> >=dev-java/log4j-api-2.17.1:2
+# org.jctools:jctools-core:2.1.1 -> !!!suitable-mavenVersion-not-found!!!
+# org.slf4j:slf4j-api:1.7.21 -> >=dev-java/slf4j-api-1.7.32:0
+
+# "Failed to load class org.slf4j.impl.StaticLoggerBinder"
+# Using slf4j-simple instead of slf4j-api solves it.
+# https://www.slf4j.org/codes.html
+CP_DEPEND="
+ dev-java/commons-logging:0
+ dev-java/jctools-core:0
+ dev-java/log4j-12-api:2
+ dev-java/slf4j-simple:0
+"
+
+# Compile dependencies
+# POM: common/pom.xml
+# test? ch.qos.logback:logback-classic:1.1.7 -> !!!groupId-not-found!!!
+# test? io.netty:netty-build:25 -> !!!artifactId-not-found!!!
+# test? io.netty:netty-dev-tools:4.1.35.Final -> !!!artifactId-not-found!!!
+# test? junit:junit:4.12 -> >=dev-java/junit-4.13.2:4
+# test? org.apache.logging.log4j:log4j-core:2.6.2 -> >=dev-java/log4j-core-2.17.1:2
+# test? org.hamcrest:hamcrest-library:1.3 -> >=dev-java/hamcrest-library-1.3:1.3
+# test? org.javassist:javassist:3.20.0-GA -> !!!groupId-not-found!!!
+# test? org.mockito:mockito-core:2.18.3 -> >=dev-java/mockito-4.4.0:4
+
+DEPEND="
+ >=virtual/jdk-1.8:*
+ ${CP_DEPEND}
+ test? (
+ dev-java/javassist:3
+ dev-java/hamcrest-library:1.3
+ dev-java/logback-classic:0
+ dev-java/log4j-core:2
+ dev-java/mockito:4
+ )
+"
+
+RDEPEND="
+ >=virtual/jre-1.8:*
+ ${CP_DEPEND}"
+
+S="${WORKDIR}/netty-netty-${PV}.Final"
+
+JAVA_TEST_GENTOO_CLASSPATH="hamcrest-library-1.3,javassist-3,junit-4,logback-classic,log4j-core-2,mockito-4"
+
+# There were 12 failures:
+# 1) testCompositeDirectBuffer(io.netty.buffer.ByteBufAllocatorTest)
+# java.lang.InstantiationException
+# at java.base/jdk.internal.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:48)
+#
+# FAILURES!!!
+# Tests run: 10015, Failures: 12
+
+# There was 1 failure:
+# 1) initializationError(io.netty.channel.BaseChannelTest)
+# org.junit.runners.model.InvalidTestClassError: Invalid test class 'io.netty.channel.BaseChannelTest':
+# 1. The class io.netty.channel.BaseChannelTest is not public.
+# 2. Test class should have exactly one public constructor
+# 3. No runnable methods
+#
+# FAILURES!!!
+# Tests run: 10277, Failures: 1
+
+JAVA_TEST_EXCLUDES=(
+ "io.netty.buffer.ByteBufAllocatorTest"
+ "io.netty.channel.BaseChannelTest"
+)
+
+src_prepare() {
+ default
+
+ sed \
+ -e 's:verifyZeroInteractions:verifyNoInteractions:' \
+ -i buffer/src/test/java/io/netty/buffer/UnpooledTest.java \
+ -i transport/src/test/java/io/netty/channel/CompleteChannelFutureTest.java || die
+
+ # transport/src/test/java/io/netty/channel/PendingWriteQueueTest.java:262: error: reference to assertEquals is ambiguous
+ # assertEquals(1L, channel.readOutbound());
+ # ^
+ # both method assertEquals(long,long) in Assert and method assertEquals(Object,Object) in Assert match
+ rm transport/src/test/java/io/netty/channel/PendingWriteQueueTest.java || die
+}
+
+src_compile() {
+ # We loop over the modules list and compile the jar files.
+ for module in "${modules[@]}" ; do \
+
+ JAVA_SRC_DIR=""
+ JAVA_RESOURCE_DIRS=""
+ JAVA_MAIN_CLASS=""
+
+ echo "compiling $module"
+
+ JAVA_SRC_DIR=(
+ "$module/src/main/java"
+ "$module/src/module"
+ )
+
+ # Not all of the modules have resources.
+ if [[ -d $module/src/main/resources ]]; then \
+ JAVA_RESOURCE_DIRS="$module/src/main/resources"
+ fi
+
+ JAVA_JAR_FILENAME="$module.jar"
+
+ java-pkg-simple_src_compile
+
+ JAVA_GENTOO_CLASSPATH_EXTRA+=":$module.jar"
+
+ rm -r target || die
+
+ done
+
+ if use doc; then
+
+ JAVA_SRC_DIR=""
+ JAVA_JAR_FILENAME="ignoreme.jar"
+
+ for module in "${modules[@]}" ; do \
+
+ # Some modules don't have source code
+ if [[ -d $module/src/main/java/io ]]; then \
+ JAVA_SRC_DIR+=( "$module/src/main/java" )
+ fi
+
+ done
+
+ java-pkg-simple_src_compile
+ fi
+}
+
+src_test() {
+ for module in "${modules[@]}" ; do \
+
+ JAVA_TEST_SRC_DIR="$module/src/test/java"
+ JAVA_TEST_RESOURCE_DIRS=""
+
+ # Not all of the modules have test resources.
+ if [[ -d $module/src/test/resources ]]; then \
+ JAVA_TEST_RESOURCE_DIRS="$module/src/test/resources"
+ fi
+
+ java-pkg-simple_src_test
+
+ done
+}
+
+src_install() {
+ einstalldocs # https://bugs.gentoo.org/789582
+
+ for module in "${modules[@]}" ; do \
+
+ JAVA_MAIN_CLASS=$( sed -n 's:.*<mainClass>\(.*\)</mainClass>:\1:p' $module/pom.xml )
+ java-pkg_dojar $module.jar
+
+ # Some modules don't have source code
+ if [[ -d $module/src/main/java/org ]]; then \
+
+ if use source; then
+ java-pkg_dosrc "$module/src/main/java/*"
+ fi
+
+ fi
+
+ done
+
+ if use doc; then
+ java-pkg_dojavadoc target/api
+ fi
+}
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-java/netty/
@ 2022-04-15 9:36 Florian Schmaus
0 siblings, 0 replies; 14+ messages in thread
From: Florian Schmaus @ 2022-04-15 9:36 UTC (permalink / raw
To: gentoo-commits
commit: 6c3a10a7a1cee9440e33cfbf7223cddb75584b81
Author: Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 15 08:43:06 2022 +0000
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Fri Apr 15 09:35:05 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c3a10a7
dev-java/netty: style changes and minor fixes
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
dev-java/netty/netty-4.1.35.ebuild | 41 +++++++++++++++++---------------------
1 file changed, 18 insertions(+), 23 deletions(-)
diff --git a/dev-java/netty/netty-4.1.35.ebuild b/dev-java/netty/netty-4.1.35.ebuild
index fdc4a3046307..93c2ad37726c 100644
--- a/dev-java/netty/netty-4.1.35.ebuild
+++ b/dev-java/netty/netty-4.1.35.ebuild
@@ -14,7 +14,7 @@ inherit java-pkg-2 java-pkg-simple
DESCRIPTION="Async event-driven framework for high performance network applications"
HOMEPAGE="https://netty.io/"
-SRC_URI="https://codeload.github.com/netty/netty/tar.gz/netty-${PV}.Final -> ${P}.Final.tar.gz"
+SRC_URI="https://github.com/netty/netty/archive/refs/tags/netty-${PV}.Final.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
@@ -23,7 +23,7 @@ KEYWORDS="~amd64"
# We do not build the full range of modules provided by netty but only what
# was available before in netty-common, netty-buffer and netty-transport.
# Further modules might be added to the array.
-modules=(
+NETTY_MODULES=(
"common"
"resolver"
"buffer"
@@ -73,7 +73,8 @@ DEPEND="
RDEPEND="
>=virtual/jre-1.8:*
- ${CP_DEPEND}"
+ ${CP_DEPEND}
+"
S="${WORKDIR}/netty-netty-${PV}.Final"
@@ -118,15 +119,13 @@ src_prepare() {
}
src_compile() {
+ local module
# We loop over the modules list and compile the jar files.
- for module in "${modules[@]}" ; do \
-
- JAVA_SRC_DIR=""
- JAVA_RESOURCE_DIRS=""
+ for module in "${NETTY_MODULES[@]}"; do
+ JAVA_SRC_DIR=()
+ JAVA_RESOURCE_DIRS=()
JAVA_MAIN_CLASS=""
- echo "compiling $module"
-
JAVA_SRC_DIR=(
"$module/src/main/java"
"$module/src/module"
@@ -139,6 +138,7 @@ src_compile() {
JAVA_JAR_FILENAME="$module.jar"
+ einfo "Compiling netty-${module}"
java-pkg-simple_src_compile
JAVA_GENTOO_CLASSPATH_EXTRA+=":$module.jar"
@@ -148,12 +148,10 @@ src_compile() {
done
if use doc; then
-
- JAVA_SRC_DIR=""
+ JAVA_SRC_DIR=()
JAVA_JAR_FILENAME="ignoreme.jar"
- for module in "${modules[@]}" ; do \
-
+ for module in "${NETTY_MODULES[@]}" ; do
# Some modules don't have source code
if [[ -d $module/src/main/java/io ]]; then \
JAVA_SRC_DIR+=( "$module/src/main/java" )
@@ -166,38 +164,35 @@ src_compile() {
}
src_test() {
- for module in "${modules[@]}" ; do \
-
+ local module
+ for module in "${NETTY_MODULES[@]}"; do
JAVA_TEST_SRC_DIR="$module/src/test/java"
- JAVA_TEST_RESOURCE_DIRS=""
+ JAVA_TEST_RESOURCE_DIRS=()
# Not all of the modules have test resources.
if [[ -d $module/src/test/resources ]]; then \
JAVA_TEST_RESOURCE_DIRS="$module/src/test/resources"
fi
+ einfo "Testing netty-${module}"
java-pkg-simple_src_test
-
done
}
src_install() {
einstalldocs # https://bugs.gentoo.org/789582
- for module in "${modules[@]}" ; do \
-
+ local module
+ for module in "${NETTY_MODULES[@]}"; do
JAVA_MAIN_CLASS=$( sed -n 's:.*<mainClass>\(.*\)</mainClass>:\1:p' $module/pom.xml )
java-pkg_dojar $module.jar
# Some modules don't have source code
- if [[ -d $module/src/main/java/org ]]; then \
-
+ if [[ -d $module/src/main/java/org ]]; then
if use source; then
java-pkg_dosrc "$module/src/main/java/*"
fi
-
fi
-
done
if use doc; then
^ permalink raw reply related [flat|nested] 14+ messages in thread
end of thread, other threads:[~2022-08-01 18:08 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-28 7:06 [gentoo-commits] repo/gentoo:master commit in: dev-java/netty/ Agostino Sarubbo
-- strict thread matches above, loose matches on Subject: below --
2022-08-01 18:08 Arthur Zamarin
2022-07-31 18:20 Arthur Zamarin
2022-07-25 4:19 Sam James
2022-06-20 7:41 Florian Schmaus
2022-06-17 12:45 Arthur Zamarin
2022-06-16 15:15 Sam James
2022-06-16 15:15 Sam James
2022-04-22 19:10 Arthur Zamarin
2022-04-22 19:10 Arthur Zamarin
2022-04-15 17:41 Arthur Zamarin
2022-04-15 17:19 Arthur Zamarin
2022-04-15 9:36 Florian Schmaus
2022-04-15 9:36 Florian Schmaus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox