blob: 369a18bb374a40b5d91ae4af0db50fff92d158d8 (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
JAVA_PKG_IUSE="doc test"
inherit java-pkg-2 java-ant-2
MY_PN="${PN/-*/}"
DESCRIPTION="Fully conforming implementation of the JRC API (specified in JSR 170 and 283)"
HOMEPAGE="http://jackrabbit.apache.org/"
SRC_URI="mirror://apache/${MY_PN}/${PV}/${MY_PN}-${PV}-src.zip"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 x86"
S="${WORKDIR}/${MY_PN}-${PV}/${PN}"
CDEPEND="dev-java/bndlib:0
dev-java/slf4j-api:0
dev-java/slf4j-nop:0
dev-java/commons-httpclient:3
java-virtuals/servlet-api:2.3"
DEPEND=">=virtual/jdk-1.6
${CDEPEND}
test? ( dev-java/ant-junit:0 )"
RDEPEND=">=virtual/jre-1.6
${CDEPEND}"
JAVA_ANT_REWRITE_CLASSPATH="true"
EANT_GENTOO_CLASSPATH="
bndlib
commons-httpclient-3
servlet-api-2.3
slf4j-api
"
PATCHES=(
"${FILESDIR}"/${P}-OutputContextImplTest.java.patch
"${FILESDIR}"/${P}-CSRFUtilTest.java.patch
)
java_prepare() {
cp "${FILESDIR}"/${P}-build.xml build.xml || die
epatch "${PATCHES[@]}"
}
EANT_TEST_GENTOO_CLASSPATH="
${EANT_GENTOO_CLASSPATH}
slf4j-nop
"
src_test() {
java-pkg-2_src_test
}
src_install() {
java-pkg_newjar target/${P}.jar
use doc && java-pkg_dojavadoc target/site/apidocs
}
|