Gentoo Archives: gentoo-commits

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