1 |
commit: d2cecfdd549fcdc6422678001a478da0cf03e5f4 |
2 |
Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 6 11:32:26 2015 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 6 15:34:33 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2cecfdd |
7 |
|
8 |
dev-java/commons-jexl: EAPI 5 bump. |
9 |
|
10 |
Package-Manager: portage-2.2.18 |
11 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
12 |
|
13 |
dev-java/commons-jexl/commons-jexl-1.1-r1.ebuild | 49 ++++++++++++++++++++++++ |
14 |
1 file changed, 49 insertions(+) |
15 |
|
16 |
diff --git a/dev-java/commons-jexl/commons-jexl-1.1-r1.ebuild b/dev-java/commons-jexl/commons-jexl-1.1-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 0000000..5e0eafc |
19 |
--- /dev/null |
20 |
+++ b/dev-java/commons-jexl/commons-jexl-1.1-r1.ebuild |
21 |
@@ -0,0 +1,49 @@ |
22 |
+# Copyright 1999-2015 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+# $Id$ |
25 |
+ |
26 |
+EAPI=5 |
27 |
+ |
28 |
+JAVA_PKG_IUSE="doc source test" |
29 |
+ |
30 |
+inherit java-pkg-2 java-ant-2 |
31 |
+ |
32 |
+DESCRIPTION="Expression language engine, can be embedded in applications and frameworks" |
33 |
+HOMEPAGE="http://commons.apache.org/jexl/" |
34 |
+SRC_URI="mirror://apache/jakarta/commons/jexl/source/${P}-src.tar.gz" |
35 |
+ |
36 |
+CDEPEND="dev-java/commons-logging |
37 |
+ dev-java/junit:0" |
38 |
+ |
39 |
+RDEPEND=">=virtual/jre-1.6 |
40 |
+ ${CDEPEND}" |
41 |
+DEPEND=">=virtual/jdk-1.6 |
42 |
+ test? ( dev-java/ant-junit ) |
43 |
+ ${CDEPEND}" |
44 |
+ |
45 |
+LICENSE="Apache-2.0" |
46 |
+SLOT="1.0" |
47 |
+KEYWORDS="~amd64 ~ppc ~x86" |
48 |
+IUSE="" |
49 |
+ |
50 |
+S="${WORKDIR}/${P}-src" |
51 |
+ |
52 |
+java_prepare() { |
53 |
+ # https://issues.apache.org/jira/browse/JEXL-31 |
54 |
+ epatch "${FILESDIR}/${PV}-test-target.patch" |
55 |
+ |
56 |
+ mkdir -p target/lib && cd target/lib |
57 |
+ java-pkg_jar-from junit junit.jar |
58 |
+ java-pkg_jar-from commons-logging |
59 |
+} |
60 |
+ |
61 |
+src_test() { |
62 |
+ ANT_TASKS="ant-junit" eant test |
63 |
+} |
64 |
+ |
65 |
+src_install() { |
66 |
+ java-pkg_newjar target/${P}*.jar |
67 |
+ dodoc RELEASE-NOTES.txt || die |
68 |
+ use doc && java-pkg_dojavadoc dist/docs/api |
69 |
+ use source && java-pkg_dosrc "${S}"/src/java/* |
70 |
+} |