summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Thomson <wltjr@gentoo.org>2006-09-19 03:20:26 +0000
committerWilliam Thomson <wltjr@gentoo.org>2006-09-19 03:20:26 +0000
commit87a9a08767edc344358e0b19bd5b52469b770371 (patch)
treed4d642eecd47b38e0976c33829a75c09df308be3 /dev-java/jdbc-jaybird
parentMarked ~amd64 for bug #146525 (diff)
downloadhistorical-87a9a08767edc344358e0b19bd5b52469b770371.tar.gz
historical-87a9a08767edc344358e0b19bd5b52469b770371.tar.bz2
historical-87a9a08767edc344358e0b19bd5b52469b770371.zip
Initial ebuilds for Jaybird JDBC driver for Firebird SQL databases which will replace the existing jdbc(2-3)-firebird ebuilds.
Package-Manager: portage-2.1.2_pre1
Diffstat (limited to 'dev-java/jdbc-jaybird')
-rw-r--r--dev-java/jdbc-jaybird/ChangeLog8
-rw-r--r--dev-java/jdbc-jaybird/Manifest32
-rw-r--r--dev-java/jdbc-jaybird/files/archive-xml-2.1.0.patch11
-rw-r--r--dev-java/jdbc-jaybird/files/compile-xml-2.1.0.patch20
-rw-r--r--dev-java/jdbc-jaybird/files/digest-jdbc-jaybird-2.0.13
-rw-r--r--dev-java/jdbc-jaybird/files/digest-jdbc-jaybird-2.1.03
-rw-r--r--dev-java/jdbc-jaybird/jdbc-jaybird-2.0.1.ebuild86
-rw-r--r--dev-java/jdbc-jaybird/jdbc-jaybird-2.1.0.ebuild95
-rw-r--r--dev-java/jdbc-jaybird/metadata.xml17
9 files changed, 275 insertions, 0 deletions
diff --git a/dev-java/jdbc-jaybird/ChangeLog b/dev-java/jdbc-jaybird/ChangeLog
new file mode 100644
index 000000000000..99a3b0d29778
--- /dev/null
+++ b/dev-java/jdbc-jaybird/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for dev-java/jdbc-jaybird
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jdbc-jaybird/ChangeLog,v 1.1 2006/09/19 03:20:26 wltjr Exp $
+
+ 19 Sep 2006; William L. Thomson Jr. <wltjr@gentoo.org> ChangeLog:
+ ChangeLog Initial ebuilds for Jaybird JDBC driver for Firebird SQL databases
+ which will replace the existing jdbc(2-3)-firebird ebuilds.
+
diff --git a/dev-java/jdbc-jaybird/Manifest b/dev-java/jdbc-jaybird/Manifest
new file mode 100644
index 000000000000..2f6132d95464
--- /dev/null
+++ b/dev-java/jdbc-jaybird/Manifest
@@ -0,0 +1,32 @@
+AUX archive-xml-2.1.0.patch 399 RMD160 b84c5992739ce8db698dbe6562e3cae2f8099d3c SHA1 5bdf1fef96ce163cc90a8c6836ac3c9fc9f33f14 SHA256 3e3e1f0d3bce0b6582a1ed7a5d14d55f8d51a6ef6a68a9ac4532d96323c6917a
+MD5 859aed28f3c78d3a70a3d8315e7ce5d0 files/archive-xml-2.1.0.patch 399
+RMD160 b84c5992739ce8db698dbe6562e3cae2f8099d3c files/archive-xml-2.1.0.patch 399
+SHA256 3e3e1f0d3bce0b6582a1ed7a5d14d55f8d51a6ef6a68a9ac4532d96323c6917a files/archive-xml-2.1.0.patch 399
+AUX compile-xml-2.1.0.patch 765 RMD160 6c05eda9ae904d06d8adb0cbaaf8c72a1881c736 SHA1 4259d97a0beab831c0fc3dc28038980bdec42b54 SHA256 f06048766fe9d9e3daf3824fd0c78a3e03cafc5de68e8a0c05d576170f499079
+MD5 cec3423ab0f8ebba0ce92a0048dd0985 files/compile-xml-2.1.0.patch 765
+RMD160 6c05eda9ae904d06d8adb0cbaaf8c72a1881c736 files/compile-xml-2.1.0.patch 765
+SHA256 f06048766fe9d9e3daf3824fd0c78a3e03cafc5de68e8a0c05d576170f499079 files/compile-xml-2.1.0.patch 765
+DIST JayBird-2.0.1-src.zip 4899770 RMD160 50e3fb99668ca08116fec3838892e1e6ff4b8e7d SHA1 21adf4a88660c10f7afb2daddec2c4826d068fd7 SHA256 ad3d6ad4199419752281c0e11f445fd109542499d162b5356e98e6eceb25a914
+DIST Jaybird-2.1.0-src.zip 5004088 RMD160 1066f39a393ff14812c907c38aeb094c407114da SHA1 a99c4b0ed90ff1252d6f5b076bfad8087eda6faf SHA256 a96cff648af0ef01b48e3471525d2447a76015e609bbf81a54c372d2963e0214
+EBUILD jdbc-jaybird-2.0.1.ebuild 2373 RMD160 22ab1e30c743a73535c942acb746cd85e4d5bf72 SHA1 8813b66ac1bb269fa21be45e565ac072a96e7a98 SHA256 41d287e3c4a977b4069f86b54fd359d118aa56e3adfebbbf55fe36d0713c3692
+MD5 2acae5e3e96983b956fb9766b0e7d2fb jdbc-jaybird-2.0.1.ebuild 2373
+RMD160 22ab1e30c743a73535c942acb746cd85e4d5bf72 jdbc-jaybird-2.0.1.ebuild 2373
+SHA256 41d287e3c4a977b4069f86b54fd359d118aa56e3adfebbbf55fe36d0713c3692 jdbc-jaybird-2.0.1.ebuild 2373
+EBUILD jdbc-jaybird-2.1.0.ebuild 2804 RMD160 9dffb4588f7ef7d848aa21ae402a1f5ccf756598 SHA1 d0aa670334327e336f4126e2e4f1574d1ab1cd69 SHA256 11493d6bb3811a5858e37d85aece28287f8043aa128929d03f67d54ff9ba8ea7
+MD5 4df9bcede11855e592264fff521e072f jdbc-jaybird-2.1.0.ebuild 2804
+RMD160 9dffb4588f7ef7d848aa21ae402a1f5ccf756598 jdbc-jaybird-2.1.0.ebuild 2804
+SHA256 11493d6bb3811a5858e37d85aece28287f8043aa128929d03f67d54ff9ba8ea7 jdbc-jaybird-2.1.0.ebuild 2804
+MISC ChangeLog 424 RMD160 922500cdf7b90df8e659a1c44e5d0ec0ca0f9f85 SHA1 549feb060d3d3c692046607815c29a8c8eeee2c7 SHA256 4bae19dfb4c8557feae4470d88fa7a6455a0fae74223db3e6234a2e7bef6b34d
+MD5 6154d2fc52f522d50bb12066511919b5 ChangeLog 424
+RMD160 922500cdf7b90df8e659a1c44e5d0ec0ca0f9f85 ChangeLog 424
+SHA256 4bae19dfb4c8557feae4470d88fa7a6455a0fae74223db3e6234a2e7bef6b34d ChangeLog 424
+MISC metadata.xml 436 RMD160 824e9083e20ae9d6f6ef15f7d93f9cb2e6d60877 SHA1 121db7d23040f789a09b1c433737759fc9d02917 SHA256 018127f870ab1c5e05f4da390c475e1cdcbb4634eaf4b6e361064b4e5d67a92d
+MD5 19790b183474368a06265d9c4ea251ea metadata.xml 436
+RMD160 824e9083e20ae9d6f6ef15f7d93f9cb2e6d60877 metadata.xml 436
+SHA256 018127f870ab1c5e05f4da390c475e1cdcbb4634eaf4b6e361064b4e5d67a92d metadata.xml 436
+MD5 6c6a365fa003e27aa057f1b60b09bc71 files/digest-jdbc-jaybird-2.0.1 247
+RMD160 954d1ce9745c47233fc59a5eb7d4241840051671 files/digest-jdbc-jaybird-2.0.1 247
+SHA256 daac132ade2347576fc4870f504610e430c89211b336bfbcf262ee81e7473869 files/digest-jdbc-jaybird-2.0.1 247
+MD5 2d275643a2fddc9000f8d416dd908e6b files/digest-jdbc-jaybird-2.1.0 247
+RMD160 de7d5a5a54a1076bf0dc82ccba145e2843dd2c89 files/digest-jdbc-jaybird-2.1.0 247
+SHA256 1bde00cf88acb3441873dada2c0efe24051a02bd5b35a0044ee28e169d516638 files/digest-jdbc-jaybird-2.1.0 247
diff --git a/dev-java/jdbc-jaybird/files/archive-xml-2.1.0.patch b/dev-java/jdbc-jaybird/files/archive-xml-2.1.0.patch
new file mode 100644
index 000000000000..a6d36de8a7db
--- /dev/null
+++ b/dev-java/jdbc-jaybird/files/archive-xml-2.1.0.patch
@@ -0,0 +1,11 @@
+--- client-java/build/archive.xml 2005-06-25 19:26:26.000000000 -0400
++++ build/archive.xml 2006-05-09 12:41:03.000000000 -0400
+@@ -57,7 +57,7 @@
+
+ </target>
+
+- <target name="jar-test" depends="compile">
++ <target name="jar-test" depends="compile" if="tests">
+
+ <mkdir dir="${build.lib}"/>
+ <jar jarfile="${build.lib}/${archive.name.test}" manifest="${build.etc}/default.mf">
diff --git a/dev-java/jdbc-jaybird/files/compile-xml-2.1.0.patch b/dev-java/jdbc-jaybird/files/compile-xml-2.1.0.patch
new file mode 100644
index 000000000000..8be350423ad9
--- /dev/null
+++ b/dev-java/jdbc-jaybird/files/compile-xml-2.1.0.patch
@@ -0,0 +1,20 @@
+--- client-java/build/compile.xml 2006-05-09 12:30:36.000000000 -0400
++++ build/compile.xml 2006-05-09 12:38:08.000000000 -0400
+@@ -13,7 +13,7 @@
+ <ant antfile="build_native.xml"/>
+ </target>
+
+- <target name="compile-examples">
++ <target name="compile-examples" if="examples">
+ <mkdir dir="${build.examples}"/>
+ <javac srcdir="${source.examples}"
+ destdir="${build.examples}"
+@@ -121,7 +121,7 @@
+ </path>
+ </target>
+
+- <target name="compile-tests" depends="compile-pool,set-jdbc-20-test,set-jdbc-30-test">
++ <target name="compile-tests" depends="compile-pool,set-jdbc-20-test,set-jdbc-30-test" if="tests">
+ <mkdir dir="${build.test}"/>
+ <javac srcdir="${source.test}"
+ destdir="${build.test}"
diff --git a/dev-java/jdbc-jaybird/files/digest-jdbc-jaybird-2.0.1 b/dev-java/jdbc-jaybird/files/digest-jdbc-jaybird-2.0.1
new file mode 100644
index 000000000000..284bfa8de430
--- /dev/null
+++ b/dev-java/jdbc-jaybird/files/digest-jdbc-jaybird-2.0.1
@@ -0,0 +1,3 @@
+MD5 fc2b2f24c0998d736bd68d0bd0e2059f JayBird-2.0.1-src.zip 4899770
+RMD160 50e3fb99668ca08116fec3838892e1e6ff4b8e7d JayBird-2.0.1-src.zip 4899770
+SHA256 ad3d6ad4199419752281c0e11f445fd109542499d162b5356e98e6eceb25a914 JayBird-2.0.1-src.zip 4899770
diff --git a/dev-java/jdbc-jaybird/files/digest-jdbc-jaybird-2.1.0 b/dev-java/jdbc-jaybird/files/digest-jdbc-jaybird-2.1.0
new file mode 100644
index 000000000000..acdd35a63695
--- /dev/null
+++ b/dev-java/jdbc-jaybird/files/digest-jdbc-jaybird-2.1.0
@@ -0,0 +1,3 @@
+MD5 a1b30781c7d0d9918ae599058e769f34 Jaybird-2.1.0-src.zip 5004088
+RMD160 1066f39a393ff14812c907c38aeb094c407114da Jaybird-2.1.0-src.zip 5004088
+SHA256 a96cff648af0ef01b48e3471525d2447a76015e609bbf81a54c372d2963e0214 Jaybird-2.1.0-src.zip 5004088
diff --git a/dev-java/jdbc-jaybird/jdbc-jaybird-2.0.1.ebuild b/dev-java/jdbc-jaybird/jdbc-jaybird-2.0.1.ebuild
new file mode 100644
index 000000000000..dfe53f47462f
--- /dev/null
+++ b/dev-java/jdbc-jaybird/jdbc-jaybird-2.0.1.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jdbc-jaybird/jdbc-jaybird-2.0.1.ebuild,v 1.1 2006/09/19 03:20:26 wltjr Exp $
+
+inherit java-pkg-2
+
+At="JayBird-${PV}-src"
+DESCRIPTION="JDBC Type 2 and 4 drivers for Firebird SQL server"
+HOMEPAGE="http://jaybirdwiki.firebirdsql.org/"
+SRC_URI="mirror://sourceforge/firebird/${At}.zip"
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples jikes source test"
+
+RDEPEND=">=virtual/jre-1.4*
+ dev-java/log4j"
+DEPEND=">=virtual/jdk-1.4*
+ app-arch/unzip
+ dev-java/ant-core
+ dev-java/cpptasks
+ ${RDEPEND}
+ jikes? ( dev-java/jikes )
+ test? ( dev-java/junit )
+ source? ( app-arch/zip )"
+
+S="${WORKDIR}/client-java"
+
+MY_PN="jaybird"
+
+src_unpack() {
+ unpack "${A}"
+ rm "${S}"/lib/*.jar
+ cd "${S}/src/lib/"
+ # the build.xml unpacks this and uses stuff
+ mv mini-j2ee.jar ${T} || die "Failed to move mini-j2ee.jar to ${T}"
+ rm *.jar
+ mv ${T}/mini-j2ee.jar . || die "Failed to move mini-j2ee.jar back from ${T}"
+
+ java-pkg_jar-from log4j log4j.jar log4j-core.jar
+}
+
+src_compile() {
+ local antflags="jars compile-native"
+ use doc && antflags="${antflags} javadocs"
+ use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
+ ant ${antflags} || die "Building failed."
+}
+
+src_install() {
+ cd "${S}"/output/lib/
+ java-pkg_newjar ${MY_PN}-${PV}.jar ${PN}.jar
+
+ for jar in full pool test; do
+ java-pkg_newjar ${MY_PN}-${jar}-${PV}.jar ${MY_PN}-${jar}.jar || die "java-pkg_newjar ${MY_PN}-${jar}.jar failed"
+ done
+
+ cd "${S}"/output/native
+ sodest="/usr/lib/"
+ java-pkg_doso libjaybird2.so || die "java-pkg_doso ${sodest}libjaybird2.so failed"
+
+ cd "${S}"
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}/
+ doins -r examples || die "installing examples failed"
+ fi
+
+ use source && java-pkg_dosrc "${S}"/src/*/org
+
+ cd "${S}/output"
+ use doc && java-pkg_dohtml -r docs/
+ dodoc etc/{*.txt,default.mf}
+ dohtml etc/*.html
+}
+
+src_test() {
+ #
+ # Warning about timeouts without Firebird installed and running Locally
+ #
+ ewarn "You will experience long timeouts when running junit tests"
+ ewarn "without Firebird installed and running locally. The tests will"
+ ewarn "complete without Firebird, but network timeouts prolong the"
+ ewarn "testing phase considerably."
+ ant all-tests-pure-java || die "JUnit testing failed."
+}
diff --git a/dev-java/jdbc-jaybird/jdbc-jaybird-2.1.0.ebuild b/dev-java/jdbc-jaybird/jdbc-jaybird-2.1.0.ebuild
new file mode 100644
index 000000000000..48a743c5c445
--- /dev/null
+++ b/dev-java/jdbc-jaybird/jdbc-jaybird-2.1.0.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jdbc-jaybird/jdbc-jaybird-2.1.0.ebuild,v 1.1 2006/09/19 03:20:26 wltjr Exp $
+
+inherit eutils java-pkg-2
+
+At="Jaybird-${PV/_/}-src"
+DESCRIPTION="JDBC Type 2 and 4 drivers for Firebird SQL server"
+HOMEPAGE="http://jaybirdwiki.firebirdsql.org/"
+SRC_URI="mirror://sourceforge/firebird/${At}.zip"
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples jikes source test"
+
+RDEPEND=">=virtual/jre-1.4*
+ dev-java/log4j"
+DEPEND=">=virtual/jdk-1.4*
+ app-arch/unzip
+ dev-java/ant-core
+ dev-java/cpptasks
+ ${RDEPEND}
+ jikes? ( dev-java/jikes )
+ test? ( dev-java/junit )
+ source? ( app-arch/zip )"
+
+S="${WORKDIR}/client-java"
+
+MY_PN="jaybird"
+
+src_unpack() {
+ unpack "${A}"
+ cd "${S}"
+ echo "${S}"
+ epatch "${FILESDIR}/archive-xml-${PV}.patch"
+ epatch "${FILESDIR}/compile-xml-${PV}.patch"
+ rm "${S}"/lib/*.jar
+ cd "${S}/src/lib/"
+ # the build.xml unpacks this and uses stuff
+ mv mini-j2ee.jar ${T} || die "Failed to move mini-j2ee.jar to ${T}"
+ rm *.jar
+ mv ${T}/mini-j2ee.jar . || die "Failed to move mini-j2ee.jar back from ${T}"
+
+ java-pkg_jar-from log4j log4j.jar log4j-core.jar
+}
+
+src_compile() {
+ local antflags="jars compile-native"
+ use doc && antflags="${antflags} javadocs"
+ use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
+ use examples && antflags="${antflags} -Dexamples=true"
+ use test && antflags="${antflags} -Dtests=true"
+ ant ${antflags} || die "Building failed."
+}
+
+src_install() {
+ cd "${S}"/output/lib/
+ java-pkg_newjar ${MY_PN}-${PV/_beta1}.jar ${PN}.jar || die "java-pkg_newjar ${MY_PN}.jar failed"
+
+ for jar in full pool; do
+ java-pkg_newjar ${MY_PN}-${jar}-${PV/_beta1}.jar ${MY_PN}-${jar}.jar || die "java-pkg_newjar ${MY_PN}-${jar}.jar failed"
+ done
+ if use test; then
+ java-pkg_newjar ${MY_PN}-test-${PV/_beta1}.jar ${MY_PN}-${jar}.jar || die "java-pkg_newjar ${MY_PN}-${jar}.jar failed"
+ fi
+
+ cd "${S}"/output/native
+ sodest="/usr/lib/"
+ java-pkg_doso libjaybird21.so || die "java-pkg_doso ${sodest}libjaybird21.so failed"
+
+ cd "${S}"
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}/
+ doins -r examples || die "installing examples failed"
+ fi
+
+ use source && java-pkg_dosrc "${S}"/src/*/org
+
+ cd "${S}/output"
+ use doc && java-pkg_dohtml -r docs/
+ dodoc etc/{*.txt,default.mf}
+ dohtml etc/*.html
+}
+
+src_test() {
+ #
+ # Warning about timeouts without Firebird installed and running Locally
+ #
+ ewarn "You will experience long timeouts when running junit tests"
+ ewarn "without Firebird installed and running locally. The tests will"
+ ewarn "complete without Firebird, but network timeouts prolong the"
+ ewarn "testing phase considerably."
+ ant all-tests-pure-java || die "JUnit testing failed."
+}
diff --git a/dev-java/jdbc-jaybird/metadata.xml b/dev-java/jdbc-jaybird/metadata.xml
new file mode 100644
index 000000000000..b02d7d2b4bcc
--- /dev/null
+++ b/dev-java/jdbc-jaybird/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+
+ <herd>java</herd>
+
+ <maintainer>
+ <email>wltjr@gentoo.org</email>
+ <name>William L. Thomson Jr.</name>
+ </maintainer>
+
+ <longdescription>
+ Jaybird is a JCA/JDBC driver suite for the Firebird database server.
+ This package includes both a type 2 and 4 JDBC driver.
+ </longdescription>
+
+</pkgmetadata>