Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@×××××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/mysql:master commit in: dev-java/mariadb-java-client/files/, dev-java/mariadb-java-client/
Date: Tue, 29 Apr 2014 17:49:24
Message-Id: 1398793749.c54a922f9287333c7153e927b0605bb2f83a45b8.grknight.pub@gentoo
1 commit: c54a922f9287333c7153e927b0605bb2f83a45b8
2 Author: Brian Evans <grknight <AT> tuffmail <DOT> com>
3 AuthorDate: Tue Apr 29 17:49:09 2014 +0000
4 Commit: Brian Evans <grknight <AT> lavabit <DOT> com>
5 CommitDate: Tue Apr 29 17:49:09 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mysql.git;a=commit;h=c54a922f
7
8 [mariadb-java-client] Version bump, remove old.
9
10 Signed-off-by: Brian Evans <grknight <AT> tuffmail.com>
11
12 ---
13 dev-java/mariadb-java-client/Manifest | 3 +-
14 dev-java/mariadb-java-client/files/maven-build.xml | 250 ---------------------
15 .../mariadb-java-client-1.1.3.ebuild | 46 ----
16 ...1.4.ebuild => mariadb-java-client-1.1.7.ebuild} | 2 +-
17 .../mariadb-java-client-9999.ebuild | 2 +-
18 5 files changed, 3 insertions(+), 300 deletions(-)
19
20 diff --git a/dev-java/mariadb-java-client/Manifest b/dev-java/mariadb-java-client/Manifest
21 index e1bc387..ff507d7 100644
22 --- a/dev-java/mariadb-java-client/Manifest
23 +++ b/dev-java/mariadb-java-client/Manifest
24 @@ -1,2 +1 @@
25 -DIST mariadb-java-client-1.1.3.tar.gz 179751 SHA256 bb9927e3bacaa501e8a0a04ac1a93cccf43c64d4a4742d17b115b54869964076 SHA512 22ed23483b5ab741bfbd82825ce21cb55533c78fa8ea839effda2eca185f283b92a3b551a12761c3e00de6a0722e95c4ebd670462d553b33dbe9925541ae5b97 WHIRLPOOL 0896218d64c5e488322a745a7819c2f9c39d5b5ed677d013abae7270455caea0b4394d013d8ee17b8fb166679f1a3f89af6ff06e2a9d026f525df5088e813ffa
26 -DIST mariadb-java-client-1.1.4.tar.gz 184565 SHA256 6feec7634572577fed376a19927d05d5abea01aa81615451b259f4fec52d72cd SHA512 4be86df3949845f48741e98a5f1ef17d30229af15966f86e502890f01b05b518bbf0aad8814e50512554cbb318b1048dfa9ff3f5540c41111a60c0059e526236 WHIRLPOOL 4966ae823933d2aefbcb2e86a1302b11b635def426500033e256277fd91a6ade0bfffe995b023a84b4c8fd448c3a78df7c2ea64f8c8e298dfc7f12a16662a42c
27 +DIST mariadb-java-client-1.1.7.tar.gz 187189 SHA256 5d0901777eabb477d65d9e1e123a8ade921c0dba486d26626c58b817bef05e82 SHA512 68f1cac13c508daedb03bb433a91d57526bd427f44f1fc2604095af1d947271d8328a44e82f64e6d93f474b4d7d9749f01810f2faf0027862554168d3a314aaa WHIRLPOOL 36d4cbb073c08e703df19023f8b85089940cac8775c05fa41262b44948ac289d8c63014ef604b44642a74915406adaf3c3ccbaf4170fca60a58776004126647f
28
29 diff --git a/dev-java/mariadb-java-client/files/maven-build.xml b/dev-java/mariadb-java-client/files/maven-build.xml
30 deleted file mode 100644
31 index 3251eb1..0000000
32 --- a/dev-java/mariadb-java-client/files/maven-build.xml
33 +++ /dev/null
34 @@ -1,250 +0,0 @@
35 -<?xml version="1.0" encoding="UTF-8"?>
36 -
37 -<!-- ====================================================================== -->
38 -<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. -->
39 -<!-- ====================================================================== -->
40 -
41 -<!-- ====================================================================== -->
42 -<!-- ===================== - DO NOT EDIT THIS FILE! - ===================== -->
43 -<!-- ====================================================================== -->
44 -<!-- -->
45 -<!-- Any modifications will be overwritten. -->
46 -<!-- -->
47 -<!-- Generated by Maven Ant Plugin on 7/1/13 1:49 PM -->
48 -<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ -->
49 -<!-- -->
50 -<!-- ====================================================================== -->
51 -
52 -<project name="mariadb-java-client-from-maven" default="package" basedir=".">
53 -
54 - <!-- ====================================================================== -->
55 - <!-- Build environment properties -->
56 - <!-- ====================================================================== -->
57 -
58 - <property file="${user.home}/.m2/maven.properties"/>
59 - <property file="maven-build.properties"/>
60 -
61 - <property name="maven.build.finalName" value="mariadb-java-client"/>
62 - <property name="maven.build.dir" value="target"/>
63 - <property name="maven.build.outputDir" value="${maven.build.dir}/classes"/>
64 - <property name="maven.build.srcDir.0" value="src/main/java"/>
65 - <property name="maven.build.resourceDir.0" value="src/main/resources"/>
66 - <property name="maven.build.testOutputDir" value="${maven.build.dir}/test-classes"/>
67 - <property name="maven.build.testDir.0" value="src/test/java"/>
68 - <property name="maven.build.testResourceDir.0" value="src/test/resources"/>
69 - <property name="maven.test.reports" value="${maven.build.dir}/test-reports"/>
70 - <property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site"/>
71 -
72 - <property name="maven.repo.local" value="${user.home}/.m2/repository"/>
73 - <property name="maven.settings.offline" value="false"/>
74 - <property name="maven.settings.interactiveMode" value="true"/>
75 -
76 - <!-- ====================================================================== -->
77 - <!-- Defining classpaths -->
78 - <!-- ====================================================================== -->
79 -
80 - <path id="build.classpath"/>
81 - <path id="build.test.classpath">
82 - <pathelement location="${maven.repo.local}/junit/junit/4.6/junit-4.6.jar"/>
83 - </path>
84 -
85 - <!-- ====================================================================== -->
86 - <!-- Cleaning up target -->
87 - <!-- ====================================================================== -->
88 -
89 - <target name="clean" description="Clean the output directory">
90 - <delete dir="${maven.build.dir}"/>
91 - </target>
92 -
93 - <!-- ====================================================================== -->
94 - <!-- Compilation target -->
95 - <!-- ====================================================================== -->
96 -
97 - <target name="compile" depends="get-deps" description="Compile the code">
98 - <mkdir dir="${maven.build.outputDir}"/>
99 - <javac destdir="${maven.build.outputDir}"
100 - nowarn="false"
101 - debug="true"
102 - optimize="false"
103 - deprecation="true"
104 - target="1.6"
105 - verbose="false"
106 - fork="false"
107 - source="1.6">
108 - <src>
109 - <pathelement location="${maven.build.srcDir.0}"/>
110 - </src>
111 - <classpath refid="build.classpath"/>
112 - </javac>
113 - <copy todir="${maven.build.outputDir}">
114 - <fileset dir="${maven.build.resourceDir.0}"/>
115 - </copy>
116 - </target>
117 -
118 - <!-- ====================================================================== -->
119 - <!-- Test-compilation target -->
120 - <!-- ====================================================================== -->
121 -
122 - <target name="compile-tests"
123 - depends="compile"
124 - description="Compile the test code"
125 - unless="maven.test.skip">
126 - <mkdir dir="${maven.build.testOutputDir}"/>
127 - <javac destdir="${maven.build.testOutputDir}"
128 - nowarn="false"
129 - debug="true"
130 - optimize="false"
131 - deprecation="true"
132 - target="1.6"
133 - verbose="false"
134 - fork="false"
135 - source="1.6">
136 - <src>
137 - <pathelement location="${maven.build.testDir.0}"/>
138 - </src>
139 - <classpath>
140 - <path refid="build.test.classpath"/>
141 - <pathelement location="${maven.build.outputDir}"/>
142 - </classpath>
143 - </javac>
144 - <copy todir="${maven.build.testOutputDir}">
145 - <fileset dir="${maven.build.testResourceDir.0}"/>
146 - </copy>
147 - </target>
148 -
149 - <!-- ====================================================================== -->
150 - <!-- Run all tests -->
151 - <!-- ====================================================================== -->
152 -
153 - <target name="test"
154 - depends="compile-tests, junit-missing"
155 - unless="junit.skipped"
156 - description="Run the test cases">
157 - <mkdir dir="${maven.test.reports}"/>
158 - <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
159 - <sysproperty key="basedir" value="."/>
160 - <formatter type="xml"/>
161 - <formatter type="plain" usefile="false"/>
162 - <classpath>
163 - <path refid="build.test.classpath"/>
164 - <pathelement location="${maven.build.outputDir}"/>
165 - <pathelement location="${maven.build.testOutputDir}"/>
166 - </classpath>
167 - <batchtest todir="${maven.test.reports}" unless="test">
168 - <fileset dir="${maven.build.testDir.0}">
169 - <include name="**/Test*.java"/>
170 - <include name="**/*Test.java"/>
171 - <include name="**/*TestCase.java"/>
172 - <exclude name="**/*Abstract*Test.java"/>
173 - </fileset>
174 - </batchtest>
175 - <batchtest todir="${maven.test.reports}" if="test">
176 - <fileset dir="${maven.build.testDir.0}">
177 - <include name="**/${test}.java"/>
178 - <exclude name="**/*Abstract*Test.java"/>
179 - </fileset>
180 - </batchtest>
181 - </junit>
182 - </target>
183 -
184 - <target name="test-junit-present">
185 - <available classname="junit.framework.Test" property="junit.present"/>
186 - </target>
187 -
188 - <target name="test-junit-status"
189 - depends="test-junit-present">
190 - <condition property="junit.missing">
191 - <and>
192 - <isfalse value="${junit.present}"/>
193 - <isfalse value="${maven.test.skip}"/>
194 - </and>
195 - </condition>
196 - <condition property="junit.skipped">
197 - <or>
198 - <isfalse value="${junit.present}"/>
199 - <istrue value="${maven.test.skip}"/>
200 - </or>
201 - </condition>
202 - </target>
203 -
204 - <target name="junit-missing"
205 - depends="test-junit-status"
206 - if="junit.missing">
207 - <echo>=================================== WARNING ===================================</echo>
208 - <echo> JUnit is not present in your $ANT_HOME/lib directory. Tests not executed.</echo>
209 - <echo>===============================================================================</echo>
210 - </target>
211 -
212 - <!-- ====================================================================== -->
213 - <!-- Javadoc target -->
214 - <!-- ====================================================================== -->
215 -
216 - <target name="javadoc" description="Generates the Javadoc of the application">
217 - <javadoc sourcepath="${maven.build.srcDir.0}"
218 - packagenames="*"
219 - destdir="${maven.reporting.outputDirectory}/apidocs"
220 - access="protected"
221 - old="false"
222 - verbose="false"
223 - version="true"
224 - use="true"
225 - author="true"
226 - splitindex="false"
227 - nodeprecated="false"
228 - nodeprecatedlist="false"
229 - notree="false"
230 - noindex="false"
231 - nohelp="false"
232 - nonavbar="false"
233 - serialwarn="false"
234 - charset="ISO-8859-1"
235 - linksource="false"
236 - breakiterator="false"/>
237 - </target>
238 -
239 - <!-- ====================================================================== -->
240 - <!-- Package target -->
241 - <!-- ====================================================================== -->
242 -
243 - <target name="package" depends="compile,test" description="Package the application">
244 - <jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar"
245 - compress="true"
246 - index="false"
247 - manifest="src/main/resources/META-INF/MANIFEST.MF"
248 - basedir="${maven.build.outputDir}"
249 - excludes="**/package.html"/>
250 - </target>
251 -
252 - <!-- ====================================================================== -->
253 - <!-- A dummy target for the package named after the type it creates -->
254 - <!-- ====================================================================== -->
255 -
256 - <target name="jar" depends="package" description="Builds the jar for the application"/>
257 -
258 - <!-- ====================================================================== -->
259 - <!-- Download dependencies target -->
260 - <!-- ====================================================================== -->
261 -
262 - <target name="test-offline">
263 - <condition property="maven.mode.offline">
264 - <equals arg1="${maven.settings.offline}" arg2="true"/>
265 - </condition>
266 - </target>
267 -
268 - <target name="get-deps"
269 - depends="test-offline"
270 - description="Download all dependencies"
271 - unless="maven.mode.offline">
272 - <mkdir dir="${maven.repo.local}"/>
273 - <mkdir dir="${maven.repo.local}/junit/junit/4.6"/>
274 - <get src="https://oss.sonatype.org/content/repositories/snapshots/junit/junit/4.6/junit-4.6.jar"
275 - dest="${maven.repo.local}/junit/junit/4.6/junit-4.6.jar"
276 - usetimestamp="false"
277 - ignoreerrors="true"/>
278 - <get src="http://repo.maven.apache.org/maven2/junit/junit/4.6/junit-4.6.jar"
279 - dest="${maven.repo.local}/junit/junit/4.6/junit-4.6.jar"
280 - usetimestamp="false"
281 - ignoreerrors="true"/>
282 - </target>
283 -
284 -</project>
285
286 diff --git a/dev-java/mariadb-java-client/mariadb-java-client-1.1.3.ebuild b/dev-java/mariadb-java-client/mariadb-java-client-1.1.3.ebuild
287 deleted file mode 100644
288 index 7ce3bfc..0000000
289 --- a/dev-java/mariadb-java-client/mariadb-java-client-1.1.3.ebuild
290 +++ /dev/null
291 @@ -1,46 +0,0 @@
292 -# Copyright 1999-2013 Gentoo Foundation
293 -# Distributed under the terms of the GNU General Public License v2
294 -# $Header: $
295 -
296 -EAPI=5
297 -
298 -VCS_INHERIT=""
299 -MY_PN="client-java"
300 -
301 -if [[ "${PV}" == 9999 ]] ; then
302 - VCS_INHERIT="bzr"
303 - EBZR_REPO_URI="lp:${PN}"
304 -else
305 -SRC_URI="
306 - http://ftp.osuosl.org/pub/mariadb/${MY_PN}-${PV}/${P}.tar.gz
307 - http://mirrors.fe.up.pt/pub/mariadb/${MY_PN}-${PV}/${P}.tar.gz
308 - http://ftp-stud.hs-esslingen.de/pub/Mirrors/mariadb/${MY_PN}-${PV}/${P}.tar.gz
309 - "
310 -fi
311 -
312 -JAVA_PKG_IUSE="doc"
313 -
314 -inherit java-pkg-2 java-ant-2 eutils "${VCS_INHERIT}"
315 -
316 -DESCRIPTION="Client Library for Java is used to connect applications to MariaDB/MySQL databases"
317 -HOMEPAGE="http://mariadb.org/"
318 -LICENSE="LGPL-2.1"
319 -
320 -SLOT="0"
321 -KEYWORDS="~amd64 ~x86"
322 -IUSE="${IUSE}"
323 -
324 -# Tests require a server running on localhost port 3306
325 -RESTRICT="test"
326 -
327 -RDEPEND="${RDEPEND} >=virtual/jre-1.6"
328 -DEPEND="${DEPEND} >=virtual/jdk-1.6"
329 -
330 -src_prepare() {
331 - cp "${FILESDIR}/maven-build.xml" build.xml
332 - java-pkg-2_src_prepare
333 -}
334 -
335 -src_install() {
336 - java-pkg_dojar target/${PN}.jar
337 -}
338
339 diff --git a/dev-java/mariadb-java-client/mariadb-java-client-1.1.4.ebuild b/dev-java/mariadb-java-client/mariadb-java-client-1.1.7.ebuild
340 similarity index 96%
341 rename from dev-java/mariadb-java-client/mariadb-java-client-1.1.4.ebuild
342 rename to dev-java/mariadb-java-client/mariadb-java-client-1.1.7.ebuild
343 index f6b371f..72b6625 100644
344 --- a/dev-java/mariadb-java-client/mariadb-java-client-1.1.4.ebuild
345 +++ b/dev-java/mariadb-java-client/mariadb-java-client-1.1.7.ebuild
346 @@ -1,4 +1,4 @@
347 -# Copyright 1999-2013 Gentoo Foundation
348 +# Copyright 1999-2014 Gentoo Foundation
349 # Distributed under the terms of the GNU General Public License v2
350 # $Header: $
351
352
353 diff --git a/dev-java/mariadb-java-client/mariadb-java-client-9999.ebuild b/dev-java/mariadb-java-client/mariadb-java-client-9999.ebuild
354 index 46173b3..995c821 100644
355 --- a/dev-java/mariadb-java-client/mariadb-java-client-9999.ebuild
356 +++ b/dev-java/mariadb-java-client/mariadb-java-client-9999.ebuild
357 @@ -37,7 +37,7 @@ RDEPEND="${RDEPEND} >=virtual/jre-1.6"
358 DEPEND="${DEPEND} >=virtual/jdk-1.6"
359
360 src_prepare() {
361 - cp "${FILESDIR}/maven-build.xml" build.xml
362 + cp "${FILESDIR}/maven-build-1.1.4.xml" build.xml
363 java-pkg-2_src_prepare
364 }