blob: 020c6d7f9996e19de0cd4404d7092fa06ebddfc5 (
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
65
66
67
68
69
70
71
72
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/ehcache/ehcache-1.2.4-r2.ebuild,v 1.6 2010/05/21 17:58:46 ken69267 Exp $
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-ant-2
DESCRIPTION="Ehcache is a pure Java, fully-featured, in-process cache."
SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
HOMEPAGE="http://ehcache.sourceforge.net"
LICENSE="Apache-2.0"
SLOT="1.2"
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~x86-macos"
IUSE=""
COMMON_DEPEND="
dev-java/commons-collections
dev-java/commons-logging
~dev-java/servletapi-2.4"
RDEPEND=">=virtual/jre-1.5
${COMMON_DEPEND}"
DEPEND=">=virtual/jdk-1.5
${COMMON_DEPEND}
app-arch/unzip
source? ( app-arch/zip )
>=dev-java/ant-core-1.5"
JAVA_PKG_WANT_SOURCE="1.4"
JAVA_PKG_WANT_TARGET="1.4"
src_unpack() {
unpack ${A}
cd ${S}
use doc && unzip -qq ${P}-javadoc.zip
mkdir src && cd src
unzip -qq ../${P}-sources.jar
# could use a USE flag, but would result in circular dep
rm -rf net/sf/ehcache/hibernate
cd ${S}
rm -f *.jar *.zip
cp "${FILESDIR}/build.xml-${PVR}" build.xml || die
mv "${S}/ehcache.xml" "${S}/ehcache-failsafe.xml" || die
mkdir ${S}/lib
cd ${S}/lib
java-pkg_jarfrom commons-logging
java-pkg_jarfrom commons-collections
java-pkg_jarfrom servletapi-2.4
}
src_compile() {
eant jar
}
src_install() {
java-pkg_dojar ${PN}.jar
dodoc *.txt ehcache.xsd
use source && java-pkg_dosrc src/net
use doc &&java-pkg_dojavadoc docs
}
|