summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2007-05-06 22:36:53 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2007-05-06 22:36:53 +0000
commit99bf0fe1353a6d0020a43393e36dc8f7645bf14e (patch)
treef26c683db610df1279c919f2e536a35e9c9701ed /dev-java/jdbc-mysql
parentBump version and fix PYTHONDOCS path. (diff)
downloadgentoo-2-99bf0fe1353a6d0020a43393e36dc8f7645bf14e.tar.gz
gentoo-2-99bf0fe1353a6d0020a43393e36dc8f7645bf14e.tar.bz2
gentoo-2-99bf0fe1353a6d0020a43393e36dc8f7645bf14e.zip
Drop jdbc2-stdext dependency because it's only needed with virtual/jdk-1.3 which we don't support any more.
(Portage version: 2.1.2.5)
Diffstat (limited to 'dev-java/jdbc-mysql')
-rw-r--r--dev-java/jdbc-mysql/ChangeLog9
-rw-r--r--dev-java/jdbc-mysql/files/digest-jdbc-mysql-3.1.13-r53
-rw-r--r--dev-java/jdbc-mysql/jdbc-mysql-3.1.13-r5.ebuild61
3 files changed, 72 insertions, 1 deletions
diff --git a/dev-java/jdbc-mysql/ChangeLog b/dev-java/jdbc-mysql/ChangeLog
index e449a6790f25..ba424d57d2c0 100644
--- a/dev-java/jdbc-mysql/ChangeLog
+++ b/dev-java/jdbc-mysql/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-java/jdbc-mysql
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jdbc-mysql/ChangeLog,v 1.40 2007/05/06 07:55:11 dertobi123 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jdbc-mysql/ChangeLog,v 1.41 2007/05/06 22:36:53 betelgeuse Exp $
+
+*jdbc-mysql-3.1.13-r5 (06 May 2007)
+
+ 06 May 2007; Petteri Räty <betelgeuse@gentoo.org>
+ +jdbc-mysql-3.1.13-r5.ebuild:
+ Drop jdbc2-stdext dependency because it's only needed with virtual/jdk-1.3
+ which we don't support any more.
06 May 2007; Tobias Scherbaum <dertobi123@gentoo.org>
jdbc-mysql-3.1.13-r4.ebuild:
diff --git a/dev-java/jdbc-mysql/files/digest-jdbc-mysql-3.1.13-r5 b/dev-java/jdbc-mysql/files/digest-jdbc-mysql-3.1.13-r5
new file mode 100644
index 000000000000..9e1b9a4ef5e5
--- /dev/null
+++ b/dev-java/jdbc-mysql/files/digest-jdbc-mysql-3.1.13-r5
@@ -0,0 +1,3 @@
+MD5 b2fc8cc8990d85629b183f284a8f46d8 mysql-connector-java-3.1.13.tar.gz 10454933
+RMD160 2316969d32ce5944e4a6dc682fc29a2cf9129cf2 mysql-connector-java-3.1.13.tar.gz 10454933
+SHA256 afa911e3999d10777fd4fb8b19c7af1330c04c927bd6fda859cd7623eb05713f mysql-connector-java-3.1.13.tar.gz 10454933
diff --git a/dev-java/jdbc-mysql/jdbc-mysql-3.1.13-r5.ebuild b/dev-java/jdbc-mysql/jdbc-mysql-3.1.13-r5.ebuild
new file mode 100644
index 000000000000..8b3396460ffd
--- /dev/null
+++ b/dev-java/jdbc-mysql/jdbc-mysql-3.1.13-r5.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jdbc-mysql/jdbc-mysql-3.1.13-r5.ebuild,v 1.1 2007/05/06 22:36:53 betelgeuse Exp $
+
+JAVA_PKG_IUSE="source"
+
+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="mirror://mysql/Downloads/Connector-J/${MY_P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="c3p0 test"
+COMMON_DEP="
+ dev-java/log4j
+ c3p0? ( dev-java/c3p0 )
+ dev-java/commons-logging"
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEP}"
+# FIXME doesn't like Java 1.6's JDBC API
+DEPEND="|| (
+ =virtual/jdk-1.5*
+ =virtual/jdk-1.4*
+ )
+ ${COMMON_DEP}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ # gcj hangs, but works for others -> why regexp over pictures?!
+ epatch ${FILESDIR}/do-not-filter-png.diff
+ # com.sun.* classes are used during testing
+ ! use test && epatch ${FILESDIR}/no-testsuite.diff
+ rm -v *.jar || die
+
+ sed -i 's,{buildDir}/MANIFEST.MF,{buildDir}/META-INF/MANIFEST.MF,' build.xml || die "sed failed"
+
+ mkdir src/lib-nodist # needed, or ant will fail
+ cd src/lib
+ rm -v *.jar || die
+ java-pkg_jar-from commons-logging
+ java-pkg_jar-from log4j
+ use c3p0 && java-pkg_jar-from c3p0
+}
+
+EANT_BUILD_TARGET="dist"
+
+#TODO add src_test
+
+src_install() {
+ java-pkg_newjar build/${MY_P}/${MY_P}-bin.jar ${PN}.jar
+ dodoc README CHANGES || die
+ use source && java-pkg_dosrc src/com src/org
+}