Gentoo Archives: gentoo-commits

From: "Alistair Bush (ali_bush)" <ali_bush@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-java/javacc: ChangeLog javacc-4.2.ebuild
Date: Tue, 28 Apr 2009 11:44:15
Message-Id: E1LylhL-0002KD-9R@stork.gentoo.org
1 ali_bush 09/04/28 11:42:03
2
3 Modified: ChangeLog
4 Added: javacc-4.2.ebuild
5 Log:
6 Version Bump.
7 (Portage version: 2.1.6.11/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.29 dev-java/javacc/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/javacc/ChangeLog?rev=1.29&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/javacc/ChangeLog?rev=1.29&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/javacc/ChangeLog?r1=1.28&r2=1.29
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-java/javacc/ChangeLog,v
19 retrieving revision 1.28
20 retrieving revision 1.29
21 diff -u -r1.28 -r1.29
22 --- ChangeLog 10 Jan 2008 22:32:02 -0000 1.28
23 +++ ChangeLog 28 Apr 2009 11:42:03 -0000 1.29
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-java/javacc
26 -# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-java/javacc/ChangeLog,v 1.28 2008/01/10 22:32:02 caster Exp $
28 +# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/dev-java/javacc/ChangeLog,v 1.29 2009/04/28 11:42:03 ali_bush Exp $
30 +
31 +*javacc-4.2 (28 Apr 2009)
32 +
33 + 28 Apr 2009; Alistair Bush <ali_bush@g.o> +javacc-4.2.ebuild:
34 + Version Bump. Thanks to Alex Busenius <the_unknown@×××.net> for the bug
35 + report and initial work.
36
37 10 Jan 2008; Vlastimil Babka <caster@g.o> javacc-4.0-r4.ebuild:
38 Restrict junit dependency.
39
40
41
42 1.1 dev-java/javacc/javacc-4.2.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/javacc/javacc-4.2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/javacc/javacc-4.2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: javacc-4.2.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-java/javacc/javacc-4.2.ebuild,v 1.1 2009/04/28 11:42:03 ali_bush Exp $
52
53 JAVA_PKG_IUSE="doc examples source test"
54 EAPI="2"
55
56 inherit java-pkg-2 java-ant-2 eutils
57
58 DESCRIPTION="Java Compiler Compiler - The Java Parser Generator"
59 HOMEPAGE="https://javacc.dev.java.net/"
60 SRC_URI="https://${PN}.dev.java.net/files/documents/17/117795/${P}src.tar.gz"
61 LICENSE="BSD"
62 SLOT="0"
63 IUSE=""
64 KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
65 DEPEND=">=virtual/jdk-1.5
66 dev-java/junit:0
67 test? ( dev-java/ant-junit )"
68 RDEPEND=">=virtual/jre-1.4
69 dev-java/junit:0"
70
71 #There are test cases that require >=1.5
72 #currently the build system handles producing
73 #the correct bytecode for the jar we are
74 #wanting. So lets just let it do its
75 #part.
76 JAVA_PKG_BSFIX="off"
77 JAVA_PKG_WANT_TARGET="1.4"
78 JAVA_PKG_WANT_SOURCE="1.4"
79
80 S="${WORKDIR}/${PN}"
81
82 java_prepare() {
83 epatch "${FILESDIR}"/${PN}-4.0-javadoc.patch
84 rm -v lib/junit*/*.jar || die
85 }
86
87 _eant() {
88 eant -Djunit.jar="$(java-pkg_getjar --build-only junit junit.jar)" "${@}"
89 }
90
91 src_compile() {
92 _eant jar $(use_doc)
93 }
94
95 src_test() {
96 ANT_TASKS="ant-junit" _eant test
97 }
98
99 src_install() {
100 java-pkg_dojar bin/lib/${PN}.jar
101
102 dodoc README || die
103
104 if use doc; then
105 java-pkg_dohtml -r www/*
106 java-pkg_dojavadoc doc/api
107 fi
108 if use examples; then
109 dodir /usr/share/doc/${PF}/examples
110 cp -R examples/* "${D}"/usr/share/doc/${PF}/examples
111 fi
112 use source && java-pkg_dosrc src/*
113
114 echo "JAVACC_HOME=/usr/share/javacc/" > "${T}"/22javacc
115 doenvd "${T}"/22javacc
116
117 echo "export VERSION=${PV}" > "${T}"/pre
118
119 local launcher
120 for launcher in javacc jjdoc jjtree
121 do
122 java-pkg_dolauncher ${launcher} -pre "${T}"/pre --main ${launcher}
123 done
124 }