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/jsr173/
Date: Fri, 23 Dec 2016 10:06:58
Message-Id: 1482487608.9ae0a4117307cf111143675d66ab092dfbfdf418.monsieurp@gentoo
1 commit: 9ae0a4117307cf111143675d66ab092dfbfdf418
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 23 09:44:35 2016 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 23 10:06:48 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ae0a411
7
8 dev-java/jsr173: convert to java-pkg-simple.
9
10 Package-Manager: portage-2.3.0
11
12 dev-java/jsr173/jsr173-1.0-r3.ebuild | 48 ++++++++++++++++++++++++++++++++++++
13 1 file changed, 48 insertions(+)
14
15 diff --git a/dev-java/jsr173/jsr173-1.0-r3.ebuild b/dev-java/jsr173/jsr173-1.0-r3.ebuild
16 new file mode 100644
17 index 00000000..71d6b02
18 --- /dev/null
19 +++ b/dev-java/jsr173/jsr173-1.0-r3.ebuild
20 @@ -0,0 +1,48 @@
21 +# Copyright 1999-2016 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=6
26 +
27 +JAVA_PKG_IUSE="doc source"
28 +
29 +inherit java-pkg-2 java-pkg-simple
30 +
31 +DESCRIPTION="Yet another Java library for parsing and writing XML"
32 +HOMEPAGE="http://dev2dev.bea.com/xml/stax.html"
33 +SRC_URI="http://ftpna2.bea.com/pub/downloads/${PN}.jar"
34 +
35 +LICENSE="bea.ri.jsr173"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
38 +IUSE=""
39 +
40 +CDEPEND="dev-java/jaxme:0"
41 +
42 +RDEPEND="
43 + ${CDEPEND}
44 + >=virtual/jre-1.6"
45 +
46 +DEPEND="
47 + ${CDEPEND}
48 + >=virtual/jdk-1.6"
49 +
50 +S="${WORKDIR}"
51 +
52 +JAVA_GENTOO_CLASSPATH="jaxme"
53 +
54 +src_unpack() {
55 + cd "${S}" || die
56 + jar xvf "${DISTDIR}/${A}" || die "failed to unpack"
57 + jar xvf "${P//-/_}_src.jar" || die "failed to unpack"
58 +}
59 +
60 +src_prepare() {
61 + default
62 + cd "${S}" || die
63 + java-pkg_clean
64 +}
65 +
66 +src_compile() {
67 + java-pkg-simple_src_compile
68 +}