summaryrefslogtreecommitdiff
path: root/dev-java/jdbc-mysql
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/jdbc-mysql
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/jdbc-mysql')
-rw-r--r--dev-java/jdbc-mysql/Manifest8
-rw-r--r--dev-java/jdbc-mysql/files/5.0.5-dist-target-depends.patch11
-rw-r--r--dev-java/jdbc-mysql/files/5.0.5-remove-jboss-dependency-from-tests.patch39
-rw-r--r--dev-java/jdbc-mysql/files/5.1.14-java6.patch34
-rw-r--r--dev-java/jdbc-mysql/jdbc-mysql-5.1.26.ebuild83
-rw-r--r--dev-java/jdbc-mysql/metadata.xml12
6 files changed, 187 insertions, 0 deletions
diff --git a/dev-java/jdbc-mysql/Manifest b/dev-java/jdbc-mysql/Manifest
new file mode 100644
index 000000000000..42690570f253
--- /dev/null
+++ b/dev-java/jdbc-mysql/Manifest
@@ -0,0 +1,8 @@
+AUX 5.0.5-dist-target-depends.patch 380 SHA256 42d4e0a8ac2217045116403bc34642aed78eb99210aa259a8dfd8663a2e5cc84 SHA512 407ba02b1e2b3a514a9e270356a15f97eaa19197117a9f2752ee6b78fba0dd7cab150f7eaac02f8d6cb9d3bfe6d0edd3e68f38457310d69123c97b9231d621c4 WHIRLPOOL 5693bd335c9e713920260e8b5d0f53f7e518a7ecb70088b44770337820fb197fb87473c97871d4d7732177a00b1da87fbe77dc27c875eab8e989e3f5843890d9
+AUX 5.0.5-remove-jboss-dependency-from-tests.patch 1541 SHA256 8c7cfb3116baafda7c708c8cad05b63e15ea5027ce7804b268f8b245e1e1a199 SHA512 43e91aa4ff599cb958cb6c098cbc1a28511b2fe12ea44dcee20fffe0efbfd1ce31bb29dfc9330a30d99174ed80abbb8512a0cdf3b4155fbf3d78ef776a5ebcb5 WHIRLPOOL a359149459f7b5106e3d366e77c68fd08c9a90d63e2b38725d7b0f08a391326fdf743b998453ed52c0e6b5b134c0aae15c075da371e65c1a68e0001a1a580a40
+AUX 5.1.14-java6.patch 1301 SHA256 ec8a6063e3bd9c6e37dc5be646b47dfe86c0bc819411d280b19645951f7b3376 SHA512 1b630781201478dee6da3d2322755ff87b2e2c9c1cd49a127bbcd56a0cc25e7bed06ed5f0758709c2e120fc85273755ee28c7ba21ac7b75e97ac6043216413a1 WHIRLPOOL 4f54f083bf388320eceeb5eaae0358b938804589aa20571f4741e3eaea59cc9f63000848616828603e6b234321d73f72627c09b8cdb8f315c751239a9d06957b
+DIST mysql-connector-java-5.1.26.tar.gz 3724076 SHA256 fade4caa398c41f537d9b7bcaf83aabaa1eab1ef23c81de49979b5b04ba395bd SHA512 93b882f5262dc991aa885ed9ae7fead02b9d28431022c86c6724272b508e78eee3df7310e9964e60f68953ed56f4fcdf9159a90f463eb39aea65af2453371879 WHIRLPOOL 9ecf39094c1a07f5658a24574f7852aadf51c024495572bedf38ee74f83f6380159e60ce8b6a415480d8e9ec923174a0f6ba2209cdcb96167bcf8ed4e1e3a9b9
+EBUILD jdbc-mysql-5.1.26.ebuild 1883 SHA256 ecbe23a16f8e39a2c1592e076730192396f1e033dae307fe326b6850bb655fc0 SHA512 0e3f1135e8f19888853a76f5fab00c2fca122707affabbf2b08569b71aa03bdf0a15b25288c5d550a8c0b6b13cff11b1c64bccf1f173a3eeb53bc28b1a053638 WHIRLPOOL 6b63e52ebdd430d55ae789d11b68526f836b8b3a5a1fcd8882775ba9d1a495a6230545fd35523d5173a691f596ba09631a1c973027c0282c2b9e380f944ab5be
+MISC ChangeLog 3193 SHA256 25dc72ddc9477a80aec0cdfeaeeb59e61d57a065e9aa25bbfe51a19815d419bc SHA512 e5352277db53edd17183eaeb8506e49ef89c4441320a913d7421e1b636664da22dd84f16dbb9d0ce46458e3eb5af6b6e925b7d364242df2aef56e3f0374a6c40 WHIRLPOOL c4a59e58ec1dfa337b34a493facd68a31e38399cc259ee285942817a2d4d9d989d81d01090a9bbab1ca5f3d9929ca1860f8c53f1b584d59d436915761299738a
+MISC ChangeLog-2015 16107 SHA256 294751cf9f8205d80ad7a2a5fc42dbab5377ab2cb3f4761f0e7eef842aa6a348 SHA512 fb7b857cefb77d88754b7e941847c6be3803414869aa66430268af2055e0e0426a0d9e8d239a12ba14ad24660ef34aa50abcb6c5f5e3005aa69702f38fd372bb WHIRLPOOL 131ac144cf027ed45a079712f4a53137ba7af1720956a3aeea3d000013ad1f2e3946bbe77c7e4af2ffca43ec20c3e2355d360c6befb1662117fbf96b2a1d0b72
+MISC metadata.xml 358 SHA256 528e6cc273eed7d566cfa7c791d9a71faa2913ac969fbb1b954fcc768ce52c93 SHA512 4db9ea2f30ecc92b4b97e5159d4338b73c59e3f8640336764d2766a1ca33760b7c0fa6caaac90125102555a5128fff3b2d95e20d92df22e705623f0e2b7914e9 WHIRLPOOL 3ca1866d3fbd6b301e6df54de9c95961f56377dd4fc853b9dffe4c9bad38a686d1fd4b7bf5f0ec66110fcf3775ddb75c14ad44fde5fd6d20b5092f33aebe8f07
diff --git a/dev-java/jdbc-mysql/files/5.0.5-dist-target-depends.patch b/dev-java/jdbc-mysql/files/5.0.5-dist-target-depends.patch
new file mode 100644
index 000000000000..28ffc7ad0dab
--- /dev/null
+++ b/dev-java/jdbc-mysql/files/5.0.5-dist-target-depends.patch
@@ -0,0 +1,11 @@
+--- build.xml.orig 2007-05-07 19:59:49.000000000 +0300
++++ build.xml 2007-05-07 20:01:21.000000000 +0300
+@@ -291,7 +291,7 @@
+ </if>
+ </target>
+
+- <target name="dist" depends="init, compile">
++ <target name="dist" depends="init, compile-driver,compile.integration">
+
+ <delete file="${buildDir}/${fullProdName}-bin.jar" />
+ <delete file="${distDir}/${fullProdName}.jar" />
diff --git a/dev-java/jdbc-mysql/files/5.0.5-remove-jboss-dependency-from-tests.patch b/dev-java/jdbc-mysql/files/5.0.5-remove-jboss-dependency-from-tests.patch
new file mode 100644
index 000000000000..394830701fee
--- /dev/null
+++ b/dev-java/jdbc-mysql/files/5.0.5-remove-jboss-dependency-from-tests.patch
@@ -0,0 +1,39 @@
+--- mysql-connector-java-5.0.5/src/testsuite/regression/DataSourceRegressionTest.java 2007-03-01 17:48:47.000000000 +0100
++++ mysql-connector-java-5.0.5-no-jboss-test/src/testsuite/regression/DataSourceRegressionTest.java 2007-04-12 09:53:05.000000000 +0200
+@@ -52,7 +52,6 @@
+ import testsuite.simple.DataSourceTest;
+
+ import com.mysql.jdbc.NonRegisteringDriver;
+-import com.mysql.jdbc.integration.jboss.MysqlValidConnectionChecker;
+ import com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource;
+ import com.mysql.jdbc.jdbc2.optional.MysqlDataSource;
+ import com.mysql.jdbc.jdbc2.optional.MysqlDataSourceFactory;
+@@ -315,28 +314,6 @@
+ assertEquals(testIntFlag, thawedDs.getBlobSendChunkSize());
+ }
+
+- /**
+- * Tests fix for BUG#20242 - MysqlValidConnectionChecker for JBoss doesn't
+- * work with MySQLXADataSources.
+- *
+- * @throws Exception if the test fails.
+- */
+- public void testBug20242() throws Exception {
+- if (versionMeetsMinimum(5, 0)) {
+- try {
+- Class.forName("org.jboss.resource.adapter.jdbc.ValidConnectionChecker");
+- } catch (Exception ex) {
+- return; // class not available for testing
+- }
+-
+- MysqlXADataSource xaDs = new MysqlXADataSource();
+- xaDs.setUrl(dbUrl);
+-
+- MysqlValidConnectionChecker checker = new MysqlValidConnectionChecker();
+- assertNull(checker.isValidConnection(xaDs.getXAConnection().getConnection()));
+- }
+- }
+-
+ private void bindDataSource(String name, DataSource ds) throws Exception {
+ this.ctx.bind(this.tempDir.getAbsolutePath() + name, ds);
+ }
diff --git a/dev-java/jdbc-mysql/files/5.1.14-java6.patch b/dev-java/jdbc-mysql/files/5.1.14-java6.patch
new file mode 100644
index 000000000000..49343706ad80
--- /dev/null
+++ b/dev-java/jdbc-mysql/files/5.1.14-java6.patch
@@ -0,0 +1,34 @@
+--- build.xml.orig 2010-01-20 19:45:30.000000000 +0100
++++ build.xml 2010-02-13 00:34:30.000000000 +0100
+@@ -131,7 +131,7 @@
+ </if>
+ </target>
+
+- <target name="init" depends="-compiler-check, -init-copy, -init-no-crypto">
++ <target name="init" depends="-init-copy, -init-no-crypto">
+ <!-- We need the following for source distributions as there we
+ can't dynamically alter the classpath, and not having this
+ directory present causes the build to fail -->
+@@ -746,7 +746,8 @@
+ <javac sourcepath="" srcdir="${buildDir}/${fullProdName}"
+ destdir="${compiler.output}"
+ deprecation="off"
+- debug="${debug.enable}">
++ debug="${debug.enable}"
++ bootclasspath="${gentoo.bootclasspath}">
+ <include name="**/*.java" />
+ <exclude name="testsuite/**" />
+ <exclude name="com/mysql/jdbc/integration/**" />
+@@ -763,11 +764,7 @@
+ <javac destdir="${compiler.output}"
+ deprecation="off"
+ debug="${debug.enable}"
+- fork="yes"
+- executable="${com.mysql.jdbc.java6.javac}"
+- compiler="modern"
+- sourcepath="" srcdir="${buildDir}/${fullProdName}"
+- bootclasspath="${com.mysql.jdbc.java6.rtjar}">
++ sourcepath="" srcdir="${buildDir}/${fullProdName}">
+ <include name="**/JDBC4*.java" />
+ <include name="com/mysql/jdbc/exceptions/jdbc4/*" />
+
diff --git a/dev-java/jdbc-mysql/jdbc-mysql-5.1.26.ebuild b/dev-java/jdbc-mysql/jdbc-mysql-5.1.26.ebuild
new file mode 100644
index 000000000000..dde4a01e1dc4
--- /dev/null
+++ b/dev-java/jdbc-mysql/jdbc-mysql-5.1.26.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+JAVA_PKG_IUSE="source"
+JAVA_PKG_WANT_BOOTCLASSPATH="1.5"
+WANT_ANT_TASKS="ant-contrib"
+
+inherit eutils java-pkg-2 java-ant-2
+
+MY_PN="mysql-connector-java"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="MySQL JDBC driver"
+HOMEPAGE="http://www.mysql.com/products/connector/j/"
+SRC_URI="https://dev.mysql.com/get/Downloads/Connector-J/${MY_P}.tar.gz"
+
+LICENSE="GPL-2-with-MySQL-FLOSS-exception"
+SLOT="0"
+KEYWORDS="amd64 ppc64 x86"
+
+IUSE="c3p0 log4j"
+
+COMMON_DEP="
+ dev-java/slf4j-api:0
+ log4j? ( dev-java/log4j:0 )
+ c3p0? ( dev-java/c3p0:0 )"
+
+RDEPEND=">=virtual/jre-1.6
+ ${COMMON_DEP}"
+
+DEPEND=">=virtual/jdk-1.6
+ ${COMMON_DEP}"
+
+S="${WORKDIR}/${MY_P}"
+
+java_prepare() {
+ epatch "${FILESDIR}/5.0.5-remove-jboss-dependency-from-tests.patch"
+
+ # http://bugs.mysql.com/bug.php?id=28286
+ epatch "${FILESDIR}/5.0.5-dist-target-depends.patch"
+
+ # Use java6 for everything except jdbc3 - #283848
+ epatch "${FILESDIR}/5.1.14-java6.patch"
+
+ find . -name '*.jar' -print -delete || die
+
+ cd src/lib
+ java-pkg_jar-from slf4j-api
+ use log4j && java-pkg_jar-from log4j
+ use c3p0 && java-pkg_jar-from c3p0
+}
+
+JAVA_ANT_IGNORE_SYSTEM_CLASSES="true"
+EANT_BUILD_TARGET="dist"
+
+src_compile() {
+ # Cannot use rewrite-bootclasspath because of the jdbc4 part.
+ java-pkg-2_src_compile \
+ -Dgentoo.bootclasspath="$(java-pkg_get-bootclasspath 1.5)"
+}
+
+# Tests need a mysql DB to exist.
+RESTRICT="test"
+
+src_test() {
+ cd src/lib
+ java-pkg_jar-from junit
+
+ cd "${S}"
+ ANT_TASKS="ant-junit" eant test -Dcom.mysql.jdbc.noCleanBetweenCompiles=true
+}
+
+src_install() {
+ # Skip bytecode check because we want two versions there
+ JAVA_PKG_STRICT= java-pkg_newjar build/${MY_P}-SNAPSHOT/${MY_P}-SNAPSHOT-bin.jar ${PN}.jar
+
+ dodoc README CHANGES
+ dohtml docs/*.html
+
+ use source && java-pkg_dosrc src/com src/org
+}
diff --git a/dev-java/jdbc-mysql/metadata.xml b/dev-java/jdbc-mysql/metadata.xml
new file mode 100644
index 000000000000..a285c6ded942
--- /dev/null
+++ b/dev-java/jdbc-mysql/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+ </maintainer>
+ <use>
+ <flag name="c3p0">Enable c3p0 support</flag>
+ <flag name="log4j">Enable log4 support</flag>
+ </use>
+</pkgmetadata>