blob: 05b94d9f21cd6fb79e1ab24457cf9d87012806ee (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/c3p0/c3p0-0.9.0_pre6.ebuild,v 1.1.1.1 2005/11/30 09:47:26 chriswhite Exp $
inherit java-pkg
MY_PV=${PV/_pre/-pre}
DESCRIPTION="c3p0 is a java component to provide an jdbc database pool"
HOMEPAGE="http://c3p0.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_PV}.src.tgz"
DEPEND=">=virtual/jdk-1.3
dev-java/ant-core
jikes? ( dev-java/jikes )"
RDEPEND=">=virtual/jre-1.3"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="jikes doc"
S=${WORKDIR}/${PN}-${MY_PV}.src
src_unpack() {
unpack ${A}
cd ${S}
echo "j2ee.jar.base.dir=${JAVA_HOME}" > build.properties
}
src_compile() {
local antflags="jar"
use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
use doc && antflags="${antflags} javadocs"
ant ${antflags} || die "compilation failed"
}
src_install() {
java-pkg_newjar build/${PN}*.jar ${PN}.jar
dodoc README-SRC
use doc && java-pkg_dohtml -r build/apidocs/*
}
|