Gentoo Archives: gentoo-commits

From: "Vlastimil Babka (caster)" <caster@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-java/javacc: ChangeLog javacc-4.2.ebuild
Date: Sun, 21 Jun 2009 09:21:24
Message-Id: E1MIJEo-0004aJ-BQ@stork.gentoo.org
1 caster 09/06/21 09:21:22
2
3 Modified: ChangeLog javacc-4.2.ebuild
4 Log:
5 Fix building with ecj (bug #249288) and depend on 1.5 jdk only when tests enabled.
6 (Portage version: 2.2_rc33/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.30 dev-java/javacc/ChangeLog
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/javacc/ChangeLog?rev=1.30&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/javacc/ChangeLog?rev=1.30&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/javacc/ChangeLog?r1=1.29&r2=1.30
14
15 Index: ChangeLog
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/dev-java/javacc/ChangeLog,v
18 retrieving revision 1.29
19 retrieving revision 1.30
20 diff -u -r1.29 -r1.30
21 --- ChangeLog 28 Apr 2009 11:42:03 -0000 1.29
22 +++ ChangeLog 21 Jun 2009 09:21:22 -0000 1.30
23 @@ -1,6 +1,10 @@
24 # ChangeLog for dev-java/javacc
25 -# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
26 -# $Header: /var/cvsroot/gentoo-x86/dev-java/javacc/ChangeLog,v 1.29 2009/04/28 11:42:03 ali_bush Exp $
27 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 +# $Header: /var/cvsroot/gentoo-x86/dev-java/javacc/ChangeLog,v 1.30 2009/06/21 09:21:22 caster Exp $
29 +
30 + 21 Jun 2009; Vlastimil Babka <caster@g.o> javacc-4.2.ebuild:
31 + Fix building with ecj (bug #249288) and depend on 1.5 jdk only when tests
32 + enabled.
33
34 *javacc-4.2 (28 Apr 2009)
35
36
37
38
39 1.2 dev-java/javacc/javacc-4.2.ebuild
40
41 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/javacc/javacc-4.2.ebuild?rev=1.2&view=markup
42 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/javacc/javacc-4.2.ebuild?rev=1.2&content-type=text/plain
43 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/javacc/javacc-4.2.ebuild?r1=1.1&r2=1.2
44
45 Index: javacc-4.2.ebuild
46 ===================================================================
47 RCS file: /var/cvsroot/gentoo-x86/dev-java/javacc/javacc-4.2.ebuild,v
48 retrieving revision 1.1
49 retrieving revision 1.2
50 diff -u -r1.1 -r1.2
51 --- javacc-4.2.ebuild 28 Apr 2009 11:42:03 -0000 1.1
52 +++ javacc-4.2.ebuild 21 Jun 2009 09:21:22 -0000 1.2
53 @@ -1,6 +1,6 @@
54 # Copyright 1999-2009 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 -# $Header: /var/cvsroot/gentoo-x86/dev-java/javacc/javacc-4.2.ebuild,v 1.1 2009/04/28 11:42:03 ali_bush Exp $
57 +# $Header: /var/cvsroot/gentoo-x86/dev-java/javacc/javacc-4.2.ebuild,v 1.2 2009/06/21 09:21:22 caster Exp $
58
59 JAVA_PKG_IUSE="doc examples source test"
60 EAPI="2"
61 @@ -16,16 +16,15 @@
62 KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
63 DEPEND=">=virtual/jdk-1.5
64 dev-java/junit:0
65 - test? ( dev-java/ant-junit )"
66 + test? (
67 + >=virtual/jdk-1.5
68 + dev-java/ant-junit
69 + )
70 + !test? ( >=virtual/jdk-1.4 )"
71 RDEPEND=">=virtual/jre-1.4
72 dev-java/junit:0"
73
74 -#There are test cases that require >=1.5
75 -#currently the build system handles producing
76 -#the correct bytecode for the jar we are
77 -#wanting. So lets just let it do its
78 -#part.
79 -JAVA_PKG_BSFIX="off"
80 +# We don't want 1.5 bytecode just because of the testcase
81 JAVA_PKG_WANT_TARGET="1.4"
82 JAVA_PKG_WANT_SOURCE="1.4"
83
84 @@ -45,6 +44,8 @@
85 }
86
87 src_test() {
88 + # this testcase wants 1.5 and this seems the easiest way to do it
89 + JAVA_PKG_WANT_SOURCE="1.5" JAVA_PKG_WANT_TARGET="1.5" java-ant_bsfix_one examples/JavaGrammars/1.5/build.xml
90 ANT_TASKS="ant-junit" _eant test
91 }