1 |
commit: f518e1fdee384a4ef3d8271d7d81d6e5c71dc54d |
2 |
Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net> |
3 |
AuthorDate: Sun Jul 31 18:28:01 2022 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 1 18:08:20 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f518e1fd |
7 |
|
8 |
dev-java/netty: drop 4.1.35 |
9 |
|
10 |
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net> |
11 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
12 |
|
13 |
dev-java/netty/netty-4.1.35.ebuild | 201 ------------------------------------- |
14 |
1 file changed, 201 deletions(-) |
15 |
|
16 |
diff --git a/dev-java/netty/netty-4.1.35.ebuild b/dev-java/netty/netty-4.1.35.ebuild |
17 |
deleted file mode 100644 |
18 |
index a59641a77cb8..000000000000 |
19 |
--- a/dev-java/netty/netty-4.1.35.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,201 +0,0 @@ |
22 |
-# Copyright 1999-2022 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-# Skeleton command: |
26 |
-# 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 |
27 |
- |
28 |
-EAPI=8 |
29 |
- |
30 |
-JAVA_PKG_IUSE="doc source test" |
31 |
-MAVEN_ID="io.netty:netty:4.1.35.Final" |
32 |
-JAVA_TESTING_FRAMEWORKS="junit-4" |
33 |
- |
34 |
-inherit java-pkg-2 java-pkg-simple |
35 |
- |
36 |
-DESCRIPTION="Async event-driven framework for high performance network applications" |
37 |
-HOMEPAGE="https://netty.io/" |
38 |
-SRC_URI="https://github.com/netty/netty/archive/refs/tags/netty-${PV}.Final.tar.gz" |
39 |
- |
40 |
-LICENSE="Apache-2.0" |
41 |
-SLOT="0" |
42 |
-KEYWORDS="amd64 ~arm arm64 ppc64 x86" |
43 |
- |
44 |
-# We do not build the full range of modules provided by netty but only what |
45 |
-# was available before in netty-common, netty-buffer and netty-transport. |
46 |
-# Further modules might be added to the array. |
47 |
-NETTY_MODULES=( |
48 |
- "common" |
49 |
- "resolver" |
50 |
- "buffer" |
51 |
- "transport" |
52 |
-) |
53 |
- |
54 |
-# Common dependencies |
55 |
-# POM: common/pom.xml |
56 |
-# commons-logging:commons-logging:1.2 -> >=dev-java/commons-logging-1.2:0 |
57 |
-# log4j:log4j:1.2.17 -> >=dev-java/log4j-1.2.17:0 |
58 |
-# org.apache.logging.log4j:log4j-api:2.6.2 -> >=dev-java/log4j-api-2.17.1:2 |
59 |
-# org.jctools:jctools-core:2.1.1 -> !!!suitable-mavenVersion-not-found!!! |
60 |
-# org.slf4j:slf4j-api:1.7.21 -> >=dev-java/slf4j-api-1.7.32:0 |
61 |
- |
62 |
-# "Failed to load class org.slf4j.impl.StaticLoggerBinder" |
63 |
-# Using slf4j-simple instead of slf4j-api solves it. |
64 |
-# https://www.slf4j.org/codes.html |
65 |
-CP_DEPEND=" |
66 |
- dev-java/commons-logging:0 |
67 |
- dev-java/jctools-core:0 |
68 |
- dev-java/log4j-12-api:2 |
69 |
- dev-java/slf4j-simple:0 |
70 |
-" |
71 |
- |
72 |
-# Compile dependencies |
73 |
-# POM: common/pom.xml |
74 |
-# test? ch.qos.logback:logback-classic:1.1.7 -> !!!groupId-not-found!!! |
75 |
-# test? io.netty:netty-build:25 -> !!!artifactId-not-found!!! |
76 |
-# test? io.netty:netty-dev-tools:4.1.35.Final -> !!!artifactId-not-found!!! |
77 |
-# test? junit:junit:4.12 -> >=dev-java/junit-4.13.2:4 |
78 |
-# test? org.apache.logging.log4j:log4j-core:2.6.2 -> >=dev-java/log4j-core-2.17.1:2 |
79 |
-# test? org.hamcrest:hamcrest-library:1.3 -> >=dev-java/hamcrest-library-1.3:1.3 |
80 |
-# test? org.javassist:javassist:3.20.0-GA -> !!!groupId-not-found!!! |
81 |
-# test? org.mockito:mockito-core:2.18.3 -> >=dev-java/mockito-4.4.0:4 |
82 |
- |
83 |
-DEPEND=" |
84 |
- >=virtual/jdk-1.8:* |
85 |
- ${CP_DEPEND} |
86 |
- test? ( |
87 |
- dev-java/javassist:3 |
88 |
- dev-java/hamcrest-library:1.3 |
89 |
- dev-java/logback-classic:0 |
90 |
- dev-java/log4j-core:2 |
91 |
- dev-java/mockito:4 |
92 |
- ) |
93 |
-" |
94 |
- |
95 |
-RDEPEND=" |
96 |
- >=virtual/jre-1.8:* |
97 |
- ${CP_DEPEND} |
98 |
-" |
99 |
- |
100 |
-S="${WORKDIR}/netty-netty-${PV}.Final" |
101 |
- |
102 |
-JAVA_TEST_GENTOO_CLASSPATH="hamcrest-library-1.3,javassist-3,junit-4,logback-classic,log4j-core-2,mockito-4" |
103 |
- |
104 |
-# There were 12 failures: |
105 |
-# 1) testCompositeDirectBuffer(io.netty.buffer.ByteBufAllocatorTest) |
106 |
-# java.lang.InstantiationException |
107 |
-# at java.base/jdk.internal.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:48) |
108 |
-# |
109 |
-# FAILURES!!! |
110 |
-# Tests run: 10015, Failures: 12 |
111 |
- |
112 |
-# There was 1 failure: |
113 |
-# 1) initializationError(io.netty.channel.BaseChannelTest) |
114 |
-# org.junit.runners.model.InvalidTestClassError: Invalid test class 'io.netty.channel.BaseChannelTest': |
115 |
-# 1. The class io.netty.channel.BaseChannelTest is not public. |
116 |
-# 2. Test class should have exactly one public constructor |
117 |
-# 3. No runnable methods |
118 |
-# |
119 |
-# FAILURES!!! |
120 |
-# Tests run: 10277, Failures: 1 |
121 |
- |
122 |
-JAVA_TEST_EXCLUDES=( |
123 |
- "io.netty.buffer.ByteBufAllocatorTest" |
124 |
- "io.netty.channel.BaseChannelTest" |
125 |
-) |
126 |
- |
127 |
-src_prepare() { |
128 |
- default |
129 |
- |
130 |
- sed \ |
131 |
- -e 's:verifyZeroInteractions:verifyNoInteractions:' \ |
132 |
- -i buffer/src/test/java/io/netty/buffer/UnpooledTest.java \ |
133 |
- -i transport/src/test/java/io/netty/channel/CompleteChannelFutureTest.java || die |
134 |
- |
135 |
- # transport/src/test/java/io/netty/channel/PendingWriteQueueTest.java:262: error: reference to assertEquals is ambiguous |
136 |
- # assertEquals(1L, channel.readOutbound()); |
137 |
- # ^ |
138 |
- # both method assertEquals(long,long) in Assert and method assertEquals(Object,Object) in Assert match |
139 |
- rm transport/src/test/java/io/netty/channel/PendingWriteQueueTest.java || die |
140 |
-} |
141 |
- |
142 |
-src_compile() { |
143 |
- local module |
144 |
- # We loop over the modules list and compile the jar files. |
145 |
- for module in "${NETTY_MODULES[@]}"; do |
146 |
- JAVA_SRC_DIR=() |
147 |
- JAVA_RESOURCE_DIRS=() |
148 |
- JAVA_MAIN_CLASS="" |
149 |
- |
150 |
- JAVA_SRC_DIR=( |
151 |
- "$module/src/main/java" |
152 |
- "$module/src/module" |
153 |
- ) |
154 |
- |
155 |
- # Not all of the modules have resources. |
156 |
- if [[ -d $module/src/main/resources ]]; then \ |
157 |
- JAVA_RESOURCE_DIRS="$module/src/main/resources" |
158 |
- fi |
159 |
- |
160 |
- JAVA_JAR_FILENAME="$module.jar" |
161 |
- |
162 |
- einfo "Compiling netty-${module}" |
163 |
- java-pkg-simple_src_compile |
164 |
- |
165 |
- JAVA_GENTOO_CLASSPATH_EXTRA+=":$module.jar" |
166 |
- |
167 |
- rm -r target || die |
168 |
- |
169 |
- done |
170 |
- |
171 |
- if use doc; then |
172 |
- JAVA_SRC_DIR=() |
173 |
- JAVA_JAR_FILENAME="ignoreme.jar" |
174 |
- |
175 |
- for module in "${NETTY_MODULES[@]}" ; do |
176 |
- # Some modules don't have source code |
177 |
- if [[ -d $module/src/main/java/io ]]; then \ |
178 |
- JAVA_SRC_DIR+=( "$module/src/main/java" ) |
179 |
- fi |
180 |
- |
181 |
- done |
182 |
- |
183 |
- java-pkg-simple_src_compile |
184 |
- fi |
185 |
-} |
186 |
- |
187 |
-src_test() { |
188 |
- local module |
189 |
- for module in "${NETTY_MODULES[@]}"; do |
190 |
- JAVA_TEST_SRC_DIR="$module/src/test/java" |
191 |
- JAVA_TEST_RESOURCE_DIRS=() |
192 |
- |
193 |
- # Not all of the modules have test resources. |
194 |
- if [[ -d $module/src/test/resources ]]; then \ |
195 |
- JAVA_TEST_RESOURCE_DIRS="$module/src/test/resources" |
196 |
- fi |
197 |
- |
198 |
- einfo "Testing netty-${module}" |
199 |
- java-pkg-simple_src_test |
200 |
- done |
201 |
-} |
202 |
- |
203 |
-src_install() { |
204 |
- einstalldocs # https://bugs.gentoo.org/789582 |
205 |
- |
206 |
- local module |
207 |
- for module in "${NETTY_MODULES[@]}"; do |
208 |
- JAVA_MAIN_CLASS=$( sed -n 's:.*<mainClass>\(.*\)</mainClass>:\1:p' $module/pom.xml ) |
209 |
- java-pkg_dojar $module.jar |
210 |
- |
211 |
- # Some modules don't have source code |
212 |
- if [[ -d $module/src/main/java/org ]]; then |
213 |
- if use source; then |
214 |
- java-pkg_dosrc "$module/src/main/java/*" |
215 |
- fi |
216 |
- fi |
217 |
- done |
218 |
- |
219 |
- if use doc; then |
220 |
- java-pkg_dojavadoc target/api |
221 |
- fi |
222 |
-} |