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/commons-codec/, dev-java/commons-codec/files/
Date: Sun, 27 May 2018 16:30:39
Message-Id: 1527438627.d3285a05976493a68d7e228f8f6e5e5c54104678.monsieurp@gentoo
1 commit: d3285a05976493a68d7e228f8f6e5e5c54104678
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 26 06:13:28 2018 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Sun May 27 16:30:27 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3285a05
7
8 dev-java/commons-codec: version bump.
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 dev-java/commons-codec/Manifest | 1 +
13 dev-java/commons-codec/commons-codec-1.11.ebuild | 54 ++++++
14 .../files/commons-codec-1.11-build.xml | 200 +++++++++++++++++++++
15 3 files changed, 255 insertions(+)
16
17 diff --git a/dev-java/commons-codec/Manifest b/dev-java/commons-codec/Manifest
18 index 0150168c64c..ac0569a673c 100644
19 --- a/dev-java/commons-codec/Manifest
20 +++ b/dev-java/commons-codec/Manifest
21 @@ -1 +1,2 @@
22 +DIST commons-codec-1.11.tar.gz 369538 BLAKE2B 6b77cb3c69c81a9684b298ac5233b788d6651ecc96b70ac7fda9face5af5a60970c5bb2531fd285d20dce7732829f7470b9e4941d63025faf47247410f1ffba2 SHA512 b3159308f28b2fc50208421412d8cc81f439cc07dc3d071df7b50f2d862aab65b3d20bc8eb2906367a05ecf5138c56b5f12c6cf9c224def8b8286fe12ac5346f
23 DIST commons-codec-1.7-src.tar.gz 291251 BLAKE2B b8fecdb9b88a21ceb3106a13332493617ecd2c8064c84a1514dec1c1c254e18116ff4926f7445bef4171000ba77da411efd6a93fe80a4795e887832035373e10 SHA512 31358283ac2827cb05486b8ff1512242153f61deb086f7fe145ee3ca38d96e43fba080a1e89a3b8cd44d09761015ff4dbe5226d29b7f9fcd59e68ca7701b28d6
24
25 diff --git a/dev-java/commons-codec/commons-codec-1.11.ebuild b/dev-java/commons-codec/commons-codec-1.11.ebuild
26 new file mode 100644
27 index 00000000000..7abed459fb4
28 --- /dev/null
29 +++ b/dev-java/commons-codec/commons-codec-1.11.ebuild
30 @@ -0,0 +1,54 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +JAVA_PKG_IUSE="doc source"
37 +
38 +inherit java-pkg-2 java-ant-2
39 +
40 +DESCRIPTION="Implementations of common encoders and decoders in Java"
41 +HOMEPAGE="https://commons.apache.org/codec"
42 +SRC_URI="mirror://apache/commons/codec/source/${P}-src.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="Apache-2.0"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x86-macos"
47 +IUSE="test"
48 +
49 +RDEPEND="
50 + >=virtual/jre-1.6"
51 +
52 +DEPEND="
53 + >=virtual/jdk-1.6
54 + test? (
55 + dev-java/ant-junit:0
56 + dev-java/junit:4
57 + )"
58 +
59 +S="${WORKDIR}/${P}-src"
60 +
61 +JAVA_ANT_ENCODING="ISO-8859-1"
62 +EANT_TEST_GENTOO_CLASSPATH="junit-4"
63 +
64 +JAVA_ANT_REWRITE_CLASSPATH="yes"
65 +
66 +RESTRICT="test"
67 +
68 +DOCS=( RELEASE-NOTES.txt NOTICE.txt )
69 +
70 +src_prepare() {
71 + cp "${FILESDIR}/${P}-build.xml" "${S}/build.xml" || die
72 + default
73 +}
74 +
75 +src_test() {
76 + java-pkg-2_src_test
77 +}
78 +
79 +src_install() {
80 + java-pkg_newjar "target/${P}.jar"
81 +
82 + use doc && java-pkg_dojavadoc target/site/apidocs
83 + use source && java-pkg_dosrc src/main/java/*
84 +}
85
86 diff --git a/dev-java/commons-codec/files/commons-codec-1.11-build.xml b/dev-java/commons-codec/files/commons-codec-1.11-build.xml
87 new file mode 100644
88 index 00000000000..251268136bf
89 --- /dev/null
90 +++ b/dev-java/commons-codec/files/commons-codec-1.11-build.xml
91 @@ -0,0 +1,200 @@
92 +<?xml version="1.0" encoding="UTF-8"?>
93 +
94 +<!-- ====================================================================== -->
95 +<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. -->
96 +<!-- ====================================================================== -->
97 +
98 +<!-- ====================================================================== -->
99 +<!-- ===================== - DO NOT EDIT THIS FILE! - ===================== -->
100 +<!-- ====================================================================== -->
101 +<!-- -->
102 +<!-- Any modifications will be overwritten. -->
103 +<!-- -->
104 +<!-- Generated by Maven Ant Plugin on 5/27/18 9:10 AM -->
105 +<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ -->
106 +<!-- -->
107 +<!-- ====================================================================== -->
108 +
109 +<project name="commons-codec-from-maven" default="package" basedir=".">
110 +
111 + <!-- ====================================================================== -->
112 + <!-- Build environment properties -->
113 + <!-- ====================================================================== -->
114 +
115 + <property file="maven-build.properties"/>
116 +
117 + <property name="maven.build.finalName" value="commons-codec-1.11"/>
118 + <property name="maven.build.dir" value="target"/>
119 + <property name="maven.build.outputDir" value="${maven.build.dir}/classes"/>
120 + <property name="maven.build.srcDir.0" value="src/main/java"/>
121 + <property name="maven.build.resourceDir.0" value="src/main/resources"/>
122 + <property name="maven.build.resourceDir.1" value="."/>
123 + <property name="maven.build.testOutputDir" value="${maven.build.dir}/test-classes"/>
124 + <property name="maven.build.testDir.0" value="src/test/java"/>
125 + <property name="maven.build.testResourceDir.0" value="src/test/resources"/>
126 + <property name="maven.build.testResourceDir.1" value="."/>
127 + <property name="maven.test.reports" value="${maven.build.dir}/test-reports"/>
128 + <property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site"/>
129 +
130 + <property name="maven.settings.offline" value="false"/>
131 + <property name="maven.settings.interactiveMode" value="true"/>
132 +
133 + <!-- ====================================================================== -->
134 + <!-- Defining classpaths -->
135 + <!-- ====================================================================== -->
136 +
137 + <path id="build.classpath"/>
138 + <path id="build.test.classpath">
139 + <pathelement location="${maven.repo.local}/junit/junit/4.12/junit-4.12.jar"/>
140 + <pathelement location="${maven.repo.local}/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar"/>
141 + <pathelement location="${maven.repo.local}/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.jar"/>
142 + </path>
143 +
144 + <!-- ====================================================================== -->
145 + <!-- Cleaning up target -->
146 + <!-- ====================================================================== -->
147 +
148 + <target name="clean" description="Clean the output directory">
149 + <delete dir="${maven.build.dir}"/>
150 + </target>
151 +
152 + <!-- ====================================================================== -->
153 + <!-- Compilation target -->
154 + <!-- ====================================================================== -->
155 +
156 + <target name="compile" description="Compile the code">
157 + <mkdir dir="${maven.build.outputDir}"/>
158 + <javac destdir="${maven.build.outputDir}"
159 + encoding="UTF-8"
160 + nowarn="false"
161 + debug="true"
162 + optimize="false"
163 + deprecation="true"
164 + target="1.6"
165 + verbose="false"
166 + fork="false"
167 + source="1.6">
168 + <src>
169 + <pathelement location="${maven.build.srcDir.0}"/>
170 + </src>
171 + <classpath refid="build.classpath"/>
172 + </javac>
173 + <copy todir="${maven.build.outputDir}">
174 + <fileset dir="${maven.build.resourceDir.0}"/>
175 + </copy>
176 + <mkdir dir="${maven.build.outputDir}/META-INF"/>
177 + <copy todir="${maven.build.outputDir}/META-INF">
178 + <fileset dir="${maven.build.resourceDir.1}">
179 + <include name="NOTICE.txt"/>
180 + <include name="LICENSE.txt"/>
181 + </fileset>
182 + </copy>
183 + </target>
184 +
185 + <!-- ====================================================================== -->
186 + <!-- Run all tests -->
187 + <!-- ====================================================================== -->
188 +
189 + <target name="test"
190 + description="Run the test cases">
191 + <mkdir dir="${maven.test.reports}"/>
192 + <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
193 + <sysproperty key="basedir" value="."/>
194 + <formatter type="xml"/>
195 + <formatter type="plain" usefile="false"/>
196 + <classpath>
197 + <path refid="build.test.classpath"/>
198 + <pathelement location="${maven.build.outputDir}"/>
199 + <pathelement location="${maven.build.testOutputDir}"/>
200 + </classpath>
201 + <batchtest todir="${maven.test.reports}" unless="test">
202 + <fileset dir="${maven.build.testDir.0}">
203 + <include name="**/Test*.java"/>
204 + <include name="**/*Test.java"/>
205 + <include name="**/*TestCase.java"/>
206 + <exclude name="**/*AbstractTest.java"/>
207 + <exclude name="**/*PerformanceTest.java"/>
208 + </fileset>
209 + </batchtest>
210 + <batchtest todir="${maven.test.reports}" if="test">
211 + <fileset dir="${maven.build.testDir.0}">
212 + <include name="**/${test}.java"/>
213 + <exclude name="**/*AbstractTest.java"/>
214 + <exclude name="**/*PerformanceTest.java"/>
215 + </fileset>
216 + </batchtest>
217 + </junit>
218 + </target>
219 +
220 + <!-- ====================================================================== -->
221 + <!-- Javadoc target -->
222 + <!-- ====================================================================== -->
223 +
224 + <target name="javadoc" description="Generates the Javadoc of the application">
225 + <javadoc sourcepath="${maven.build.srcDir.0}"
226 + packagenames="*"
227 + destdir="${maven.reporting.outputDirectory}/apidocs"
228 + access="protected"
229 + old="false"
230 + verbose="false"
231 + encoding="UTF-8"
232 + version="true"
233 + use="true"
234 + author="true"
235 + splitindex="false"
236 + nodeprecated="false"
237 + nodeprecatedlist="false"
238 + notree="false"
239 + noindex="false"
240 + nohelp="false"
241 + nonavbar="false"
242 + serialwarn="false"
243 + charset="ISO-8859-1"
244 + docencoding="UTF-8"
245 + source="1.6"
246 + linksource="true"
247 + breakiterator="false">
248 + <link href="http://docs.oracle.com/javase/7/docs/api/"/>
249 + <link href="http://docs.oracle.com/javaee/6/api/"/>
250 + </javadoc>
251 + </target>
252 +
253 + <!-- ====================================================================== -->
254 + <!-- Package target -->
255 + <!-- ====================================================================== -->
256 +
257 + <!--
258 + <target name="package" depends="compile" description="Package the application">
259 + <jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar"
260 + compress="true"
261 + index="false"
262 + manifest="/var/tmp/portage/dev-java/commons-codec-1.11/work/commons-codec-1.11-src/target/osgi/MANIFEST.MF"
263 + basedir="${maven.build.outputDir}"
264 + excludes="**/package.html">
265 + <manifest>
266 + <attribute name="Main-Class"/>
267 + </manifest>
268 + </jar>
269 + </target>
270 + -->
271 +
272 + <target name="package" depends="compile" description="Package the application">
273 + <jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar"
274 + compress="true"
275 + index="false"
276 + basedir="${maven.build.outputDir}"
277 + excludes="**/package.html">
278 + </jar>
279 + </target>
280 +
281 + <!-- ====================================================================== -->
282 + <!-- A dummy target for the package named after the type it creates -->
283 + <!-- ====================================================================== -->
284 +
285 + <target name="jar" depends="package" description="Builds the jar for the application"/>
286 +
287 + <!-- ====================================================================== -->
288 + <!-- Download dependencies target -->
289 + <!-- ====================================================================== -->
290 +
291 +</project>