Gentoo Archives: gentoo-commits

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