summaryrefslogtreecommitdiff
blob: 7df821bab1102c38009632ff2b071e9a8448fee2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# 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-7.4.5.ebuild,v 1.5 2005/09/10 15:10:50 axxo Exp $

inherit java-pkg eutils versionator

DESCRIPTION="JDBC Driver for PostgreSQL"
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-opt-${PV}.tar.bz2"
HOMEPAGE="http://jdbc.postgresql.org/"
KEYWORDS="~x86 ~ppc ~sparc ~amd64"
IUSE=""
LICENSE="POSTGRESQL"
SLOT="0"
DEPEND=">=virtual/jdk-1.4
	dev-java/ant-core
	dev-java/java-config"

RDEPEND=">=virtual/jre-1.4"

S=${WORKDIR}/postgresql-${PV}/src/interfaces/jdbc

src_unpack() {
	unpack ${A}
	cd ${S}

	# prepare build.properties
	echo "major=$(get_major_version)" > build.properties
	echo "minor=$(get_version_component_range 2)" >> build.properties
	echo "fullversion=${PV}" >> build.properties
	echo def_pgport=5432 >> build.properties
	echo enable_debug=no >> build.properties
}


src_compile() {
	local antflags="jar"
	ant ${antflags} || die "build failed!"
}

src_install() {
	java-pkg_newjar jars/postgresql.jar ${PN}.jar
}