blob: b17780c2f4aa4e451c847e7a647833862ac58db3 (
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
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
JAVA_PKG_IUSE="doc source examples test"
inherit java-pkg-2 java-ant-2
DESCRIPTION="JDBC drivers with JNDI-bindable DataSources"
HOMEPAGE="http://c3p0.sourceforge.net/"
MY_P="${P}.src"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tgz"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x86-macos"
IUSE=""
CDEPEND="dev-java/log4j:0
dev-java/mchange-commons:0"
DEPEND=">=virtual/jdk-1.6
${CDEPEND}
test? ( dev-java/junit:4 )
"
RDEPEND=">=virtual/jre-1.6
${CDEPEND}"
S="${WORKDIR}/${MY_P}"
JAVA_ANT_REWRITE_CLASSPATH="yes"
java_prepare() {
java-pkg_clean
java-pkg_jar-from --into lib/ mchange-commons
java-pkg_jar-from --into lib/ log4j
}
EANT_TEST_TARGET="junit-tests"
EANT_TEST_GENTOO_CLASSPATH="junit-4"
src_test() {
java-pkg-2_src_test
}
src_install() {
java-pkg_newjar build/${P}.jar
dodoc README-SRC
use doc && java-pkg_dojavadoc build/apidocs
use source && java-pkg_dosrc src/java/com/mchange/v2
use examples && java-pkg_doexamples src/java/com/mchange/v2/c3p0/example
}
|