Fixes #10101.
authorKarl Trygve Kalleberg <karltk@gentoo.org>
Sat, 2 Nov 2002 21:42:25 +0000 (21:42 +0000)
committerKarl Trygve Kalleberg <karltk@gentoo.org>
Sat, 2 Nov 2002 21:42:25 +0000 (21:42 +0000)
dev-java/commons-dbcp/ChangeLog [new file with mode: 0644]
dev-java/commons-dbcp/commons-dbcp-1.0.ebuild [new file with mode: 0644]
dev-java/commons-dbcp/files/digest-commons-dbcp-1.0 [new file with mode: 0644]

diff --git a/dev-java/commons-dbcp/ChangeLog b/dev-java/commons-dbcp/ChangeLog
new file mode 100644 (file)
index 0000000..b4f4e0a
--- /dev/null
@@ -0,0 +1,8 @@
+# ChangeLog for dev-java/commons-dbcp
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-dbcp/ChangeLog,v 1.1 2002/11/02 21:42:25 karltk Exp $
+
+*commons-dbcp-1.0 (02 Nov 2002)
+
+  02 Nov 2002; Karl Trygve Kalleberg <karltk@gentoo.org> commons-dbcp-1.0.ebuild files/digest-commons-dbcp-1.0 :
+  Initial import.  Ebuild submitted by Adrian Almenar <aalmenar@conectium.com>.
diff --git a/dev-java/commons-dbcp/commons-dbcp-1.0.ebuild b/dev-java/commons-dbcp/commons-dbcp-1.0.ebuild
new file mode 100644 (file)
index 0000000..bdbc46a
--- /dev/null
@@ -0,0 +1,46 @@
+# Copyright 2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-dbcp/commons-dbcp-1.0.ebuild,v 1.1 2002/11/02 21:42:25 karltk Exp $
+
+S=${WORKDIR}/${PN}-${PV}-src
+DESCRIPTION="Jakarta component providing database connection pooling API"
+HOMEPAGE="http://jakarta.apache.org/commons/dbcp.html"
+SRC_URI="http://jakarta.apache.org/builds/jakarta-commons/release/${PN}/v${PV}/${PN}-${PV}-src.tar.gz"
+DEPEND=">=virtual/jdk-1.3
+               >=dev-java/ant-1.4
+               >=dev-java/commons-collections-2.0
+               >=dev-java/commons-pool-1.0.1"
+RDEPEND=">=virtual/jre-1.3
+               >=dev-java/commons-pool-1.0.1"
+LICENSE="Apache-1.1"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~sparc ~sparc64 ~alpha"
+IUSE="jikes"
+
+src_compile() {
+       local myc
+
+       echo "commons-collections.jar=`java-config --classpath=commons-collections`" > build.properties
+       echo "commons-lang.jar=`java-config --classpath=commons-lang`" >> build.properties
+       echo "commons-pool.jar=`java-config --classpath=commons-pool`" >> build.properties
+
+       if [ -n "`use jikes`" ] ; then
+               myc="${myc} -Dbuild.compiler=jikes"
+       fi
+
+       cp LICENSE.txt ../LICENSE
+       ANT_OPTS=${myc} ant dist || die "Compilation failed"
+}
+
+src_install () {
+       dojar dist/${PN}*.jar || die "Unable to install"
+       dohtml PROPOSAL.html STATUS.html
+       dohtml -r dist/docs/*
+}
+
+pkg_postinst() {
+       einfo "************ Documentation can be found at ***************\n
+       WEB: http://jakarta.apache.org/commons/dbcp.html\n
+       LOCAL: /usr/share/doc/${PF}\n
+   **********************************************************"
+}
diff --git a/dev-java/commons-dbcp/files/digest-commons-dbcp-1.0 b/dev-java/commons-dbcp/files/digest-commons-dbcp-1.0
new file mode 100644 (file)
index 0000000..b276281
--- /dev/null
@@ -0,0 +1 @@
+MD5 85305821547f060fb6090f022c33e5f9 commons-dbcp-1.0-src.tar.gz 88939