1 |
commit: dcb3fa63cabfdd3f4ac5079d818a91e141088717 |
2 |
Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 6 07:33:20 2015 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 6 09:06:13 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcb3fa63 |
7 |
|
8 |
dev-java/commons-dbutils: Version bump. |
9 |
|
10 |
Package-Manager: portage-2.2.18 |
11 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
12 |
|
13 |
dev-java/commons-dbutils/Manifest | 1 + |
14 |
.../commons-dbutils/commons-dbutils-1.6.ebuild | 53 +++++ |
15 |
.../files/commons-dbutils-1.6-build.xml | 263 +++++++++++++++++++++ |
16 |
3 files changed, 317 insertions(+) |
17 |
|
18 |
diff --git a/dev-java/commons-dbutils/Manifest b/dev-java/commons-dbutils/Manifest |
19 |
index 4be4cdd..9396c80 100644 |
20 |
--- a/dev-java/commons-dbutils/Manifest |
21 |
+++ b/dev-java/commons-dbutils/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST commons-dbutils-1.1-src.tar.gz 60062 SHA256 645f79936bb90c5ed02fd4d1ddbc15b23e22a468ab0df22771f2b78fe8d49a59 SHA512 03859d0ddc65b1f0254f71e9de371f131a81dc839de6bea938a0547b63759d18a9e957f44ac887b7ae9ea85ee3aeea90ffd8f03069c670ec7b700fe8b6e45fe2 WHIRLPOOL b4b3e670b30101657c0d57fcf33993cdca89838135f147b54c63ac4bbced6fe1ed1218af36e95bec60e856c73a9d47fbfc1eecdbbd55dd7e476f6883fd94f3fd |
24 |
+DIST commons-dbutils-1.6-src.tar.gz 90708 SHA256 c7cb1bd7e0f9a6d509c98bb60f9941503473d6fe0fbe144736fb1819096c4524 SHA512 05aa5fb448d949ac4d5d34f1219539e57cfb550fa423af0691cb35002984036b0de62b8f618199bd2f562a441867c5b7138e9204afc36bd6d0fa2c4c5e9cd2c6 WHIRLPOOL 012a8cace08c96c136b9e9a05ec34d173d544aecad465908ad823a47ec535cfa91c609e5280e9e05967b3d863b13e999ad2c9a826a100e3faa3333869c26dd97 |
25 |
|
26 |
diff --git a/dev-java/commons-dbutils/commons-dbutils-1.6.ebuild b/dev-java/commons-dbutils/commons-dbutils-1.6.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..b76f51a |
29 |
--- /dev/null |
30 |
+++ b/dev-java/commons-dbutils/commons-dbutils-1.6.ebuild |
31 |
@@ -0,0 +1,53 @@ |
32 |
+# Copyright 1999-2015 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+EAPI=5 |
36 |
+ |
37 |
+JAVA_PKG_IUSE="doc source test" |
38 |
+ |
39 |
+inherit java-pkg-2 java-ant-2 |
40 |
+ |
41 |
+DESCRIPTION="A small set of classes designed to make working with JDBC easier" |
42 |
+HOMEPAGE="http://commons.apache.org/dbutils/" |
43 |
+SRC_URI="mirror://apache/commons/dbutils/source/${P}-src.tar.gz" |
44 |
+LICENSE="Apache-2.0" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~x86" |
47 |
+IUSE="" |
48 |
+ |
49 |
+DEPEND=">=virtual/jdk-1.6 |
50 |
+ test? ( |
51 |
+ dev-java/mockito:0 |
52 |
+ dev-java/ant-junit:0 |
53 |
+ dev-java/hamcrest-core:1.3 |
54 |
+ )" |
55 |
+RDEPEND=">=virtual/jre-1.6" |
56 |
+ |
57 |
+S="${WORKDIR}/${P}-src" |
58 |
+ |
59 |
+JAVA_ANT_REWRITE_CLASSPATH="yes" |
60 |
+ |
61 |
+EANT_TEST_TARGET="test" |
62 |
+EANT_TEST_GENTOO_CLASSPATH=" |
63 |
+ mockito |
64 |
+ hamcrest-core-1.3 |
65 |
+" |
66 |
+ |
67 |
+# Uses a bunch of deprecated methods. |
68 |
+JAVA_RM_FILES=( |
69 |
+ src/test/java/org/apache/commons/dbutils/handlers/ArrayHandlerTest.java |
70 |
+) |
71 |
+ |
72 |
+java_prepare() { |
73 |
+ cp "${FILESDIR}"/"${P}-build.xml" build.xml || die |
74 |
+} |
75 |
+ |
76 |
+src_test() { |
77 |
+ java-pkg-2_src_test |
78 |
+} |
79 |
+ |
80 |
+src_install() { |
81 |
+ java-pkg_newjar target/${P}.jar |
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-dbutils/files/commons-dbutils-1.6-build.xml b/dev-java/commons-dbutils/files/commons-dbutils-1.6-build.xml |
87 |
new file mode 100644 |
88 |
index 0000000..725d4ea |
89 |
--- /dev/null |
90 |
+++ b/dev-java/commons-dbutils/files/commons-dbutils-1.6-build.xml |
91 |
@@ -0,0 +1,263 @@ |
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 10/5/15 8:20 PM --> |
105 |
+<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ --> |
106 |
+<!-- --> |
107 |
+<!-- ====================================================================== --> |
108 |
+ |
109 |
+<project name="commons-dbutils-from-maven" default="package" basedir="."> |
110 |
+ |
111 |
+ <!-- ====================================================================== --> |
112 |
+ <!-- Build environment properties --> |
113 |
+ <!-- ====================================================================== --> |
114 |
+ |
115 |
+ <property file="${user.home}/.m2/maven.properties"/> |
116 |
+ <property file="maven-build.properties"/> |
117 |
+ |
118 |
+ <property name="maven.build.finalName" value="commons-dbutils-1.6"/> |
119 |
+ <property name="maven.build.dir" value="target"/> |
120 |
+ <property name="maven.build.outputDir" value="${maven.build.dir}/classes"/> |
121 |
+ <property name="maven.build.srcDir.0" value="src/main/java"/> |
122 |
+ <property name="maven.build.resourceDir.0" value="src/main/resources"/> |
123 |
+ <property name="maven.build.resourceDir.1" value="."/> |
124 |
+ <property name="maven.build.testOutputDir" value="${maven.build.dir}/test-classes"/> |
125 |
+ <property name="maven.build.testDir.0" value="src/test/java"/> |
126 |
+ <property name="maven.build.testResourceDir.0" value="src/test/resources"/> |
127 |
+ <property name="maven.build.testResourceDir.1" value="."/> |
128 |
+ <property name="maven.test.reports" value="${maven.build.dir}/test-reports"/> |
129 |
+ <property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site"/> |
130 |
+ |
131 |
+ <property name="maven.repo.local" value="${user.home}/.m2/repository"/> |
132 |
+ <property name="maven.settings.offline" value="false"/> |
133 |
+ <property name="maven.settings.interactiveMode" value="true"/> |
134 |
+ |
135 |
+ <!-- ====================================================================== --> |
136 |
+ <!-- Defining classpaths --> |
137 |
+ <!-- ====================================================================== --> |
138 |
+ |
139 |
+ <path id="build.classpath"/> |
140 |
+ <path id="build.test.classpath"> |
141 |
+ <pathelement location="${maven.repo.local}/junit/junit/4.11/junit-4.11.jar"/> |
142 |
+ <pathelement location="${maven.repo.local}/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar"/> |
143 |
+ <pathelement location="${maven.repo.local}/org/mockito/mockito-core/1.9.5/mockito-core-1.9.5.jar"/> |
144 |
+ <pathelement location="${maven.repo.local}/org/objenesis/objenesis/1.0/objenesis-1.0.jar"/> |
145 |
+ <pathelement location="${maven.repo.local}/org/hamcrest/hamcrest-all/1.3/hamcrest-all-1.3.jar"/> |
146 |
+ </path> |
147 |
+ |
148 |
+ <!-- ====================================================================== --> |
149 |
+ <!-- Cleaning up target --> |
150 |
+ <!-- ====================================================================== --> |
151 |
+ |
152 |
+ <target name="clean" description="Clean the output directory"> |
153 |
+ <delete dir="${maven.build.dir}"/> |
154 |
+ </target> |
155 |
+ |
156 |
+ <!-- ====================================================================== --> |
157 |
+ <!-- Compilation target --> |
158 |
+ <!-- ====================================================================== --> |
159 |
+ |
160 |
+ <target name="compile" description="Compile the code"> |
161 |
+ <mkdir dir="${maven.build.outputDir}"/> |
162 |
+ <javac destdir="${maven.build.outputDir}" |
163 |
+ encoding="iso-8859-1" |
164 |
+ nowarn="false" |
165 |
+ debug="true" |
166 |
+ optimize="false" |
167 |
+ deprecation="true" |
168 |
+ target="1.6" |
169 |
+ verbose="false" |
170 |
+ fork="false" |
171 |
+ source="1.6"> |
172 |
+ <src> |
173 |
+ <pathelement location="${maven.build.srcDir.0}"/> |
174 |
+ </src> |
175 |
+ <classpath refid="build.classpath"/> |
176 |
+ </javac> |
177 |
+ <mkdir dir="${maven.build.outputDir}/META-INF"/> |
178 |
+ <copy todir="${maven.build.outputDir}/META-INF"> |
179 |
+ <fileset dir="${maven.build.resourceDir.1}"> |
180 |
+ <include name="NOTICE.txt"/> |
181 |
+ <include name="LICENSE.txt"/> |
182 |
+ </fileset> |
183 |
+ </copy> |
184 |
+ </target> |
185 |
+ |
186 |
+ <!-- ====================================================================== --> |
187 |
+ <!-- Test-compilation target --> |
188 |
+ <!-- ====================================================================== --> |
189 |
+ |
190 |
+ <target name="compile-tests" |
191 |
+ depends="compile" |
192 |
+ description="Compile the test code" |
193 |
+ unless="maven.test.skip"> |
194 |
+ <mkdir dir="${maven.build.testOutputDir}"/> |
195 |
+ <javac destdir="${maven.build.testOutputDir}" |
196 |
+ encoding="iso-8859-1" |
197 |
+ nowarn="false" |
198 |
+ debug="true" |
199 |
+ optimize="false" |
200 |
+ deprecation="true" |
201 |
+ target="1.6" |
202 |
+ verbose="false" |
203 |
+ fork="false" |
204 |
+ source="1.6"> |
205 |
+ <src> |
206 |
+ <pathelement location="${maven.build.testDir.0}"/> |
207 |
+ </src> |
208 |
+ <classpath> |
209 |
+ <path refid="build.test.classpath"/> |
210 |
+ <pathelement location="${maven.build.outputDir}"/> |
211 |
+ </classpath> |
212 |
+ </javac> |
213 |
+ <copy todir="${maven.build.testOutputDir}"> |
214 |
+ <fileset dir="${maven.build.testResourceDir.0}"/> |
215 |
+ </copy> |
216 |
+ <mkdir dir="${maven.build.testOutputDir}/META-INF"/> |
217 |
+ <copy todir="${maven.build.testOutputDir}/META-INF"> |
218 |
+ <fileset dir="${maven.build.testResourceDir.1}"> |
219 |
+ <include name="NOTICE.txt"/> |
220 |
+ <include name="LICENSE.txt"/> |
221 |
+ </fileset> |
222 |
+ </copy> |
223 |
+ </target> |
224 |
+ |
225 |
+ <!-- ====================================================================== --> |
226 |
+ <!-- Run all tests --> |
227 |
+ <!-- ====================================================================== --> |
228 |
+ |
229 |
+ <target name="test" |
230 |
+ depends="compile-tests, junit-missing" |
231 |
+ unless="junit.skipped" |
232 |
+ description="Run the test cases"> |
233 |
+ <mkdir dir="${maven.test.reports}"/> |
234 |
+ <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir="."> |
235 |
+ <sysproperty key="basedir" value="."/> |
236 |
+ <formatter type="xml"/> |
237 |
+ <formatter type="plain" usefile="false"/> |
238 |
+ <classpath> |
239 |
+ <path refid="build.test.classpath"/> |
240 |
+ <pathelement location="${maven.build.outputDir}"/> |
241 |
+ <pathelement location="${maven.build.testOutputDir}"/> |
242 |
+ </classpath> |
243 |
+ <batchtest todir="${maven.test.reports}" unless="test"> |
244 |
+ <fileset dir="${maven.build.testDir.0}"> |
245 |
+ <include name="**/Test*.java"/> |
246 |
+ <include name="**/*Test.java"/> |
247 |
+ <include name="**/*TestCase.java"/> |
248 |
+ <exclude name="**/TestBean.java"/> |
249 |
+ <exclude name="**/BaseTestCase.java"/> |
250 |
+ </fileset> |
251 |
+ </batchtest> |
252 |
+ <batchtest todir="${maven.test.reports}" if="test"> |
253 |
+ <fileset dir="${maven.build.testDir.0}"> |
254 |
+ <include name="**/${test}.java"/> |
255 |
+ <exclude name="**/BaseTestCase.java"/> |
256 |
+ </fileset> |
257 |
+ </batchtest> |
258 |
+ </junit> |
259 |
+ </target> |
260 |
+ |
261 |
+ <target name="test-junit-present"> |
262 |
+ <available classname="junit.framework.Test" property="junit.present" classpathref="build.test.classpath"/> |
263 |
+ </target> |
264 |
+ |
265 |
+ <target name="test-junit-status" |
266 |
+ depends="test-junit-present"> |
267 |
+ <condition property="junit.missing"> |
268 |
+ <and> |
269 |
+ <isfalse value="${junit.present}"/> |
270 |
+ <isfalse value="${maven.test.skip}"/> |
271 |
+ </and> |
272 |
+ </condition> |
273 |
+ <condition property="junit.skipped"> |
274 |
+ <or> |
275 |
+ <isfalse value="${junit.present}"/> |
276 |
+ <istrue value="${maven.test.skip}"/> |
277 |
+ </or> |
278 |
+ </condition> |
279 |
+ </target> |
280 |
+ |
281 |
+ <target name="junit-missing" |
282 |
+ depends="test-junit-status" |
283 |
+ if="junit.missing"> |
284 |
+ <echo>=================================== WARNING ===================================</echo> |
285 |
+ <echo> JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed.</echo> |
286 |
+ <echo>===============================================================================</echo> |
287 |
+ </target> |
288 |
+ |
289 |
+ <!-- ====================================================================== --> |
290 |
+ <!-- Javadoc target --> |
291 |
+ <!-- ====================================================================== --> |
292 |
+ |
293 |
+ <target name="javadoc" description="Generates the Javadoc of the application"> |
294 |
+ <javadoc sourcepath="${maven.build.srcDir.0}" |
295 |
+ packagenames="*" |
296 |
+ destdir="${maven.reporting.outputDirectory}/apidocs" |
297 |
+ access="protected" |
298 |
+ old="false" |
299 |
+ verbose="false" |
300 |
+ encoding="iso-8859-1" |
301 |
+ version="true" |
302 |
+ use="true" |
303 |
+ author="true" |
304 |
+ splitindex="false" |
305 |
+ nodeprecated="false" |
306 |
+ nodeprecatedlist="false" |
307 |
+ notree="false" |
308 |
+ noindex="false" |
309 |
+ nohelp="false" |
310 |
+ nonavbar="false" |
311 |
+ serialwarn="false" |
312 |
+ charset="ISO-8859-1" |
313 |
+ docencoding="iso-8859-1" |
314 |
+ source="1.6" |
315 |
+ linksource="true" |
316 |
+ breakiterator="false"> |
317 |
+ <link href="http://docs.oracle.com/javase/6/docs/api/"/> |
318 |
+ <link href="http://docs.oracle.com/javaee/6/api/"/> |
319 |
+ </javadoc> |
320 |
+ </target> |
321 |
+ |
322 |
+ <!-- ====================================================================== --> |
323 |
+ <!-- Package target --> |
324 |
+ <!-- ====================================================================== --> |
325 |
+ |
326 |
+ <target name="package" depends="compile,test" description="Package the application"> |
327 |
+ <jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar" |
328 |
+ compress="true" |
329 |
+ index="false" |
330 |
+ basedir="${maven.build.outputDir}" |
331 |
+ excludes="**/package.html"> |
332 |
+ <manifest> |
333 |
+ <attribute name="Main-Class" value="Main"/> |
334 |
+ </manifest> |
335 |
+ </jar> |
336 |
+ </target> |
337 |
+ |
338 |
+ <!-- ====================================================================== --> |
339 |
+ <!-- A dummy target for the package named after the type it creates --> |
340 |
+ <!-- ====================================================================== --> |
341 |
+ |
342 |
+ <target name="jar" depends="package" description="Builds the jar for the application"/> |
343 |
+ |
344 |
+ <!-- ====================================================================== --> |
345 |
+ <!-- Download dependencies target --> |
346 |
+ <!-- ====================================================================== --> |
347 |
+ |
348 |
+ <target name="test-offline"> |
349 |
+ <condition property="maven.mode.offline"> |
350 |
+ <equals arg1="${maven.settings.offline}" arg2="true"/> |
351 |
+ </condition> |
352 |
+ </target> |
353 |
+ |
354 |
+</project> |