blob: 6789f491fd18446cc83b891e18ef436c8ac73a5e (
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
|
# 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-1.0.3.ebuild,v 1.1 2005/04/24 19:21:26 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"
IUSE="doc jikes source"
DEPEND=">=virtual/jdk-1.4
app-arch/unzip
jikes? ( >=dev-java/jikes-1.21 )
source? ( app-arch/zip )"
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}/${PV}-buildxml.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"
use doc && antflags="${antflags} javadoc"
use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
ant ${antflags} || die "failed to build"
}
src_install() {
java-pkg_dojar build/${PN}.jar
dodoc CHANGELOG README
use doc && java-pkg_dohtml -r build/doc/*
use source && java-pkg_dosrc ${S}/src/main/*
}
|