Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/constantine/
Date: Tue, 06 Oct 2015 15:37:19
Message-Id: 1444145717.c7c8405caf1de8055016649610235e80567a646e.monsieurp@gentoo
1 commit: c7c8405caf1de8055016649610235e80567a646e
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 6 12:23:19 2015 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 6 15:35:17 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7c8405c
7
8 dev-java/constantine: 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/constantine/constantine-0.7-r1.ebuild | 39 ++++++++++++++++++++++++++
14 1 file changed, 39 insertions(+)
15
16 diff --git a/dev-java/constantine/constantine-0.7-r1.ebuild b/dev-java/constantine/constantine-0.7-r1.ebuild
17 new file mode 100644
18 index 0000000..a7165cf
19 --- /dev/null
20 +++ b/dev-java/constantine/constantine-0.7-r1.ebuild
21 @@ -0,0 +1,39 @@
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="source test"
29 +
30 +inherit java-pkg-2 java-ant-2
31 +
32 +DESCRIPTION="Provides Java values for common platform C constants"
33 +HOMEPAGE="https://github.com/wmeissner/jnr-constants"
34 +SRC_URI="mirror://gentoo/${P}.tar.gz"
35 +LICENSE="MIT"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
38 +IUSE=""
39 +
40 +RDEPEND=">=virtual/jre-1.6"
41 +
42 +DEPEND=">=virtual/jdk-1.6
43 + test? (
44 + dev-java/ant-junit:0
45 + )"
46 +
47 +src_compile() {
48 + # ecj doesn't like some cast for some reason
49 + java-pkg_force-compiler javac
50 + java-pkg-2_src_compile
51 +}
52 +
53 +src_test() {
54 + ANT_TASKS="ant-junit4" eant test -Dlibs.junit_4.classpath="$(java-pkg_getjars --with-dependencies junit-4)"
55 +}
56 +
57 +src_install() {
58 + java-pkg_dojar dist/${PN}.jar
59 + use source && java-pkg_dosrc src/*
60 +}