forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
commons-jelly-1.0-r6.ebuild
66 lines (52 loc) · 1.54 KB
/
commons-jelly-1.0-r6.ebuild
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
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=4
JAVA_PKG_IUSE="doc source test"
inherit java-pkg-2 java-ant-2 eutils
MY_P="${P}-src"
DESCRIPTION="A Java and XML based scripting and processing engine"
HOMEPAGE="http://commons.apache.org/jelly/"
SRC_URI="mirror://apache/jakarta/commons/jelly/source/${MY_P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="1"
KEYWORDS="~amd64 ~x86"
IUSE=""
COMMON_DEP="
dev-java/commons-beanutils:1.7
dev-java/commons-cli:1
dev-java/commons-collections:0
dev-java/commons-discovery:0
dev-java/commons-jexl:1.0
dev-java/commons-lang:0
dev-java/commons-logging:0
dev-java/dom4j:1
dev-java/tomcat-jstl-spec:1.2.5
dev-java/jaxen:1.1
dev-java/junit:0
java-virtuals/servlet-api:2.5"
RDEPEND="${COMMON_DEP}
>=virtual/jre-1.4"
DEPEND="${COMMON_DEP}
>=virtual/jdk-1.4
test? ( dev-java/ant-junit:0 )"
S=${WORKDIR}/${MY_P}
java_prepare() {
# disables dependency fetching, and remove tests as a dependency of jar
epatch "${FILESDIR}/${P}-gentoo.patch"
}
JAVA_ANT_REWRITE_CLASSPATH="yes"
EANT_EXTRA_ARGS="-Dlibdir=."
EANT_GENTOO_CLASSPATH="
commons-beanutils-1.7,commons-cli-1,commons-collections,commons-discovery
commons-jexl-1.0,commons-lang,commons-logging,dom4j-1,tomcat-jstl-spec-1.2.5
jaxen-1.1,junit,servlet-api-2.5"
src_test() {
java-pkg-2_src_test
}
src_install() {
java-pkg_newjar target/${P}.jar ${PN}.jar
dodoc NOTICE.txt README.txt RELEASE-NOTES.txt || die
use doc && java-pkg_dojavadoc dist/docs/api
use source && java-pkg_dosrc src/java/*
}