blob: 6349dc80a73f4306485944f7ca0af4c06150a6cf (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/jtds/jtds-0.9.1.ebuild,v 1.4 2005/05/14 21:55:53 luckyduck Exp $
inherit eutils java-pkg
DESCRIPTION="Open source JDBC 3.0 Type 4 driver for Microsoft SQL Server (6.5,
7.0, 2000 and 2005) and Sybase."
SRC_URI="mirror://sourceforge/${PN}/${P}-src.zip"
HOMEPAGE="http://jtds.sourceforge.net"
LICENSE="LGPL-2.1"
SLOT="0.9"
KEYWORDS="x86 amd64 ~ppc"
IUSE="doc jikes"
DEPEND=">=virtual/jdk-1.4
app-arch/unzip
jikes? ( >=dev-java/jikes-1.21 )"
RDEPEND=">=virtual/jre-1.4
>=dev-java/ant-1.6.2
=dev-java/crimson-1.1*
=dev-java/jcifs-1.1*
>=dev-java/jta-1.0.1
>=dev-java/junit-3.8"
S=${WORKDIR}
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/buildxml-gentoo.patch
cd ${S}/lib
rm -f *
java-pkg_jar-from ant-core
java-pkg_jar-from ant-tasks ant-junit.jar
java-pkg_jar-from crimson-1
java-pkg_jar-from jcifs-1.1
java-pkg_jar-from jta
java-pkg_jar-from junit
}
src_compile() {
local antflags="jar"
if use doc; then
antflags="${antflags} javadoc"
fi
if use jikes; then
antflags="${antflags} -Dbuild.compiler=jikes"
fi
ant ${antflags} || die "failed to build"
}
src_install() {
java-pkg_dojar build/${PN}.jar
dodoc CHANGELOG README LICENSE
if use doc; then
java-pkg_dohtml -r build/doc/*
fi
}
|