1 |
commit: ff5d2b93fb62c934b8e54d5a83db44c7fd3abdca |
2 |
Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 1 07:39:07 2015 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 1 07:55:35 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff5d2b93 |
7 |
|
8 |
dev-java/netty-codec: Version bump. |
9 |
|
10 |
Package-Manager: portage-2.2.18 |
11 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
12 |
|
13 |
dev-java/netty-codec/Manifest | 1 + |
14 |
.../netty-codec/files/netty-codec-4.0.22-build.xml | 258 +++++++++++++++++++++ |
15 |
dev-java/netty-codec/netty-codec-4.0.22.ebuild | 56 +++++ |
16 |
3 files changed, 315 insertions(+) |
17 |
|
18 |
diff --git a/dev-java/netty-codec/Manifest b/dev-java/netty-codec/Manifest |
19 |
index 2665155..461190c 100644 |
20 |
--- a/dev-java/netty-codec/Manifest |
21 |
+++ b/dev-java/netty-codec/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST netty-4.0.19.Final.tar.gz 929126 SHA256 065980d0232179a02dc52d55e9017f485c2cbcf14597172cac3bfd2db5dce9ac SHA512 031a251c93b2c475bbf12610f297ed47eacc430ba19e05fd33c12ab768b1d14556cb59d0f9e2a19f87c325b516323cd2ec13a341522825a19d76c27abb13a4cf WHIRLPOOL 8a2c026c62de3a26ef0c432af37b193b10bc826429399dc8fb8016d50cb22359e50087a10edecd69924861bf1f29da02b39810f37db514ba260a1ea9ef2692d0 |
24 |
DIST netty-4.0.21.Final.tar.gz 960489 SHA256 e1b5572defaa760dcd8ded4d7691e9daf242b2e1885115b722f2f790d9ef9f75 SHA512 5d432e9e433c22b82e67ed3463c6982ca95c2ad823165e1ca9a5046e598878f06aac4221be235f2bda15edfdb22028f2a4f74fb37d431f24a2636e4ec60fae74 WHIRLPOOL 92e96986def775f26286958a9e2c7fe55ab571ad373f9cc25357db71f85f170d7aba7d7854c130c5788f7332665000cd10f666fff06abd0ce57cf4f95008958a |
25 |
+DIST netty-4.0.22.Final.tar.gz 983956 SHA256 d539483235223804d76f8da572b851cd196254f5da7d3ac8e064c626b31748ff SHA512 f216c8431e663533ea5258bc054154d07f791667712c4dd619eae5de55c1b9031cca756a26b49d8a0bb9e3cf61ca5cb295e7a3b3e4e9e98e99cd53963d54912e WHIRLPOOL ca3d9a9b78643414b4361388e8486ab7cbb7d4a479718d89a8f51d90ef7fd580b154f09d1e8014503bececd49fb8841782e933c8cc8f355609ccae1f6510ccc5 |
26 |
|
27 |
diff --git a/dev-java/netty-codec/files/netty-codec-4.0.22-build.xml b/dev-java/netty-codec/files/netty-codec-4.0.22-build.xml |
28 |
new file mode 100644 |
29 |
index 0000000..938e196 |
30 |
--- /dev/null |
31 |
+++ b/dev-java/netty-codec/files/netty-codec-4.0.22-build.xml |
32 |
@@ -0,0 +1,258 @@ |
33 |
+<?xml version="1.0" encoding="UTF-8"?> |
34 |
+ |
35 |
+<!-- ====================================================================== --> |
36 |
+<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. --> |
37 |
+<!-- ====================================================================== --> |
38 |
+ |
39 |
+<!-- ====================================================================== --> |
40 |
+<!-- ===================== - DO NOT EDIT THIS FILE! - ===================== --> |
41 |
+<!-- ====================================================================== --> |
42 |
+<!-- --> |
43 |
+<!-- Any modifications will be overwritten. --> |
44 |
+<!-- --> |
45 |
+<!-- Generated by Maven Ant Plugin on 5/15/14 7:12 PM --> |
46 |
+<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ --> |
47 |
+<!-- --> |
48 |
+<!-- ====================================================================== --> |
49 |
+ |
50 |
+<project name="netty-codec-from-maven" default="package" basedir="."> |
51 |
+ |
52 |
+ <!-- ====================================================================== --> |
53 |
+ <!-- Build environment properties --> |
54 |
+ <!-- ====================================================================== --> |
55 |
+ |
56 |
+ <property file="${user.home}/.m2/maven.properties"/> |
57 |
+ <property file="maven-build.properties"/> |
58 |
+ |
59 |
+ <property name="maven.build.finalName" value="netty-codec-4.0.22.Final"/> |
60 |
+ <property name="maven.build.dir" value="target"/> |
61 |
+ <property name="maven.build.outputDir" value="${maven.build.dir}/classes"/> |
62 |
+ <property name="maven.build.srcDir.0" value="src/main/java"/> |
63 |
+ <property name="maven.build.resourceDir.0" value="src/main/resources"/> |
64 |
+ <property name="maven.build.testOutputDir" value="${maven.build.dir}/test-classes"/> |
65 |
+ <property name="maven.build.testDir.0" value="src/test/java"/> |
66 |
+ <property name="maven.build.testResourceDir.0" value="src/test/resources"/> |
67 |
+ <property name="maven.test.reports" value="${maven.build.dir}/test-reports"/> |
68 |
+ <property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site"/> |
69 |
+ |
70 |
+ <property name="maven.repo.local" value="${user.home}/.m2/repository"/> |
71 |
+ <property name="maven.settings.offline" value="false"/> |
72 |
+ <property name="maven.settings.interactiveMode" value="true"/> |
73 |
+ |
74 |
+ <!-- ====================================================================== --> |
75 |
+ <!-- Defining classpaths --> |
76 |
+ <!-- ====================================================================== --> |
77 |
+ |
78 |
+ <path id="build.classpath"> |
79 |
+ <pathelement location="${maven.repo.local}/io/netty/netty-transport/4.0.19.Final/netty-transport-4.0.19.Final.jar"/> |
80 |
+ <pathelement location="${maven.repo.local}/io/netty/netty-buffer/4.0.19.Final/netty-buffer-4.0.19.Final.jar"/> |
81 |
+ <pathelement location="${maven.repo.local}/io/netty/netty-common/4.0.19.Final/netty-common-4.0.19.Final.jar"/> |
82 |
+ <pathelement location="${maven.repo.local}/com/google/protobuf/protobuf-java/2.5.0/protobuf-java-2.5.0.jar"/> |
83 |
+ <pathelement location="${maven.repo.local}/org/jboss/marshalling/jboss-marshalling/1.3.18.GA/jboss-marshalling-1.3.18.GA.jar"/> |
84 |
+ <pathelement location="${maven.repo.local}/com/jcraft/jzlib/1.1.2/jzlib-1.1.2.jar"/> |
85 |
+ </path> |
86 |
+ <path id="build.test.classpath"> |
87 |
+ <pathelement location="${maven.repo.local}/io/netty/netty-transport/4.0.19.Final/netty-transport-4.0.19.Final.jar"/> |
88 |
+ <pathelement location="${maven.repo.local}/io/netty/netty-buffer/4.0.19.Final/netty-buffer-4.0.19.Final.jar"/> |
89 |
+ <pathelement location="${maven.repo.local}/io/netty/netty-common/4.0.19.Final/netty-common-4.0.19.Final.jar"/> |
90 |
+ <pathelement location="${maven.repo.local}/com/google/protobuf/protobuf-java/2.5.0/protobuf-java-2.5.0.jar"/> |
91 |
+ <pathelement location="${maven.repo.local}/org/jboss/marshalling/jboss-marshalling/1.3.18.GA/jboss-marshalling-1.3.18.GA.jar"/> |
92 |
+ <pathelement location="${maven.repo.local}/com/jcraft/jzlib/1.1.2/jzlib-1.1.2.jar"/> |
93 |
+ <pathelement location="${maven.repo.local}/org/jboss/marshalling/jboss-marshalling-serial/1.3.18.GA/jboss-marshalling-serial-1.3.18.GA.jar"/> |
94 |
+ <pathelement location="${maven.repo.local}/org/jboss/marshalling/jboss-marshalling-river/1.3.18.GA/jboss-marshalling-river-1.3.18.GA.jar"/> |
95 |
+ <pathelement location="${maven.repo.local}/org/javassist/javassist/3.18.0-GA/javassist-3.18.0-GA.jar"/> |
96 |
+ <pathelement location="${maven.repo.local}/junit/junit/4.11/junit-4.11.jar"/> |
97 |
+ <pathelement location="${maven.repo.local}/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar"/> |
98 |
+ <pathelement location="${maven.repo.local}/org/easymock/easymock/3.2/easymock-3.2.jar"/> |
99 |
+ <pathelement location="${maven.repo.local}/cglib/cglib-nodep/2.2.2/cglib-nodep-2.2.2.jar"/> |
100 |
+ <pathelement location="${maven.repo.local}/org/objenesis/objenesis/1.3/objenesis-1.3.jar"/> |
101 |
+ <pathelement location="${maven.repo.local}/org/easymock/easymockclassextension/3.2/easymockclassextension-3.2.jar"/> |
102 |
+ <pathelement location="${maven.repo.local}/org/jmock/jmock-junit4/2.6.0/jmock-junit4-2.6.0.jar"/> |
103 |
+ <pathelement location="${maven.repo.local}/org/jmock/jmock/2.6.0/jmock-2.6.0.jar"/> |
104 |
+ <pathelement location="${maven.repo.local}/org/hamcrest/hamcrest-library/1.1/hamcrest-library-1.1.jar"/> |
105 |
+ <pathelement location="${maven.repo.local}/junit/junit-dep/4.4/junit-dep-4.4.jar"/> |
106 |
+ <pathelement location="${maven.repo.local}/ch/qos/logback/logback-classic/1.0.13/logback-classic-1.0.13.jar"/> |
107 |
+ <pathelement location="${maven.repo.local}/ch/qos/logback/logback-core/1.0.13/logback-core-1.0.13.jar"/> |
108 |
+ <pathelement location="${maven.repo.local}/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar"/> |
109 |
+ </path> |
110 |
+ |
111 |
+ <!-- ====================================================================== --> |
112 |
+ <!-- Cleaning up target --> |
113 |
+ <!-- ====================================================================== --> |
114 |
+ |
115 |
+ <target name="clean" description="Clean the output directory"> |
116 |
+ <delete dir="${maven.build.dir}"/> |
117 |
+ </target> |
118 |
+ |
119 |
+ <!-- ====================================================================== --> |
120 |
+ <!-- Compilation target --> |
121 |
+ <!-- ====================================================================== --> |
122 |
+ |
123 |
+ <target name="compile" description="Compile the code"> |
124 |
+ <mkdir dir="${maven.build.outputDir}"/> |
125 |
+ <javac destdir="${maven.build.outputDir}" |
126 |
+ nowarn="true" |
127 |
+ debug="true" |
128 |
+ optimize="true" |
129 |
+ deprecation="true" |
130 |
+ target="1.6" |
131 |
+ verbose="false" |
132 |
+ fork="true" |
133 |
+ memoryInitialSize="1024m" |
134 |
+ source="1.6"> |
135 |
+ <src> |
136 |
+ <pathelement location="${maven.build.srcDir.0}"/> |
137 |
+ </src> |
138 |
+ <classpath refid="build.classpath"/> |
139 |
+ </javac> |
140 |
+ </target> |
141 |
+ |
142 |
+ <!-- ====================================================================== --> |
143 |
+ <!-- Test-compilation target --> |
144 |
+ <!-- ====================================================================== --> |
145 |
+ |
146 |
+ <target name="compile-tests" |
147 |
+ depends="compile" |
148 |
+ description="Compile the test code" |
149 |
+ unless="maven.test.skip"> |
150 |
+ <mkdir dir="${maven.build.testOutputDir}"/> |
151 |
+ <javac destdir="${maven.build.testOutputDir}" |
152 |
+ nowarn="true" |
153 |
+ debug="true" |
154 |
+ optimize="true" |
155 |
+ deprecation="true" |
156 |
+ target="1.6" |
157 |
+ verbose="false" |
158 |
+ fork="true" |
159 |
+ memoryInitialSize="1024m" |
160 |
+ source="1.6"> |
161 |
+ <src> |
162 |
+ <pathelement location="${maven.build.testDir.0}"/> |
163 |
+ </src> |
164 |
+ <classpath> |
165 |
+ <path refid="build.test.classpath"/> |
166 |
+ <pathelement location="${maven.build.outputDir}"/> |
167 |
+ </classpath> |
168 |
+ </javac> |
169 |
+ </target> |
170 |
+ |
171 |
+ <!-- ====================================================================== --> |
172 |
+ <!-- Run all tests --> |
173 |
+ <!-- ====================================================================== --> |
174 |
+ |
175 |
+ <target name="test" |
176 |
+ depends="compile-tests, junit-missing" |
177 |
+ unless="junit.skipped" |
178 |
+ description="Run the test cases"> |
179 |
+ <mkdir dir="${maven.test.reports}"/> |
180 |
+ <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir="."> |
181 |
+ <sysproperty key="basedir" value="."/> |
182 |
+ <formatter type="xml"/> |
183 |
+ <formatter type="plain" usefile="false"/> |
184 |
+ <classpath> |
185 |
+ <path refid="build.test.classpath"/> |
186 |
+ <pathelement location="${maven.build.outputDir}"/> |
187 |
+ <pathelement location="${maven.build.testOutputDir}"/> |
188 |
+ </classpath> |
189 |
+ <batchtest todir="${maven.test.reports}" unless="test"> |
190 |
+ <fileset dir="${maven.build.testDir.0}"> |
191 |
+ <include name="**/*Test*.java"/> |
192 |
+ <include name="**/*Benchmark*.java"/> |
193 |
+ <exclude name="**/Abstract*"/> |
194 |
+ <exclude name="**/TestUtil*"/> |
195 |
+ </fileset> |
196 |
+ </batchtest> |
197 |
+ <batchtest todir="${maven.test.reports}" if="test"> |
198 |
+ <fileset dir="${maven.build.testDir.0}"> |
199 |
+ <include name="**/${test}.java"/> |
200 |
+ <exclude name="**/Abstract*"/> |
201 |
+ <exclude name="**/TestUtil*"/> |
202 |
+ </fileset> |
203 |
+ </batchtest> |
204 |
+ </junit> |
205 |
+ </target> |
206 |
+ |
207 |
+ <target name="test-junit-present"> |
208 |
+ <available classname="junit.framework.Test" property="junit.present"/> |
209 |
+ </target> |
210 |
+ |
211 |
+ <target name="test-junit-status" |
212 |
+ depends="test-junit-present"> |
213 |
+ <condition property="junit.missing"> |
214 |
+ <and> |
215 |
+ <isfalse value="${junit.present}"/> |
216 |
+ <isfalse value="${maven.test.skip}"/> |
217 |
+ </and> |
218 |
+ </condition> |
219 |
+ <condition property="junit.skipped"> |
220 |
+ <or> |
221 |
+ <isfalse value="${junit.present}"/> |
222 |
+ <istrue value="${maven.test.skip}"/> |
223 |
+ </or> |
224 |
+ </condition> |
225 |
+ </target> |
226 |
+ |
227 |
+ <target name="junit-missing" |
228 |
+ depends="test-junit-status" |
229 |
+ if="junit.missing"> |
230 |
+ <echo>=================================== WARNING ===================================</echo> |
231 |
+ <echo> JUnit is not present in your $ANT_HOME/lib directory. Tests not executed.</echo> |
232 |
+ <echo>===============================================================================</echo> |
233 |
+ </target> |
234 |
+ |
235 |
+ <!-- ====================================================================== --> |
236 |
+ <!-- Javadoc target --> |
237 |
+ <!-- ====================================================================== --> |
238 |
+ |
239 |
+ <target name="javadoc" description="Generates the Javadoc of the application"> |
240 |
+ <javadoc sourcepath="${maven.build.srcDir.0}" |
241 |
+ packagenames="*" |
242 |
+ destdir="${maven.reporting.outputDirectory}/apidocs" |
243 |
+ access="protected" |
244 |
+ old="false" |
245 |
+ verbose="false" |
246 |
+ version="false" |
247 |
+ use="true" |
248 |
+ author="false" |
249 |
+ splitindex="false" |
250 |
+ nodeprecated="false" |
251 |
+ nodeprecatedlist="false" |
252 |
+ notree="false" |
253 |
+ noindex="false" |
254 |
+ nohelp="false" |
255 |
+ nonavbar="false" |
256 |
+ serialwarn="false" |
257 |
+ charset="ISO-8859-1" |
258 |
+ linksource="false" |
259 |
+ breakiterator="true"/> |
260 |
+ </target> |
261 |
+ |
262 |
+ <!-- ====================================================================== --> |
263 |
+ <!-- Package target --> |
264 |
+ <!-- ====================================================================== --> |
265 |
+ |
266 |
+ <target name="package" depends="compile,test" description="Package the application"> |
267 |
+ <jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar" |
268 |
+ compress="true" |
269 |
+ index="false" |
270 |
+ basedir="${maven.build.outputDir}" |
271 |
+ excludes="**/package.html"/> |
272 |
+ </target> |
273 |
+ |
274 |
+ <!-- ====================================================================== --> |
275 |
+ <!-- A dummy target for the package named after the type it creates --> |
276 |
+ <!-- ====================================================================== --> |
277 |
+ |
278 |
+ <target name="jar" depends="package" description="Builds the jar for the application"/> |
279 |
+ |
280 |
+ <!-- ====================================================================== --> |
281 |
+ <!-- Download dependencies target --> |
282 |
+ <!-- ====================================================================== --> |
283 |
+ |
284 |
+ <target name="test-offline"> |
285 |
+ <condition property="maven.mode.offline"> |
286 |
+ <equals arg1="${maven.settings.offline}" arg2="true"/> |
287 |
+ </condition> |
288 |
+ </target> |
289 |
+ |
290 |
+</project> |
291 |
|
292 |
diff --git a/dev-java/netty-codec/netty-codec-4.0.22.ebuild b/dev-java/netty-codec/netty-codec-4.0.22.ebuild |
293 |
new file mode 100644 |
294 |
index 0000000..876c667 |
295 |
--- /dev/null |
296 |
+++ b/dev-java/netty-codec/netty-codec-4.0.22.ebuild |
297 |
@@ -0,0 +1,56 @@ |
298 |
+# Copyright 1999-2014 Gentoo Foundation |
299 |
+# Distributed under the terms of the GNU General Public License v2 |
300 |
+# $Id$ |
301 |
+ |
302 |
+EAPI="5" |
303 |
+ |
304 |
+JAVA_PKG_IUSE="doc source" |
305 |
+ |
306 |
+inherit java-pkg-2 java-ant-2 |
307 |
+ |
308 |
+MY_PN="netty" |
309 |
+MY_P="${MY_PN}-${PV}" |
310 |
+DESCRIPTION="Async event-driven framework for rapid development of high performance network applications" |
311 |
+HOMEPAGE="http://netty.io/" |
312 |
+SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/${MY_P}.Final.tar.gz" |
313 |
+ |
314 |
+LICENSE="Apache-2.0" |
315 |
+SLOT="0" |
316 |
+KEYWORDS="~amd64" |
317 |
+ |
318 |
+CDEPEND="dev-java/${MY_PN}-buffer:0 |
319 |
+ dev-java/${MY_PN}-common:0 |
320 |
+ dev-java/${MY_PN}-transport:0 |
321 |
+ dev-java/jboss-marshalling:0 |
322 |
+ dev-java/jzlib:1.1.3 |
323 |
+ dev-libs/protobuf[java]" |
324 |
+ |
325 |
+RDEPEND=">=virtual/jre-1.6 |
326 |
+ ${CDEPEND}" |
327 |
+ |
328 |
+DEPEND=">=virtual/jdk-1.6 |
329 |
+ ${CDEPEND}" |
330 |
+ |
331 |
+S="${WORKDIR}/${MY_PN}-${MY_P}.Final/${PN/${MY_PN}-}" |
332 |
+ |
333 |
+EANT_BUILD_TARGET="package" |
334 |
+EANT_GENTOO_CLASSPATH="${MY_PN}-buffer,${MY_PN}-common,jboss-marshalling,${MY_PN}-transport,jzlib-1.1.3,protobuf" |
335 |
+JAVA_ANT_REWRITE_CLASSPATH="true" |
336 |
+ |
337 |
+java_prepare() { |
338 |
+ cp "${FILESDIR}"/${P}-build.xml build.xml || die |
339 |
+} |
340 |
+ |
341 |
+# [junit] Testcase: testZLIB_OR_NONE2 took 0.008 sec |
342 |
+# [junit] Caused an ERROR |
343 |
+# [junit] null |
344 |
+# [junit] java.lang.InstantiationException |
345 |
+# [junit] at java.lang.reflect.Constructor.newInstance(Constructor.java:408) |
346 |
+RESTRICT="test" |
347 |
+ |
348 |
+src_install() { |
349 |
+ java-pkg_newjar target/${MY_PN}-*.jar ${PN}.jar |
350 |
+ |
351 |
+ use doc && java-pkg_dojavadoc target/site/apidocs |
352 |
+ use source && java-pkg_dosrc src/main/java |
353 |
+} |