Gentoo Archives: gentoo-commits

From: "Petteri Räty" <betelgeuse@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/betelgeuse:master commit in: dev-java/antlr/
Date: Mon, 27 Jun 2011 06:43:12
Message-Id: 5938ac71eea15f541c636d5ec4bef150f5584ecc.betelgeuse@gentoo
1 commit: 5938ac71eea15f541c636d5ec4bef150f5584ecc
2 Author: Petteri Räty <betelgeuse <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 27 06:41:54 2011 +0000
4 Commit: Petteri Räty <betelgeuse <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 27 06:41:54 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/betelgeuse.git;a=commit;h=5938ac71
7
8 Add antlr-3.3
9
10 Added antlr-3.3 ebuild pending on gunit so qiaomuf can use them as a
11 base for 3.4.
12
13 ---
14 dev-java/antlr/ChangeLog | 334 ++++++++++++++++++++++++++++++++++
15 dev-java/antlr/Manifest | 13 ++
16 dev-java/antlr/antlr-2.7.7-r1.ebuild | 124 +++++++++++++
17 dev-java/antlr/antlr-2.7.7-r2.ebuild | 147 +++++++++++++++
18 dev-java/antlr/antlr-2.7.7.ebuild | 124 +++++++++++++
19 dev-java/antlr/antlr-3.1.3-r2.ebuild | 115 ++++++++++++
20 dev-java/antlr/antlr-3.1.3-r3.ebuild | 113 ++++++++++++
21 dev-java/antlr/antlr-3.3.ebuild | 121 ++++++++++++
22 dev-java/antlr/metadata.xml | 11 +
23 9 files changed, 1102 insertions(+), 0 deletions(-)
24
25 diff --git a/dev-java/antlr/ChangeLog b/dev-java/antlr/ChangeLog
26 new file mode 100644
27 index 0000000..b8d5784
28 --- /dev/null
29 +++ b/dev-java/antlr/ChangeLog
30 @@ -0,0 +1,334 @@
31 +# ChangeLog for dev-java/antlr
32 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
33 +# $Header: /var/cvsroot/gentoo-x86/dev-java/antlr/ChangeLog,v 1.87 2011/06/23 17:15:35 ranger Exp $
34 +
35 + 23 Jun 2011; Brent Baude <ranger@g.o> antlr-2.7.7-r2.ebuild:
36 + Marking antlr-2.7.7-r2 ppc for bug 366423
37 +
38 + 11 May 2011; Christoph Mende <angelos@g.o> antlr-2.7.7-r2.ebuild:
39 + Stable on amd64 wrt bug #366423
40 +
41 + 10 May 2011; Pawel Hajdan jr <phajdan.jr@g.o> antlr-2.7.7-r2.ebuild:
42 + x86 stable wrt bug #366423
43 +
44 +*antlr-2.7.7-r2 (08 Apr 2011)
45 +
46 + 08 Apr 2011; Sébastien Fabbro <bicatali@g.o> +antlr-2.7.7-r2.ebuild:
47 + Now builds a shared library, older static non-PIC library is built with use
48 + flag static-libs
49 +
50 + 16 Jan 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
51 + antlr-2.7.7.ebuild, antlr-2.7.7-r1.ebuild:
52 + Use Python 2, fix deprecation warnings (bug #312147).
53 +
54 +*antlr-2.7.7-r1 (16 Jan 2011)
55 +
56 + 16 Jan 2011; Miroslav Šulc <fordfrog@g.o> +antlr-2.7.7-r1.ebuild:
57 + fixed bug #349678
58 +
59 + 29 Dec 2009; Joseph Jezak <josejx@g.o> antlr-3.1.3-r2.ebuild:
60 + Marked ppc stable for bug #287425.
61 +
62 + 14 Dec 2009; Brent Baude <ranger@g.o> antlr-3.1.3-r2.ebuild:
63 + Marking antlr-3.1.3-r2 ppc64 for bug 287425
64 +
65 + 09 Nov 2009; Markus Meier <maekke@g.o> antlr-3.1.3-r2.ebuild:
66 + amd64/x86 stable, bug #287425
67 +
68 + 03 Nov 2009; Vlastimil Babka <caster@g.o> -antlr-3.1.3.ebuild,
69 + -antlr-3.1.3-r1.ebuild:
70 + Remove old.
71 +
72 +*antlr-3.1.3-r2 (01 May 2009)
73 +
74 + 01 May 2009; Petteri Räty <betelgeuse@g.o> +antlr-3.1.3-r2.ebuild:
75 + Sed in antlr.version to properties file. Python target doesn't work
76 + without it being set properly.
77 +
78 + 26 Apr 2009; Brent Baude <ranger@g.o> antlr-3.1.3-r1.ebuild:
79 + Marking antlr-3.1.3-r1 ~ppc for bug 264195
80 +
81 + 24 Apr 2009; Brent Baude <ranger@g.o> antlr-3.1.3-r1.ebuild:
82 + Marking antlr-3.1.3-r1 ~ppc64 for bug 264259
83 +
84 + 11 Apr 2009; Alistair Bush <ali_bush@g.o> antlr-3.1.3-r1.ebuild:
85 + Keyword ~amd64.
86 +
87 +*antlr-3.1.3-r1 (10 Apr 2009)
88 +
89 + 10 Apr 2009; Petteri Räty <betelgeuse@g.o> metadata.xml,
90 + +antlr-3.1.3-r1.ebuild:
91 + Add support for gunit.
92 +
93 + 29 Mar 2009; Serkan Kaba <serkan@g.o> +files/2.7.7-makefixes.patch,
94 + antlr-2.7.7:
95 + Fix bug #256880. Thanks to Diego E. Pettenò <flameeyes@g.o> for
96 + help.
97 +
98 + 29 Mar 2009; Petteri Räty <betelgeuse@g.o>
99 + +files/2.7.7-gcc-4.4.patch, antlr-2.7.7.ebuild:
100 + Add patch for gcc 4.4. Fixes bug #262319.
101 +
102 + 29 Mar 2009; Petteri Räty <betelgeuse@g.o> antlr-3.1.3.ebuild:
103 + Require java use flag on antlr:0.
104 +
105 +*antlr-3.1.3 (29 Mar 2009)
106 +
107 + 29 Mar 2009; Petteri Räty <betelgeuse@g.o> +antlr-3.1.3.ebuild:
108 + Version bump. Fixes bug #146952. Keywording tracked in bug #264195. Adding
109 + support for runtimes tracked in bug #264196.
110 +
111 + 03 Jan 2009; Raúl Porcel <armin76@g.o> antlr-2.7.7.ebuild:
112 + Drop ia64 keyword
113 +
114 + 26 Jun 2008; Serkan Kaba <serkan@g.o> antlr-2.7.7.ebuild:
115 + Fix antlr2 website. Thanks calculus <calculuspenguin@×××××.com> for
116 + reporting.
117 +
118 + 05 Apr 2008; Petteri Räty <betelgeuse@g.o> antlr-2.7.7.ebuild:
119 + Call base_src_unpack explicitly in src_unpack. Fixes bug #207361.
120 +
121 + 04 Apr 2008; Petteri Räty <betelgeuse@g.o>
122 + +files/2.7.7-gcc-4.3.patch, antlr-2.7.7.ebuild:
123 + Add patch for gcc-4.3. Fixes bug #207631. Thanks to impulze@×××××××.org for
124 + the patch.
125 +
126 + 08 Mar 2008; Petteri Räty <betelgeuse@g.o> antlr-2.7.7.ebuild:
127 + Rename nocxx and nojava to cxx and java and turn them on by default using
128 + EAPI 1.
129 +
130 + 08 Mar 2008; Petteri Räty <betelgeuse@g.o> antlr-2.7.7.ebuild:
131 + Fix quoting and nocxx use under the examples use flag. Fixes bug #212703.
132 + Thanks to maekke for the patch.
133 +
134 + 23 Jun 2007; Petteri Räty <betelgeuse@g.o> antlr-2.7.7.ebuild:
135 + Fix bug #172104 so that antlr builds when pnet is installed.
136 +
137 + 17 Mar 2007; Petteri Räty <betelgeuse@g.o> -antlr-2.7.5-r2.ebuild,
138 + -antlr-2.7.5-r3.ebuild:
139 + Cleanup.
140 +
141 + 15 Mar 2007; Joshua Nichols <nichoj@g.o> antlr-2.7.7.ebuild:
142 + Stable on amd64 for bug #166857.
143 +
144 + 18 Feb 2007; nixnut <nixnut@g.o> antlr-2.7.7.ebuild:
145 + Stable on ppc wrt bug 166857
146 +
147 + 16 Feb 2007; Markus Rothe <corsair@g.o> antlr-2.7.7.ebuild:
148 + Stable on ppc64; bug #166857
149 +
150 + 14 Feb 2007; Christian Faulhammer <opfer@g.o> antlr-2.7.7.ebuild:
151 + stable x86; bug 166857
152 +
153 + 26 Jan 2007; Krzysiek Pawlik <nelchael@g.o> antlr-2.7.7.ebuild:
154 + Added ~ppc.
155 +
156 + 09 Jan 2007; Steve Dibb <beandog@g.o> antlr-2.7.5-r3.ebuild:
157 + amd64 stable, bug 158091
158 +
159 + 05 Jan 2007; Diego Pettenò <flameeyes@g.o> antlr-2.7.5-r2.ebuild,
160 + antlr-2.7.5-r3.ebuild, antlr-2.7.7.ebuild:
161 + Remove gnuconfig_update usage, leave it to econf.
162 +
163 + 30 Dec 2006; Markus Rothe <corsair@g.o> antlr-2.7.5-r3.ebuild:
164 + Stable on ppc64; bug #158091
165 +
166 + 14 Dec 2006; Christian Faulhammer <opfer@g.o>
167 + antlr-2.7.5-r3.ebuild:
168 + stable x86, bug #158091
169 +
170 +*antlr-2.7.7 (14 Dec 2006)
171 +
172 + 14 Dec 2006; Vlastimil Babka <caster@g.o> -antlr-2.7.3.ebuild,
173 + -antlr-2.7.4.ebuild, +antlr-2.7.7.ebuild:
174 + Version bump, removed old versions.
175 +
176 + 07 Dec 2006; Diego Pettenò <flameeyes@g.o> antlr-2.7.5-r3.ebuild:
177 + Add ~x86-fbsd keyword.
178 +
179 + 16 Oct 2006; Joshua Nichols <nichoj@g.o> antlr-2.7.5-r3.ebuild:
180 + Keyworded ~ia64.
181 +
182 + 05 Oct 2006; Gustavo Zacarias <gustavoz@g.o> antlr-2.7.3.ebuild:
183 + Dropping sparc keywords, see #96229
184 +
185 + 24 Sep 2006; Joshua Nichols <nichoj@g.o> antlr-2.7.5-r3.ebuild:
186 + Bumped jdk dependency to 1.3, to fix compilation with jikes / kaffe.
187 +
188 + 14 Sep 2006; Joshua Nichols <nichoj@g.o> antlr-2.7.5-r3.ebuild:
189 + Added back missing JAVACFLAGS additions.
190 +
191 + 13 Sep 2006; Joshua Nichols <nichoj@g.o> antlr-2.7.5-r2.ebuild,
192 + antlr-2.7.5-r3.ebuild:
193 + Many cleanups.
194 +
195 + 23 Jul 2006; Joshua Nichols <jnichols@g.o> antlr-2.7.5-r3.ebuild:
196 + Removed findutils dep as per bug #141423
197 +
198 +*antlr-2.7.5-r3 (21 Jul 2006)
199 +
200 + 21 Jul 2006; Joshua Nichols <jnichols@g.o> +antlr-2.7.5-r3.ebuild:
201 + Revision bump to use new Java system.
202 +
203 + 24 May 2006; Michael Hanselmann <hansmi@g.o> antlr-2.7.5-r2.ebuild:
204 + Stable on ppc.
205 +
206 + 16 May 2006; Markus Rothe <corsair@g.o> antlr-2.7.5-r2.ebuild:
207 + Stable on ppc64; bug #133320
208 +
209 + 15 May 2006; Petteri Räty <betelgeuse@g.o> antlr-2.7.5-r2.ebuild:
210 + antlr now inherits java-utils so the error message when a jre is set as the
211 + system jdk is a lot more useful. Fixes bug #133355.
212 +
213 + 15 May 2006; Jon Hood <squinky86@g.o> antlr-2.7.5-r2.ebuild:
214 + Stable on amd64 wrt #133320.
215 +
216 + 14 May 2006; Petteri Räty <betelgeuse@g.o> antlr-2.7.5-r2.ebuild:
217 + Marked 2.7.5-r2 stable wrt bug #133320 and removed old revision.
218 +
219 + 11 May 2006; Tobias Scherbaum <dertobi123@g.o>
220 + antlr-2.7.5-r2.ebuild:
221 + Re-added to ~ppc, bug #132956
222 +
223 + 23 Jan 2006; Karl Trygve Kalleberg <karltk@g.o>
224 + -antlr-2.7.5-r1.ebuild:
225 + Removed old revision.
226 +
227 + 29 Dec 2005; Saleem Abdulrasool <compnerd@g.o>
228 + antlr-2.7.5-r2.ebuild:
229 + Fixing java screwup, thanks to axxo for noticing it.
230 +
231 +*antlr-2.7.5-r2 (29 Dec 2005)
232 +
233 + 29 Dec 2005; Saleem Abdulrasool <compnerd@g.o>
234 + +antlr-2.7.5-r2.ebuild:
235 + Adding nojava useflag as per axxo's request. Fixing script issue (bug #80862)
236 + with script useflag.
237 +
238 + 13 Dec 2005; Saleem Abdulrasool <compnerd@g.o>
239 + antlr-2.7.5-r1.ebuild:
240 + Fixing the jar install.
241 +
242 + 10 Dec 2005; Saleem Abdulrasool <compnerd@g.o> -antlr-2.7.5.ebuild:
243 + Pruning old 2.7.5 ebuild
244 +
245 +*antlr-2.7.5-r1 (10 Dec 2005)
246 +
247 + 10 Dec 2005; Saleem Abdulrasool <compnerd@g.o> +files/antlr.pc.in,
248 + +antlr-2.7.5-r1.ebuild:
249 + Adding new revision of ANTLR 2.7.5 which resolves bug #80862. Adds a block on
250 + pccts.
251 +
252 + 09 Jul 2005; Thomas Matthijs <axxo@g.o> antlr-2.7.3.ebuild,
253 + antlr-2.7.4.ebuild, antlr-2.7.5.ebuild:
254 + add source use flag
255 +
256 +*antlr-2.7.5 (03 Apr 2005)
257 +
258 + 03 Apr 2005; Thomas Matthijs <axxo@g.o> +antlr-2.7.5.ebuild:
259 + version bump
260 +
261 + 05 Feb 2005; Jan Brinkmann <luckyduck@g.o> antlr-2.7.4.ebuild:
262 + added support for the doc and the examples useflag. fixes #80862
263 +
264 + 26 Jan 2005; Markus Rothe <corsair@g.o> antlr-2.7.4.ebuild:
265 + Stable on ppc64
266 +
267 + 18 Dec 2004; Markus Rothe <corsair@g.o> antlr-2.7.4.ebuild:
268 + added ~ppc64 to KEYWORDS and gnuconfig_update
269 +
270 + 22 Oct 2004; Dylan Carlson <absinthe@g.o> antlr-2.7.4.ebuild:
271 + Keywords ~amd64.
272 +
273 +*antlr-2.7.4 (16 Oct 2004)
274 +
275 + 16 Oct 2004; Thomas Matthijs <axxo@g.o> antlr-2.7.3.ebuild,
276 + antlr-2.7.4.ebuild:
277 + use java-pkg_dohtml instead of dohtml to also install the package-list in
278 + case of api docs: #50740
279 +
280 + 04 Sep 2004; Thomas Matthijs <axxo@g.o> antlr-2.7.3.ebuild:
281 + stable on sparc
282 +
283 + 15 Jul 2004; Thomas Matthijs <axxo@g.o> :
284 + version bump
285 +
286 +*antlr-2.7.3 (31 Mar 2004)
287 +
288 + 31 Mar 2004; Chris Aniszczyk <zx@g.o> antlr-2.7.3.ebuild:
289 + Marking stable on x86.
290 +
291 + 22 Mar 2004; Chris Aniszczyk <zx@g.o> antlr-2.7.2.ebuild:
292 + Clean up + Version bump. Fixes #45281
293 +
294 + 20 Jan 2004; Adrian Almenar <strider@g.o> antlr-2.7.2.ebuild:
295 + Stable on sparc.
296 +
297 + 19 Jan 2004; Adrian Almenar <strider@g.o> antlr-2.7.2.ebuild:
298 + Added ~ppc keyword.
299 +
300 + 18 Jan 2004; Adrian Almenar <strider@g.o> antlr-2.7.1-r3.ebuild,
301 + antlr-2.7.2.ebuild:
302 + Added amd64 keyword. Removed old version.
303 +
304 + 16 Dec 2003; Jason Wever <weeve@g.o> antlr-2.7.2.ebuild:
305 + Added ~sparc keyword to fix broken dependencies in dev-java/makeme.
306 +
307 + 15 Aug 2003; Adrian Almenar <strider@g.o> antlr-2.7.1-r3.ebuild,
308 + antlr-2.7.2.ebuild, antlr-2.7.2_alpha2-r1.ebuild, antlr-2.7.2_alpha2.ebuild:
309 + Fixes bug 21887, That makes the ebuild to build with jikes java compiler,
310 + Thanks to Jonas Berlin <jberlin@××××××.fi> for the patch
311 +
312 +*antlr-2.7.2 (05 Apr 2003)
313 + 02 Apr 2003; Robin Johnson <robbat2@g.o> antlr-2.7.2.ebuild,
314 + files/digest-antlr-2.7.2:
315 + Updated to new version, slight change in ebuild script for cleanliness
316 + changed description to reflect removal of Sather support
317 + Fixes to make it compile now included
318 +
319 +*antlr-2.7.2_alpha2-r1 (10 Jan 2003)
320 +
321 + 10 Jan 2003; Matthew Kennedy <mkennedy@g.o>
322 + antlr-2.7.2_alpha2-r1.ebuild, files/digest-antlr-2.7.2_alpha2-r1,
323 + files/antrl-2.7.2_alpha2-r1-gcc3-gentoo.patch, ChangeLog :
324 +
325 + Code fix for GCC 3.2.1. No oustanding bug out on this.
326 +
327 +*antlr-2.7.2_alpha2 (25 Jun 2002)
328 +
329 + 01 Aug 2002; Karl Trygve Kalleberg <karltk@g.o> antlr-2.7.2_alpha2.ebuild files/digest-antlr-2.7.2_alpha2 :
330 +
331 + Added KEYWORDS.
332 +
333 + 25 Jun 2002; Karl Trygve Kalleberg <karltk@g.o> antlr-2.7.2_alpha2.ebuild files/digest-antlr-2.7.2_alpha2 :
334 +
335 + New upstream version.
336 +
337 +*antlr-2.7.1-r3 (10 May 2002)
338 +
339 + 01 Aug 2002; Karl Trygve Kalleberg <karltk@g.o> antlr-2.7.2_alpha2.ebuild files/digest-antlr-2.7.2_alpha2 :
340 +
341 + Added SLOT, KEYWORDS and LICENSE.
342 +
343 + 10 May 2002; Karl Trygve Kalleberg <karltk@g.o> antlr-2.7.1-r3.ebuild files/digest-antlr-2.7.1-r3:
344 +
345 + Now the installed jarballs are properly registered so that they are noticed
346 + by java-config.
347 +
348 + Removed antlr-2.7.1-r2.ebuild files/digest-antlr-2.7.1-r2
349 +
350 +*antlr-2.7.1-r2 (15 Mar 2002)
351 +
352 + 1 Feb 2002; G.Bevin <gbevin@g.o> antlr-2.7.1-r2.ebuild digest/digest-antlr-2.7.1-r2 :
353 +
354 + Added support for c++ library and includes
355 +
356 +*antlr-2.7.1-r1 (1 Feb 2002)
357 +
358 + 1 Feb 2002; G.Bevin <gbevin@g.o> ChangeLog :
359 +
360 + Added initial ChangeLog which should be updated whenever the package is
361 + updated in any way. This changelog is targetted to users. This means that the
362 + comments should well explained and written in clean English. The details about
363 + writing correct changelogs are explained in the skel.ChangeLog file which you
364 + can find in the root directory of the portage repository.
365
366 diff --git a/dev-java/antlr/Manifest b/dev-java/antlr/Manifest
367 new file mode 100644
368 index 0000000..f6de793
369 --- /dev/null
370 +++ b/dev-java/antlr/Manifest
371 @@ -0,0 +1,13 @@
372 +DIST antlr-2.7.7.tar.gz 1816180 RMD160 0b7951a28b748e912721fe0f6de4095d9f8da57d SHA1 802655c343cc7806aaf1ec2177a0e663ff209de1 SHA256 853aeb021aef7586bda29e74a6b03006bcb565a755c86b66032d8ec31b67dbb9
373 +DIST antlr-3.1.3-generated.tar.bz2 47167 RMD160 9ea64a67aba65bf27e8abbdfbd1a28a0ea2b7698 SHA1 21addec96267b43742e2b2bbd6c7e245db644c38 SHA256 ed326de0f1f92dd72e8d9644e8eaf59d02b9725b4b5218f5c54e12100f8d05f4
374 +DIST antlr-3.1.3.tar.gz 10743515 RMD160 e772197a8a89783ec7cb3e0005913e0396a0ca4c SHA1 2558d373c1d94d8fdd9d26a5be390316aa6b5350 SHA256 1fca0fc7304140807e64ec263a58d93ef1b380cfb6407084e6909f8220bc1039
375 +DIST antlr-3.3-generated.tar.bz2 74064 RMD160 947c556ecef35adb5d194394f32bd8de0a65cc10 SHA1 d12604d33017c102ea841cb9da83db1855cf27b7 SHA256 9e8527a06e864dc51a53f7b7e5116fe0f475e39cc1c60a6e754cae353523413a
376 +DIST antlr-3.3.tar.gz 8923324 RMD160 646ba0b783525c11d1828665d33ee4cd979ec19d SHA1 01d9cc2c9a1dde1de7845ada71128ef8a351767d SHA256 75ac93389d6ebfbd89970a79fb84cf62df568452cbdd249b698192aadf2eef61
377 +EBUILD antlr-2.7.7-r1.ebuild 2947 RMD160 c839f55ba5c00ffbb01fc39bf82415055b51ff47 SHA1 cc3a51c392e6fb9c45b5920b11a4a1b4b41b470b SHA256 05b8bc38cfa262ebbd2b124f6e736f858ca75520440fb7f916bd7cba020bab8f
378 +EBUILD antlr-2.7.7-r2.ebuild 3722 RMD160 e06e82984cc67b6a926db8a289866f6105ddc540 SHA1 cc1706c4fc5cf90100a59c458ddb64ceac7b5c35 SHA256 f3a8663738dd3d24819c6d1f8bb99904082d7c51e2019b7abafd876f004ee1c1
379 +EBUILD antlr-2.7.7.ebuild 2934 RMD160 b11efc4a4e8d5e68b423a4c8e16cb4a8d2f8c374 SHA1 1612e05a6715cba4ae1da0a2fd0ca91d4356b53b SHA256 3db0e8b0f1de5a77d714e10784fa550ad84a24e636e6503d2f9ad99a27376385
380 +EBUILD antlr-3.1.3-r2.ebuild 3341 RMD160 529b1c4468e2eddf2545094dac0858b49f3fd216 SHA1 159aaafa147e050a035742b818493e9520fe3c69 SHA256 ee273067958c14b20df2061ed26743c7046c5713fbfe6d3b61614f4c6a8c6234
381 +EBUILD antlr-3.1.3-r3.ebuild 3220 RMD160 4cf2fd9f1976fdba83c602efda751d5d723accfc SHA1 781e63770757c18fe6f19cf216fb0305b200727a SHA256 e30bcf38f575cb9ba5d99d57683809587b1130178c9cce390afcd4d9bf70008c
382 +EBUILD antlr-3.3.ebuild 3633 RMD160 2b42c4a74967fd6bfbbd29f845747821d738623f SHA1 23e02f5127db92034282cf4b52f321203f584f4d SHA256 161bcb79f6753676257450d5a82e5f68420682dd2fd44ba264cf0b8a5a5e05d5
383 +MISC ChangeLog 11814 RMD160 6aca879cd5425ec8ab23cba2cb981493aeb6853c SHA1 875c9166d3a7e02ff442ea7c4918968c159e98b5 SHA256 1513b9e2f314aa5d71bb928b57cc3f7a9d0e0c5d6f73dd98e9beadf1a97a1048
384 +MISC metadata.xml 363 RMD160 72102b036fe76e530f4519a0aa081778aae7262a SHA1 b8f61d984af7ca03255f57bf4126799e58863f2d SHA256 6aa7ec680dc08ab936d6f59f1444bba56902fec42eaf16d5c9919350a5c355cc
385
386 diff --git a/dev-java/antlr/antlr-2.7.7-r1.ebuild b/dev-java/antlr/antlr-2.7.7-r1.ebuild
387 new file mode 100644
388 index 0000000..bacc0f6
389 --- /dev/null
390 +++ b/dev-java/antlr/antlr-2.7.7-r1.ebuild
391 @@ -0,0 +1,124 @@
392 +# Copyright 1999-2011 Gentoo Foundation
393 +# Distributed under the terms of the GNU General Public License v2
394 +# $Header: /var/cvsroot/gentoo-x86/dev-java/antlr/antlr-2.7.7-r1.ebuild,v 1.2 2011/01/16 18:22:16 arfrever Exp $
395 +
396 +EAPI="3"
397 +PYTHON_DEPEND="python? 2"
398 +
399 +inherit base java-pkg-2 mono distutils multilib
400 +
401 +DESCRIPTION="A parser generator for C++, C#, Java, and Python"
402 +HOMEPAGE="http://www.antlr2.org/"
403 +SRC_URI="http://www.antlr2.org/download/${P}.tar.gz"
404 +
405 +LICENSE="ANTLR"
406 +SLOT="0"
407 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
408 +IUSE="doc debug examples mono +cxx +java python script source"
409 +
410 +# TODO do we actually need jdk at runtime?
411 +RDEPEND=">=virtual/jdk-1.3
412 + mono? ( dev-lang/mono )"
413 +DEPEND="${RDEPEND}
414 + script? ( !dev-util/pccts )
415 + source? ( app-arch/zip )"
416 +
417 +PATCHES=( "${FILESDIR}/2.7.7-gcc-4.3.patch" "${FILESDIR}/2.7.7-gcc-4.4.patch" "${FILESDIR}/2.7.7-makefixes.patch" )
418 +
419 +pkg_setup() {
420 + java-pkg-2_pkg_setup
421 +
422 + if use python; then
423 + python_set_active_version 2
424 + python_pkg_setup
425 + fi
426 +}
427 +
428 +src_prepare() {
429 + base_src_prepare
430 +}
431 +
432 +src_configure() {
433 + # don't ask why, but this is needed for stuff to get built properly
434 + # across the various JDKs
435 + JAVACFLAGS="+ ${JAVACFLAGS}"
436 +
437 + # mcs for https://bugs.gentoo.org/show_bug.cgi?id=172104
438 + CSHARPC="mcs" econf $(use_enable java) \
439 + $(use_enable python) \
440 + $(use_enable mono csharp) \
441 + $(use_enable debug) \
442 + $(use_enable examples) \
443 + $(use_enable cxx) \
444 + --enable-verbose
445 +}
446 +
447 +src_compile() {
448 + emake || die "compile failed"
449 +
450 + sed -e "s|@prefix@|/usr/|" \
451 + -e 's|@exec_prefix@|${prefix}|' \
452 + -e "s|@libdir@|\$\{exec_prefix\}/$(get_libdir)/antlr|" \
453 + -e 's|@libs@|-r:\$\{libdir\}/antlr.astframe.dll -r:\$\{libdir\}/antlr.runtime.dll|' \
454 + -e "s|@VERSION@|${PV}|" \
455 + "${FILESDIR}"/antlr.pc.in > "${S}"/antlr.pc
456 +}
457 +
458 +src_install() {
459 + exeinto /usr/bin
460 + doexe "${S}"/scripts/antlr-config
461 +
462 + if use cxx ; then
463 + cd "${S}"/lib/cpp
464 + einstall || die "failed to install C++ files"
465 + fi
466 +
467 + if use java ; then
468 + java-pkg_dojar "${S}"/antlr/antlr.jar
469 +
470 + use script && java-pkg_dolauncher antlr --main antlr.Tool
471 +
472 + use source && java-pkg_dosrc "${S}"/antlr
473 + use doc && java-pkg_dohtml -r "${S}"/doc/*
474 + fi
475 +
476 + if use mono ; then
477 + cd "${S}"/lib
478 +
479 + dodir /usr/$(get_libdir)/antlr/
480 + insinto /usr/$(get_libdir)/antlr/
481 +
482 + doins antlr.astframe.dll
483 + doins antlr.runtime.dll
484 +
485 + insinto /usr/$(get_libdir)/pkgconfig
486 + doins "${S}"/antlr.pc
487 + fi
488 +
489 + if use python ; then
490 + cd "${S}"/lib/python
491 + distutils_src_install
492 + fi
493 +
494 + if use examples ; then
495 + find "${S}"/examples -iname Makefile\* -exec rm \{\} \;
496 +
497 + dodir /usr/share/doc/${PF}/examples
498 + insinto /usr/share/doc/${PF}/examples
499 +
500 + use cxx && doins -r "${S}"/examples/cpp
501 + use java && doins -r "${S}"/examples/java
502 + use mono && doins -r "${S}"/examples/csharp
503 + use python && doins -r "${S}"/examples/python
504 + fi
505 +
506 + newdoc "${S}"/README.txt README || die
507 +}
508 +
509 +pkg_postinst() {
510 + use python && distutils_pkg_postinst
511 +}
512 +
513 +pkg_postrm() {
514 + use python && distutils_pkg_postrm
515 +}
516
517 diff --git a/dev-java/antlr/antlr-2.7.7-r2.ebuild b/dev-java/antlr/antlr-2.7.7-r2.ebuild
518 new file mode 100644
519 index 0000000..aa20f1a
520 --- /dev/null
521 +++ b/dev-java/antlr/antlr-2.7.7-r2.ebuild
522 @@ -0,0 +1,147 @@
523 +# Copyright 1999-2011 Gentoo Foundation
524 +# Distributed under the terms of the GNU General Public License v2
525 +# $Header: /var/cvsroot/gentoo-x86/dev-java/antlr/antlr-2.7.7-r2.ebuild,v 1.4 2011/06/23 17:15:35 ranger Exp $
526 +
527 +EAPI="3"
528 +PYTHON_DEPEND="python? 2"
529 +
530 +inherit base java-pkg-2 mono distutils multilib toolchain-funcs versionator
531 +
532 +DESCRIPTION="A parser generator for C++, C#, Java, and Python"
533 +HOMEPAGE="http://www.antlr2.org/"
534 +SRC_URI="http://www.antlr2.org/download/${P}.tar.gz"
535 +
536 +LICENSE="ANTLR"
537 +SLOT="0"
538 +KEYWORDS="amd64 ppc ~ppc64 x86 ~x86-fbsd"
539 +IUSE="doc debug examples mono +cxx +java python script source static-libs"
540 +
541 +# TODO do we actually need jdk at runtime?
542 +RDEPEND=">=virtual/jdk-1.3
543 + mono? ( dev-lang/mono )"
544 +DEPEND="${RDEPEND}
545 + script? ( !dev-util/pccts )
546 + source? ( app-arch/zip )"
547 +
548 +PATCHES=( "${FILESDIR}/2.7.7-gcc-4.3.patch" "${FILESDIR}/2.7.7-gcc-4.4.patch" "${FILESDIR}/2.7.7-makefixes.patch" )
549 +
550 +make_shared_lib() {
551 + local soname=$(basename "${1%.a}").so.$(get_major_version)
552 + einfo "Making ${soname}"
553 + ${2:-$(tc-getCC)} ${LDFLAGS} \
554 + -shared -Wl,-soname="${soname}" \
555 + -Wl,--whole-archive "${1}" -Wl,--no-whole-archive \
556 + -o $(dirname "${1}")/"${soname}" || return 1
557 +}
558 +
559 +pkg_setup() {
560 + java-pkg-2_pkg_setup
561 +
562 + if use python; then
563 + python_set_active_version 2
564 + python_pkg_setup
565 + fi
566 +}
567 +
568 +src_prepare() {
569 + base_src_prepare
570 + sed -i \
571 + -e 's/install:.*this-install/install:/' \
572 + lib/cpp/src/Makefile.in || die
573 +}
574 +
575 +src_configure() {
576 + # don't ask why, but this is needed for stuff to get built properly
577 + # across the various JDKs
578 + JAVACFLAGS="+ ${JAVACFLAGS}"
579 +
580 + # mcs for https://bugs.gentoo.org/show_bug.cgi?id=172104
581 + CSHARPC="mcs" econf $(use_enable java) \
582 + $(use_enable python) \
583 + $(use_enable mono csharp) \
584 + $(use_enable debug) \
585 + $(use_enable examples) \
586 + $(use_enable cxx) \
587 + --enable-verbose
588 +}
589 +
590 +src_compile() {
591 + emake CXXFLAGS="${CXXFLAGS} -fPIC" || die "compile failed"
592 + if use cxx; then
593 + pushd lib/cpp/src > /dev/null
594 + make_shared_lib libantlr.a || die
595 + if use static-libs; then
596 + make clean
597 + emake || die "compile static failed"
598 + fi
599 + popd > /dev/null
600 + fi
601 + sed -e "s|@prefix@|/usr/|" \
602 + -e 's|@exec_prefix@|${prefix}|' \
603 + -e "s|@libdir@|\$\{exec_prefix\}/$(get_libdir)/antlr|" \
604 + -e 's|@libs@|-r:\$\{libdir\}/antlr.astframe.dll -r:\$\{libdir\}/antlr.runtime.dll|' \
605 + -e "s|@VERSION@|${PV}|" \
606 + "${FILESDIR}"/antlr.pc.in > "${S}"/antlr.pc
607 +}
608 +
609 +src_install() {
610 + exeinto /usr/bin
611 + doexe "${S}"/scripts/antlr-config
612 +
613 + if use cxx ; then
614 + cd "${S}"/lib/cpp
615 + einstall || die "failed to install C++ files"
616 + dolib.so src/libantlr.so* || die
617 + dosym libantlr.so.$(get_major_version) /usr/$(get_libdir)/libantlr.so
618 + use static-libs && dolib.a src/libantlr.a
619 + fi
620 +
621 + if use java ; then
622 + java-pkg_dojar "${S}"/antlr/antlr.jar
623 +
624 + use script && java-pkg_dolauncher antlr --main antlr.Tool
625 +
626 + use source && java-pkg_dosrc "${S}"/antlr
627 + use doc && java-pkg_dohtml -r "${S}"/doc/*
628 + fi
629 +
630 + if use mono ; then
631 + cd "${S}"/lib
632 +
633 + dodir /usr/$(get_libdir)/antlr/
634 + insinto /usr/$(get_libdir)/antlr/
635 +
636 + doins antlr.astframe.dll
637 + doins antlr.runtime.dll
638 +
639 + insinto /usr/$(get_libdir)/pkgconfig
640 + doins "${S}"/antlr.pc
641 + fi
642 +
643 + if use python ; then
644 + cd "${S}"/lib/python
645 + distutils_src_install
646 + fi
647 +
648 + if use examples ; then
649 + find "${S}"/examples -iname Makefile\* -exec rm \{\} \;
650 +
651 + dodir /usr/share/doc/${PF}/examples
652 + insinto /usr/share/doc/${PF}/examples
653 +
654 + use cxx && doins -r "${S}"/examples/cpp
655 + use java && doins -r "${S}"/examples/java
656 + use mono && doins -r "${S}"/examples/csharp
657 + use python && doins -r "${S}"/examples/python
658 + fi
659 +
660 + newdoc "${S}"/README.txt README || die
661 +}
662 +
663 +pkg_postinst() {
664 + use python && distutils_pkg_postinst
665 +}
666 +
667 +pkg_postrm() {
668 + use python && distutils_pkg_postrm
669 +}
670
671 diff --git a/dev-java/antlr/antlr-2.7.7.ebuild b/dev-java/antlr/antlr-2.7.7.ebuild
672 new file mode 100644
673 index 0000000..f14b791
674 --- /dev/null
675 +++ b/dev-java/antlr/antlr-2.7.7.ebuild
676 @@ -0,0 +1,124 @@
677 +# Copyright 1999-2011 Gentoo Foundation
678 +# Distributed under the terms of the GNU General Public License v2
679 +# $Header: /var/cvsroot/gentoo-x86/dev-java/antlr/antlr-2.7.7.ebuild,v 1.17 2011/01/16 18:22:16 arfrever Exp $
680 +
681 +EAPI="3"
682 +PYTHON_DEPEND="python? 2"
683 +
684 +inherit base java-pkg-2 mono distutils multilib
685 +
686 +DESCRIPTION="A parser generator for C++, C#, Java, and Python"
687 +HOMEPAGE="http://www.antlr2.org/"
688 +SRC_URI="http://www.antlr2.org/download/${P}.tar.gz"
689 +
690 +LICENSE="ANTLR"
691 +SLOT="0"
692 +KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd"
693 +IUSE="doc debug examples mono +cxx +java python script source"
694 +
695 +# TODO do we actually need jdk at runtime?
696 +RDEPEND=">=virtual/jdk-1.3
697 + mono? ( dev-lang/mono )"
698 +DEPEND="${RDEPEND}
699 + script? ( !dev-util/pccts )
700 + source? ( app-arch/zip )"
701 +
702 +PATCHES=( "${FILESDIR}/2.7.7-gcc-4.3.patch" "${FILESDIR}/2.7.7-gcc-4.4.patch" "${FILESDIR}/2.7.7-makefixes.patch" )
703 +
704 +pkg_setup() {
705 + java-pkg-2_pkg_setup
706 +
707 + if use python; then
708 + python_set_active_version 2
709 + python_pkg_setup
710 + fi
711 +}
712 +
713 +src_prepare() {
714 + base_src_prepare
715 +}
716 +
717 +src_configure() {
718 + # don't ask why, but this is needed for stuff to get built properly
719 + # across the various JDKs
720 + JAVACFLAGS="+ ${JAVACFLAGS}"
721 +
722 + # mcs for https://bugs.gentoo.org/show_bug.cgi?id=172104
723 + CSHARPC="mcs" econf $(use_enable java) \
724 + $(use_enable python) \
725 + $(use_enable mono csharp) \
726 + $(use_enable debug) \
727 + $(use_enable examples) \
728 + $(use_enable cxx) \
729 + --enable-verbose
730 +}
731 +
732 +src_compile() {
733 + emake || die "compile failed"
734 +
735 + sed -e "s|@prefix@|/usr/|" \
736 + -e 's|@exec_prefix@|${prefix}|' \
737 + -e "s|@libdir@|\$\{exec_prefix\}/$(get_libdir)/antlr|" \
738 + -e 's|@libs@|-r:\$\{libdir\}/antlr.astframe.dll -r:\$\{libdir\}/antlr.runtime.dll|' \
739 + -e "s|@VERSION@|${PV}|" \
740 + "${FILESDIR}"/antlr.pc.in > "${S}"/antlr.pc
741 +}
742 +
743 +src_install() {
744 + exeinto /usr/bin
745 + doexe "${S}"/scripts/antlr-config
746 +
747 + if use cxx ; then
748 + cd "${S}"/lib/cpp
749 + einstall || die "failed to install C++ files"
750 + fi
751 +
752 + if use java ; then
753 + java-pkg_dojar "${S}"/antlr/antlr.jar
754 +
755 + use script && java-pkg_dolauncher antlr --main antlr.Tool
756 +
757 + use source && java-pkg_dosrc "${S}"/antlr
758 + use doc && java-pkg_dohtml -r doc/*
759 + fi
760 +
761 + if use mono ; then
762 + cd "${S}"/lib
763 +
764 + dodir /usr/$(get_libdir)/antlr/
765 + insinto /usr/$(get_libdir)/antlr/
766 +
767 + doins antlr.astframe.dll
768 + doins antlr.runtime.dll
769 +
770 + insinto /usr/$(get_libdir)/pkgconfig
771 + doins "${S}"/antlr.pc
772 + fi
773 +
774 + if use python ; then
775 + cd "${S}"/lib/python
776 + distutils_src_install
777 + fi
778 +
779 + if use examples ; then
780 + find "${S}"/examples -iname Makefile\* -exec rm \{\} \;
781 +
782 + dodir /usr/share/doc/${PF}/examples
783 + insinto /usr/share/doc/${PF}/examples
784 +
785 + use cxx && doins -r "${S}"/examples/cpp
786 + use java && doins -r "${S}"/examples/java
787 + use mono && doins -r "${S}"/examples/csharp
788 + use python && doins -r "${S}"/examples/python
789 + fi
790 +
791 + newdoc "${S}"/README.txt README || die
792 +}
793 +
794 +pkg_postinst() {
795 + use python && distutils_pkg_postinst
796 +}
797 +
798 +pkg_postrm() {
799 + use python && distutils_pkg_postrm
800 +}
801
802 diff --git a/dev-java/antlr/antlr-3.1.3-r2.ebuild b/dev-java/antlr/antlr-3.1.3-r2.ebuild
803 new file mode 100644
804 index 0000000..eb99d8f
805 --- /dev/null
806 +++ b/dev-java/antlr/antlr-3.1.3-r2.ebuild
807 @@ -0,0 +1,115 @@
808 +# Copyright 1999-2011 Gentoo Foundation
809 +# Distributed under the terms of the GNU General Public License v2
810 +# $Header: /var/cvsroot/gentoo-x86/dev-java/antlr/antlr-3.1.3-r2.ebuild,v 1.6 2011/05/03 18:30:48 grobian Exp $
811 +
812 +EAPI="2"
813 +JAVA_PKG_IUSE="source"
814 +
815 +inherit eutils java-pkg-2 java-ant-2
816 +
817 +DESCRIPTION="A parser generator for C++, C#, Java, and Python"
818 +HOMEPAGE="http://www.antlr.org/"
819 +# You need to generate v3 grammars so that boostrapping works
820 +SRC_URI="http://www.antlr.org/download/${P}.tar.gz
821 + mirror://gentoo/${P}-generated.tar.bz2"
822 +LICENSE="BSD"
823 +SLOT="3"
824 +KEYWORDS="amd64 ppc ppc64 x86"
825 +IUSE="gunit"
826 +
827 +COMMON_DEPEND=">=dev-java/stringtemplate-3.2
828 + >=dev-java/antlr-2.7.7:0[java]
829 + gunit? ( dev-java/junit:4 )"
830 +
831 +RDEPEND=">=virtual/jre-1.5
832 + ${COMMON_DEPEND}"
833 +
834 +DEPEND="${RDEPEND}
835 + >=virtual/jdk-1.5"
836 +
837 +java_prepare() {
838 + rm -v lib/*.jar lib/.*.jar || die
839 + rm -v runtime/ActionScript/project/lib/*.jar || die
840 + # We must bundle this as we can't depend on ourselves
841 + cp -v "${WORKDIR}"/*.java tool/src/main/antlr/org/antlr/grammar/v3 || die
842 + local version="${PV} $(date '+%B %d, %Y %T')"
843 + local propertyfile="tool/src/main/resources/org/antlr/antlr.properties"
844 + [[ $(egrep "^[^#]" ${propertyfile} | wc -l) != 1 ]] \
845 + && die "Unknown property found"
846 + sed -i "s/^\(antlr.version\)=.*$/\1=${version}/" ${propertyfile} || die
847 +}
848 +
849 +antlr2() {
850 + java -cp $(java-pkg_getjars antlr) antlr.Tool "${@}" || die "antlr2 failed"
851 +}
852 +
853 +antlr3() {
854 + local cp="${S}/bootstrap:${S}/tool/src/main/resources/"
855 + java -cp "${cp}":$(java-pkg_getjars antlr,stringtemplate) \
856 + org.antlr.Tool "${@}" || die "building v3 grammars failed"
857 +}
858 +
859 +build_antlr() {
860 + cd "${S}"
861 + local dest="${1}"
862 + # runtime
863 + find runtime -name "*.java" > "${T}/sources" || die
864 + # tool
865 + find tool/src/main -name "*.java" >> "${T}/sources" || die
866 + ejavac -d "${dest}" -cp $(java-pkg_getjars antlr,stringtemplate) "@${T}/sources"
867 +}
868 +
869 +# Uses maven so let's just do things manully for now
870 +# when bumping use jardiff and apicheck to make sure
871 +# produced jars are good
872 +src_compile() {
873 + einfo "Bootstrapping antlr3 with bundled sources"
874 + cd tool/src/main/antlr2/org/antlr/grammar/v2/ || die
875 + # the command line only takes one at a time
876 + for grammar in *.g; do
877 + antlr2 ${grammar} || die
878 + done
879 +
880 + cd "${S}" || die
881 + mkdir bootstrap || die
882 + build_antlr bootstrap
883 +
884 + einfo "Building v3 grammars with boostrapped antlr"
885 + local v3dir=tool/src/main/antlr/org/antlr/grammar/v3/
886 + rm -v "${v3dir}"/*.java || die
887 + antlr3 "${v3dir}"/*.g
888 +
889 + mkdir build || die
890 + cp -r "${S}"/tool/src/main/resources/* build || die
891 + build_antlr build
892 +
893 + if use gunit; then
894 + einfo "building gunit"
895 + antlr3 gunit/src/main/antlr3/org/antlr/gunit/*.g
896 +
897 + find gunit -name "*.java" > "${T}/gunit" || die
898 + ejavac -d build -cp $(java-pkg_getjars stringtemplate,junit-4):build \
899 + "@${T}/gunit"
900 +
901 + cp -vr gunit/src/main/resources/org build || die
902 + fi
903 +
904 + # jar things up
905 + cd build
906 + find -type f >> "${T}/classes" || die
907 + jar cf ${PN}3.jar "@${T}/classes" || die "jar failed"
908 +}
909 +
910 +src_install() {
911 + # Single jar like upstream
912 + java-pkg_dojar build/antlr3.jar
913 + java-pkg_dolauncher antlr3 --main org.antlr.Tool
914 + use gunit && java-pkg_dolauncher gunit --main org.antlr.gunit.Interp
915 +
916 + use source && java-pkg_dosrc tool/src/main/org \
917 + runtime/Java/src/main/java/org/
918 +}
919 +
920 +pkg_postinst() {
921 + elog "Currently the ebuild only has support for the Java backend."
922 +}
923
924 diff --git a/dev-java/antlr/antlr-3.1.3-r3.ebuild b/dev-java/antlr/antlr-3.1.3-r3.ebuild
925 new file mode 100644
926 index 0000000..5b97c27
927 --- /dev/null
928 +++ b/dev-java/antlr/antlr-3.1.3-r3.ebuild
929 @@ -0,0 +1,113 @@
930 +# Copyright 1999-2009 Gentoo Foundation
931 +# Distributed under the terms of the GNU General Public License v2
932 +# $Header: /var/cvsroot/gentoo-x86/dev-java/antlr/antlr-3.1.3-r2.ebuild,v 1.4 2009/12/29 17:33:15 josejx Exp $
933 +
934 +EAPI="2"
935 +JAVA_PKG_IUSE="source"
936 +
937 +inherit eutils java-pkg-2 java-ant-2
938 +
939 +DESCRIPTION="A parser generator for C++, C#, Java, and Python"
940 +HOMEPAGE="http://www.antlr.org/"
941 +# You need to generate v3 grammars so that boostrapping works
942 +SRC_URI="http://www.antlr.org/download/${P}.tar.gz
943 + mirror://gentoo/${P}-generated.tar.bz2"
944 +LICENSE="BSD"
945 +SLOT="3"
946 +KEYWORDS="amd64 ppc ppc64 x86"
947 +IUSE="gunit"
948 +
949 +COMMON_DEPEND=">=dev-java/stringtemplate-3.2
950 + >=dev-java/antlr-2.7.7:0[java]
951 + gunit? ( dev-java/junit:4 )"
952 +
953 +RDEPEND=">=virtual/jre-1.5
954 + ${COMMON_DEPEND}"
955 +
956 +DEPEND="${RDEPEND}
957 + >=virtual/jdk-1.5"
958 +
959 +java_prepare() {
960 + rm -v lib/*.jar lib/.*.jar || die
961 + rm -v runtime/ActionScript/project/lib/*.jar || die
962 + # We must bundle this as we can't depend on ourselves
963 + cp -v "${WORKDIR}"/*.java tool/src/main/antlr/org/antlr/grammar/v3 || die
964 + local version="${PV} $(date '+%B %d, %Y %T')"
965 + local propertyfile="tool/src/main/resources/org/antlr/antlr.properties"
966 + [[ $(egrep "^[^#]" ${propertyfile} | wc -l) != 1 ]] \
967 + && die "Unknown property found"
968 + sed -i "s/^\(antlr.version\)=.*$/\1=${version}/" ${propertyfile} || die
969 +}
970 +
971 +antlr2() {
972 + java -cp $(java-pkg_getjars antlr) antlr.Tool "${@}" || die "antlr2 failed"
973 +}
974 +
975 +antlr3() {
976 + local cp="${S}/bootstrap:${S}/tool/src/main/resources/"
977 + java -cp "${cp}":$(java-pkg_getjars antlr,stringtemplate) \
978 + org.antlr.Tool "${@}" || die "building v3 grammars failed"
979 +}
980 +
981 +build_antlr() {
982 + cd "${S}"
983 + local dest="${1}"
984 + # runtime
985 + find runtime -name "*.java" > "${T}/sources" || die
986 + # tool
987 + find tool/src/main -name "*.java" >> "${T}/sources" || die
988 + ejavac -d "${dest}" -cp $(java-pkg_getjars antlr,stringtemplate) "@${T}/sources"
989 +}
990 +
991 +# Uses maven so let's just do things manully for now
992 +# when bumping use jardiff and apicheck to make sure
993 +# produced jars are good
994 +src_compile() {
995 + einfo "Bootstrapping antlr3 with bundled sources"
996 + cd tool/src/main/antlr2/org/antlr/grammar/v2/ || die
997 + # the command line only takes one at a time
998 + for grammar in *.g; do
999 + antlr2 ${grammar} || die
1000 + done
1001 +
1002 + cd "${S}" || die
1003 + mkdir bootstrap || die
1004 + build_antlr bootstrap
1005 +
1006 + einfo "Building v3 grammars with boostrapped antlr"
1007 + local v3dir=tool/src/main/antlr/org/antlr/grammar/v3/
1008 + rm -v "${v3dir}"/*.java || die
1009 + antlr3 "${v3dir}"/*.g
1010 +
1011 + mkdir build || die
1012 + cp -r "${S}"/tool/src/main/resources/* build || die
1013 + build_antlr build
1014 +
1015 + if use gunit; then
1016 + einfo "building gunit"
1017 + antlr3 gunit/src/main/antlr3/org/antlr/gunit/*.g
1018 +
1019 + find gunit -name "*.java" > "${T}/gunit" || die
1020 + ejavac -d build -cp $(java-pkg_getjars stringtemplate,junit-4):build \
1021 + "@${T}/gunit"
1022 +
1023 + cp -vr gunit/src/main/resources/org build || die
1024 + fi
1025 +
1026 + # jar things up
1027 + cd build
1028 + find -type f >> "${T}/classes" || die
1029 + jar cf ${PN}3.jar "@${T}/classes" || die "jar failed"
1030 +}
1031 +
1032 +src_install() {
1033 + # Single jar like upstream
1034 + java-pkg_dojar build/antlr3.jar
1035 +
1036 + use source && java-pkg_dosrc tool/src/main/org \
1037 + runtime/Java/src/main/java/org/
1038 +}
1039 +
1040 +pkg_postinst() {
1041 + elog "Currently the ebuild only has support for the Java backend."
1042 +}
1043
1044 diff --git a/dev-java/antlr/antlr-3.3.ebuild b/dev-java/antlr/antlr-3.3.ebuild
1045 new file mode 100644
1046 index 0000000..0e631c2
1047 --- /dev/null
1048 +++ b/dev-java/antlr/antlr-3.3.ebuild
1049 @@ -0,0 +1,121 @@
1050 +# Copyright 1999-2009 Gentoo Foundation
1051 +# Distributed under the terms of the GNU General Public License v2
1052 +# $Header: /var/cvsroot/gentoo-x86/dev-java/antlr/antlr-3.1.3-r2.ebuild,v 1.4 2009/12/29 17:33:15 josejx Exp $
1053 +
1054 +EAPI="4"
1055 +JAVA_PKG_IUSE="source"
1056 +
1057 +inherit eutils java-pkg-2 java-ant-2
1058 +
1059 +DESCRIPTION="A parser generator for C++, C#, Java, and Python"
1060 +HOMEPAGE="http://www.antlr.org/"
1061 +# You need to generate v3 grammars so that boostrapping works
1062 +SRC_URI="http://www.antlr.org/download/${P}.tar.gz
1063 + mirror://gentoo/${P}-generated.tar.bz2"
1064 +LICENSE="BSD"
1065 +SLOT="3.3"
1066 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
1067 +IUSE="gunit"
1068 +
1069 +# the binary is migrated to this slot and
1070 +# removed from :3
1071 +COMMON_DEPEND=">=dev-java/stringtemplate-3.2.1
1072 + >=dev-java/antlr-2.7.7:0[java]
1073 + !<=dev-java/antlr-3.1.3-r2:3
1074 + gunit? ( dev-java/junit:4 )"
1075 +
1076 +RDEPEND=">=virtual/jre-1.5
1077 + ${COMMON_DEPEND}"
1078 +
1079 +DEPEND="${RDEPEND}
1080 + >=virtual/jdk-1.5"
1081 +
1082 +java_prepare() {
1083 + epatch "${FILESDIR}/3.3-gunit-0.patch"
1084 + epatch "${FILESDIR}/3.3-gunit-1.patch"
1085 + epatch "${FILESDIR}/3.3-gunit-2.patch"
1086 + rm -v lib/*.jar || die
1087 + rm -v runtime/ActionScript/project/lib/*.jar || die
1088 + # We must bundle this as we can't depend on ourselves
1089 + cp -v "${WORKDIR}"/tool-generated/*.java tool/src/main/antlr3/ || die
1090 + cp -v "${WORKDIR}"/gunit-generated/*.java gunit/src/main/antlr3/ || die
1091 + local version="${PV} $(date '+%B %d, %Y %T')"
1092 + local propertyfile="tool/src/main/resources/org/antlr/antlr.properties"
1093 + [[ $(egrep "^[^#]" ${propertyfile} | egrep "antlr.version" | wc -l) != 1 ]] \
1094 + && die "Unknown property found"
1095 + sed -i "s/^\(antlr.version\)=.*$/\1=${version}/" ${propertyfile} || die
1096 +}
1097 +
1098 +antlr2() {
1099 + java -cp $(java-pkg_getjars antlr) antlr.Tool "${@}" || die "antlr2 failed"
1100 +}
1101 +
1102 +antlr3() {
1103 + local cp="${S}/bootstrap:${S}/tool/src/main/resources/"
1104 + java -cp "${cp}":$(java-pkg_getjars antlr,stringtemplate) \
1105 + org.antlr.Tool "${@}" || die "building v3 grammars failed"
1106 +}
1107 +
1108 +build_antlr() {
1109 + cd "${S}"
1110 + local dest="${1}"
1111 + # runtime
1112 + find runtime/Java -name "*.java" > "${T}/sources" || die
1113 + # tool
1114 + find tool/src/main -name "*.java" >> "${T}/sources" || die
1115 + ejavac -d "${dest}" -cp $(java-pkg_getjars antlr,stringtemplate) "@${T}/sources"
1116 +}
1117 +
1118 +# Uses maven so let's just do things manully for now
1119 +# when bumping use jardiff and apicheck to make sure
1120 +# produced jars are good
1121 +src_compile() {
1122 + einfo "Bootstrapping antlr3 with bundled sources"
1123 + cd tool/src/main/antlr2/org/antlr/grammar/v2/ || die
1124 + # the command line only takes one at a time
1125 + for grammar in *.g; do
1126 + antlr2 ${grammar} || die
1127 + done
1128 +
1129 + cd "${S}" || die
1130 + mkdir bootstrap || die
1131 + build_antlr bootstrap
1132 +
1133 + einfo "Building v3 grammars with boostrapped antlr"
1134 + rm -v tool/src/main/antlr3/*.java || die
1135 + antlr3 tool/src/main/antlr3/org/antlr/grammar/v3/*.g
1136 +
1137 + mkdir build || die
1138 + cp -r "${S}"/tool/src/main/resources/* build || die
1139 + build_antlr build
1140 +
1141 + if use gunit; then
1142 + einfo "building gunit"
1143 + antlr3 gunit/src/main/antlr3/org/antlr/gunit/*.g
1144 +
1145 + find gunit -name "*.java" > "${T}/gunit" || die
1146 + ejavac -d build -cp $(java-pkg_getjars stringtemplate,junit-4):build \
1147 + "@${T}/gunit"
1148 +
1149 + cp -vr gunit/src/main/resources/org build || die
1150 + fi
1151 +
1152 + # jar things up
1153 + cd build
1154 + find -type f >> "${T}/classes" || die
1155 + jar cf ${PN}3.jar "@${T}/classes" || die "jar failed"
1156 +}
1157 +
1158 +src_install() {
1159 + # Single jar like upstream
1160 + java-pkg_dojar build/antlr3.jar
1161 + java-pkg_dolauncher antlr3 --main org.antlr.Tool
1162 + use gunit && java-pkg_dolauncher gunit --main org.antlr.gunit.Interp
1163 +
1164 + use source && java-pkg_dosrc tool/src/main/org \
1165 + runtime/Java/src/main/java/org/
1166 +}
1167 +
1168 +pkg_postinst() {
1169 + elog "Currently the ebuild only has support for the Java backend."
1170 +}
1171
1172 diff --git a/dev-java/antlr/metadata.xml b/dev-java/antlr/metadata.xml
1173 new file mode 100644
1174 index 0000000..a741ce4
1175 --- /dev/null
1176 +++ b/dev-java/antlr/metadata.xml
1177 @@ -0,0 +1,11 @@
1178 +<?xml version="1.0" encoding="UTF-8"?>
1179 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
1180 +<pkgmetadata>
1181 + <herd>java</herd>
1182 + <use>
1183 + <flag name="script">Install a script to run antlr</flag>
1184 + <flag name="gunit" restrict=">=dev-java/antlr-3.1.3-r1">
1185 + gUnit is a "Unit Test" framework for ANTLR grammars
1186 + </flag>
1187 + </use>
1188 +</pkgmetadata>