summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/jdbc3-postgresql/jdbc3-postgresql-8.1_p404.ebuild')
-rw-r--r--dev-java/jdbc3-postgresql/jdbc3-postgresql-8.1_p404.ebuild45
1 files changed, 45 insertions, 0 deletions
diff --git a/dev-java/jdbc3-postgresql/jdbc3-postgresql-8.1_p404.ebuild b/dev-java/jdbc3-postgresql/jdbc3-postgresql-8.1_p404.ebuild
new file mode 100644
index 000000000000..55a4a05959b9
--- /dev/null
+++ b/dev-java/jdbc3-postgresql/jdbc3-postgresql-8.1_p404.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jdbc3-postgresql/jdbc3-postgresql-8.1_p404.ebuild,v 1.1 2005/12/20 05:22:00 nichoj Exp $
+
+inherit java-pkg
+
+MY_PN="postgresql-jdbc"
+MY_PV="${PV/_p/-}"
+MY_P="${MY_PN}-${MY_PV}.src"
+
+DESCRIPTION="JDBC Driver for PostgreSQL"
+SRC_URI="http://jdbc.postgresql.org/download/${MY_P}.tar.gz"
+HOMEPAGE="http://jdbc.postgresql.org/"
+
+LICENSE="POSTGRESQL"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~sparc ~amd64"
+IUSE="doc examples jikes source"
+
+DEPEND=">=virtual/jdk-1.4
+ >=dev-java/ant-core-1.6
+ jikes? ( dev-java/jikes )
+ source? ( app-arch/zip )"
+RDEPEND=">=virtual/jre-1.4"
+
+S="${WORKDIR}/${MY_P}"
+
+src_compile() {
+ local antflags="jar"
+ use doc && antflags="${antflags} publicapi"
+ use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
+ ant ${antflags} || die "build failed!"
+}
+
+src_install() {
+ java-pkg_newjar jars/postgresql.jar ${PN}.jar
+
+ use doc && java-pkg_dohtml -r ${S}/build/publicapi/*
+ if use examples; then
+ dodir /usr/share/doc/${PF}/examples
+ cp -r ${S}/example/* ${D}/usr/share/doc/${PF}/examples
+ java-pkg_dojar jars/postgresql-examples.jar
+ fi
+ use source && java-pkg_dosrc ${S}/org
+}