/[gentoo-x86]/dev-java/jtds/jtds-1.2.4.ebuild
Gentoo

Contents of /dev-java/jtds/jtds-1.2.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Aug 7 11:59:16 2011 UTC (2 years, 11 months ago) by xarthisius
Branch: MAIN
Changes since 1.5: +3 -3 lines
Dropped ppc/ppc64 wrt #326091

(Portage version: 2.2.0_alpha46/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/jtds/jtds-1.2.4.ebuild,v 1.5 2010/11/06 20:53:15 halcy0n Exp $
4
5 EAPI=2
6 JAVA_PKG_IUSE="doc source"
7
8 inherit eutils java-pkg-2 java-ant-2
9
10 DESCRIPTION="jTDS - SQL Server and Sybase JDBC driver"
11 SRC_URI="mirror://sourceforge/${PN}/${P}-src.zip"
12 HOMEPAGE="http://jtds.sourceforge.net"
13 LICENSE="LGPL-2.1"
14 SLOT="1.2"
15 KEYWORDS="amd64 x86"
16 COMMON_DEPEND="
17 =dev-java/jcifs-1*
18 dev-java/junit:0"
19 DEPEND=">=virtual/jdk-1.6
20 ${COMMON_DEPEND}
21 app-arch/unzip"
22 RDEPEND=">=virtual/jre-1.6
23 ${COMMON_DEPEND}"
24
25 S=${WORKDIR}
26 IUSE=""
27
28 # Would need a running server
29 RESTRICT="test"
30
31 java_prepare() {
32 epatch "${FILESDIR}/1.2.4-buildxml.patch"
33
34 cd "${S}/lib"
35 rm -v *.jar || die
36
37 java-pkg_jar-from jcifs-1.1
38 #TODO: don't always build tests
39 java-pkg_jar-from junit
40 }
41
42 src_install() {
43 java-pkg_dojar build/*.jar
44
45 dodoc CHANGELOG README* || die "Failed to install docs."
46 use doc && java-pkg_dojavadoc build/doc
47 use source && java-pkg_dosrc "${S}"/src/main/*
48 }

  ViewVC Help
Powered by ViewVC 1.1.20