blob: c5ae2c56e4f29ae5133b40e27f30af0661eb2354 (
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
60
61
62
63
64
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/proxool/proxool-0.8.3-r1.ebuild,v 1.7 2007/11/25 11:07:13 drac Exp $
JAVA_PKG_IUSE="doc source"
WANT_ANT_TASKS="ant-nodeps"
inherit java-pkg-2 java-ant-2
DESCRIPTION="Proxool is a Java connection pool."
HOMEPAGE="http://proxool.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}-source.tar.gz"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
IUSE=""
# Tests disabled because they would need hibernate
# and as such creating a circular dependency
RESTRICT="test"
# We could add java5 use flag but the sources use enum
# Making this ebuild quite complex. The mx4j-core dep
# can be obsoloted by the java virtuals any way.
COMMON_DEP="
dev-java/log4j
=dev-java/servletapi-2.4*
=dev-java/avalon-framework-4.2*
=dev-java/avalon-logkit-2*
=dev-java/mx4j-core-3*"
RDEPEND="
>=virtual/jre-1.4
${COMMON_DEP}
"
DEPEND="
>=virtual/jdk-1.4
${COMMON_DEP}
dev-util/checkstyle"
EANT_BUILD_TARGET="build-jar"
src_unpack() {
unpack "${A}"
cd "${S}"/lib
rm -v *.jar
java-pkg_jar-from log4j
java-pkg_jar-from servletapi-2.4
java-pkg_jar-from avalon-framework-4.2
java-pkg_jar-from avalon-logkit-2.0
java-pkg_jar-from mx4j-core-3.0
java-pkg_jar-from --build-only checkstyle
}
src_install() {
java-pkg_newjar build/${P}.jar ${PN}.jar
dodoc README.txt || die
# dohtml valid as there are other docs too
use doc && java-pkg_dohtml -r doc/*
use source && java-pkg_dosrc src/java/*
}
|