blob: f1a012c5aec81a048ac8c561a246552bdb031141 (
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
43
|
# Copyright 1999-2004 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.2 2004/09/26 19:43:26 mr_bones_ 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.3
>=dev-java/ant-1.3
dev-java/java-config"
RDEPEND=">=virtual/jdk-1.3"
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() {
mv jars/postgresql.jar jars/${PN}.jar
java-pkg_dojar jars/${PN}.jar
}
|