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

Contents of /dev-java/jtds/jtds-1.2.5-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Dec 26 19:13:33 2012 UTC (3 years, 1 month ago) by jdhore
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
marked x86 per bug 440314

(Portage version: 2.2.0_alpha149/cvs/Linux i686, signed Manifest commit with key 23E9E900)

1 # Copyright 1999-2012 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.5-r1.ebuild,v 1.2 2012/12/12 18:31:37 ago Exp $
4
5 EAPI=5
6
7 JAVA_PKG_IUSE="doc source"
8
9 inherit eutils java-pkg-2 java-ant-2
10
11 DESCRIPTION="jTDS - SQL Server and Sybase JDBC driver"
12 SRC_URI="mirror://sourceforge/${PN}/${P}-src.zip"
13 HOMEPAGE="http://jtds.sourceforge.net"
14
15 LICENSE="LGPL-2.1"
16 SLOT="1.2"
17 KEYWORDS="amd64 x86"
18 IUSE=""
19
20 # Would need a running server
21 RESTRICT="test"
22
23 COMMON_DEPEND="
24 dev-java/jcifs:1.1"
25 RDEPEND="${COMMON_DEPEND}
26 virtual/jre:1.6"
27 DEPEND="${COMMON_DEPEND}
28 virtual/jdk:1.6
29 app-arch/unzip"
30
31 S=${WORKDIR}
32
33 java_prepare() {
34 find -name '*.jar' -exec rm -v {} + || die
35
36 epatch "${FILESDIR}"/${P}-build.xml.patch
37
38 rm -vr ./src/test/net/sourceforge/jtds/test || die
39 }
40
41 JAVA_ANT_REWRITE_CLASSPATH="yes"
42 JAVA_ANT_CLASSPATH_TAGS+=" javadoc"
43
44 EANT_GENTOO_CLASSPATH="jcifs-1.1"
45
46 src_install() {
47 java-pkg_dojar build/${PN}.jar
48
49 dodoc CHANGELOG README*
50 use doc && java-pkg_dojavadoc build/doc
51 use source && java-pkg_dosrc "${S}"/src/main/*
52 }

  ViewVC Help
Powered by ViewVC 1.1.20