diff options
-rw-r--r-- | dev-java/antlr/ChangeLog | 334 | ||||
-rw-r--r-- | dev-java/antlr/Manifest | 13 | ||||
-rw-r--r-- | dev-java/antlr/antlr-2.7.7-r1.ebuild | 124 | ||||
-rw-r--r-- | dev-java/antlr/antlr-2.7.7-r2.ebuild | 147 | ||||
-rw-r--r-- | dev-java/antlr/antlr-2.7.7.ebuild | 124 | ||||
-rw-r--r-- | dev-java/antlr/antlr-3.1.3-r2.ebuild | 115 | ||||
-rw-r--r-- | dev-java/antlr/antlr-3.1.3-r3.ebuild | 113 | ||||
-rw-r--r-- | dev-java/antlr/antlr-3.3.ebuild | 121 | ||||
-rw-r--r-- | dev-java/antlr/metadata.xml | 11 |
9 files changed, 1102 insertions, 0 deletions
diff --git a/dev-java/antlr/ChangeLog b/dev-java/antlr/ChangeLog new file mode 100644 index 0000000..b8d5784 --- /dev/null +++ b/dev-java/antlr/ChangeLog @@ -0,0 +1,334 @@ +# ChangeLog for dev-java/antlr +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/antlr/ChangeLog,v 1.87 2011/06/23 17:15:35 ranger Exp $ + + 23 Jun 2011; Brent Baude <ranger@gentoo.org> antlr-2.7.7-r2.ebuild: + Marking antlr-2.7.7-r2 ppc for bug 366423 + + 11 May 2011; Christoph Mende <angelos@gentoo.org> antlr-2.7.7-r2.ebuild: + Stable on amd64 wrt bug #366423 + + 10 May 2011; Pawel Hajdan jr <phajdan.jr@gentoo.org> antlr-2.7.7-r2.ebuild: + x86 stable wrt bug #366423 + +*antlr-2.7.7-r2 (08 Apr 2011) + + 08 Apr 2011; Sébastien Fabbro <bicatali@gentoo.org> +antlr-2.7.7-r2.ebuild: + Now builds a shared library, older static non-PIC library is built with use + flag static-libs + + 16 Jan 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + antlr-2.7.7.ebuild, antlr-2.7.7-r1.ebuild: + Use Python 2, fix deprecation warnings (bug #312147). + +*antlr-2.7.7-r1 (16 Jan 2011) + + 16 Jan 2011; Miroslav Šulc <fordfrog@gentoo.org> +antlr-2.7.7-r1.ebuild: + fixed bug #349678 + + 29 Dec 2009; Joseph Jezak <josejx@gentoo.org> antlr-3.1.3-r2.ebuild: + Marked ppc stable for bug #287425. + + 14 Dec 2009; Brent Baude <ranger@gentoo.org> antlr-3.1.3-r2.ebuild: + Marking antlr-3.1.3-r2 ppc64 for bug 287425 + + 09 Nov 2009; Markus Meier <maekke@gentoo.org> antlr-3.1.3-r2.ebuild: + amd64/x86 stable, bug #287425 + + 03 Nov 2009; Vlastimil Babka <caster@gentoo.org> -antlr-3.1.3.ebuild, + -antlr-3.1.3-r1.ebuild: + Remove old. + +*antlr-3.1.3-r2 (01 May 2009) + + 01 May 2009; Petteri Räty <betelgeuse@gentoo.org> +antlr-3.1.3-r2.ebuild: + Sed in antlr.version to properties file. Python target doesn't work + without it being set properly. + + 26 Apr 2009; Brent Baude <ranger@gentoo.org> antlr-3.1.3-r1.ebuild: + Marking antlr-3.1.3-r1 ~ppc for bug 264195 + + 24 Apr 2009; Brent Baude <ranger@gentoo.org> antlr-3.1.3-r1.ebuild: + Marking antlr-3.1.3-r1 ~ppc64 for bug 264259 + + 11 Apr 2009; Alistair Bush <ali_bush@gentoo.org> antlr-3.1.3-r1.ebuild: + Keyword ~amd64. + +*antlr-3.1.3-r1 (10 Apr 2009) + + 10 Apr 2009; Petteri Räty <betelgeuse@gentoo.org> metadata.xml, + +antlr-3.1.3-r1.ebuild: + Add support for gunit. + + 29 Mar 2009; Serkan Kaba <serkan@gentoo.org> +files/2.7.7-makefixes.patch, + antlr-2.7.7: + Fix bug #256880. Thanks to Diego E. Pettenò <flameeyes@gentoo.org> for + help. + + 29 Mar 2009; Petteri Räty <betelgeuse@gentoo.org> + +files/2.7.7-gcc-4.4.patch, antlr-2.7.7.ebuild: + Add patch for gcc 4.4. Fixes bug #262319. + + 29 Mar 2009; Petteri Räty <betelgeuse@gentoo.org> antlr-3.1.3.ebuild: + Require java use flag on antlr:0. + +*antlr-3.1.3 (29 Mar 2009) + + 29 Mar 2009; Petteri Räty <betelgeuse@gentoo.org> +antlr-3.1.3.ebuild: + Version bump. Fixes bug #146952. Keywording tracked in bug #264195. Adding + support for runtimes tracked in bug #264196. + + 03 Jan 2009; Raúl Porcel <armin76@gentoo.org> antlr-2.7.7.ebuild: + Drop ia64 keyword + + 26 Jun 2008; Serkan Kaba <serkan@gentoo.org> antlr-2.7.7.ebuild: + Fix antlr2 website. Thanks calculus <calculuspenguin@yahoo.com> for + reporting. + + 05 Apr 2008; Petteri Räty <betelgeuse@gentoo.org> antlr-2.7.7.ebuild: + Call base_src_unpack explicitly in src_unpack. Fixes bug #207361. + + 04 Apr 2008; Petteri Räty <betelgeuse@gentoo.org> + +files/2.7.7-gcc-4.3.patch, antlr-2.7.7.ebuild: + Add patch for gcc-4.3. Fixes bug #207631. Thanks to impulze@impulze.org for + the patch. + + 08 Mar 2008; Petteri Räty <betelgeuse@gentoo.org> antlr-2.7.7.ebuild: + Rename nocxx and nojava to cxx and java and turn them on by default using + EAPI 1. + + 08 Mar 2008; Petteri Räty <betelgeuse@gentoo.org> antlr-2.7.7.ebuild: + Fix quoting and nocxx use under the examples use flag. Fixes bug #212703. + Thanks to maekke for the patch. + + 23 Jun 2007; Petteri Räty <betelgeuse@gentoo.org> antlr-2.7.7.ebuild: + Fix bug #172104 so that antlr builds when pnet is installed. + + 17 Mar 2007; Petteri Räty <betelgeuse@gentoo.org> -antlr-2.7.5-r2.ebuild, + -antlr-2.7.5-r3.ebuild: + Cleanup. + + 15 Mar 2007; Joshua Nichols <nichoj@gentoo.org> antlr-2.7.7.ebuild: + Stable on amd64 for bug #166857. + + 18 Feb 2007; nixnut <nixnut@gentoo.org> antlr-2.7.7.ebuild: + Stable on ppc wrt bug 166857 + + 16 Feb 2007; Markus Rothe <corsair@gentoo.org> antlr-2.7.7.ebuild: + Stable on ppc64; bug #166857 + + 14 Feb 2007; Christian Faulhammer <opfer@gentoo.org> antlr-2.7.7.ebuild: + stable x86; bug 166857 + + 26 Jan 2007; Krzysiek Pawlik <nelchael@gentoo.org> antlr-2.7.7.ebuild: + Added ~ppc. + + 09 Jan 2007; Steve Dibb <beandog@gentoo.org> antlr-2.7.5-r3.ebuild: + amd64 stable, bug 158091 + + 05 Jan 2007; Diego Pettenò <flameeyes@gentoo.org> antlr-2.7.5-r2.ebuild, + antlr-2.7.5-r3.ebuild, antlr-2.7.7.ebuild: + Remove gnuconfig_update usage, leave it to econf. + + 30 Dec 2006; Markus Rothe <corsair@gentoo.org> antlr-2.7.5-r3.ebuild: + Stable on ppc64; bug #158091 + + 14 Dec 2006; Christian Faulhammer <opfer@gentoo.org> + antlr-2.7.5-r3.ebuild: + stable x86, bug #158091 + +*antlr-2.7.7 (14 Dec 2006) + + 14 Dec 2006; Vlastimil Babka <caster@gentoo.org> -antlr-2.7.3.ebuild, + -antlr-2.7.4.ebuild, +antlr-2.7.7.ebuild: + Version bump, removed old versions. + + 07 Dec 2006; Diego Pettenò <flameeyes@gentoo.org> antlr-2.7.5-r3.ebuild: + Add ~x86-fbsd keyword. + + 16 Oct 2006; Joshua Nichols <nichoj@gentoo.org> antlr-2.7.5-r3.ebuild: + Keyworded ~ia64. + + 05 Oct 2006; Gustavo Zacarias <gustavoz@gentoo.org> antlr-2.7.3.ebuild: + Dropping sparc keywords, see #96229 + + 24 Sep 2006; Joshua Nichols <nichoj@gentoo.org> antlr-2.7.5-r3.ebuild: + Bumped jdk dependency to 1.3, to fix compilation with jikes / kaffe. + + 14 Sep 2006; Joshua Nichols <nichoj@gentoo.org> antlr-2.7.5-r3.ebuild: + Added back missing JAVACFLAGS additions. + + 13 Sep 2006; Joshua Nichols <nichoj@gentoo.org> antlr-2.7.5-r2.ebuild, + antlr-2.7.5-r3.ebuild: + Many cleanups. + + 23 Jul 2006; Joshua Nichols <jnichols@gentoo.org> antlr-2.7.5-r3.ebuild: + Removed findutils dep as per bug #141423 + +*antlr-2.7.5-r3 (21 Jul 2006) + + 21 Jul 2006; Joshua Nichols <jnichols@gentoo.org> +antlr-2.7.5-r3.ebuild: + Revision bump to use new Java system. + + 24 May 2006; Michael Hanselmann <hansmi@gentoo.org> antlr-2.7.5-r2.ebuild: + Stable on ppc. + + 16 May 2006; Markus Rothe <corsair@gentoo.org> antlr-2.7.5-r2.ebuild: + Stable on ppc64; bug #133320 + + 15 May 2006; Petteri Räty <betelgeuse@gentoo.org> antlr-2.7.5-r2.ebuild: + antlr now inherits java-utils so the error message when a jre is set as the + system jdk is a lot more useful. Fixes bug #133355. + + 15 May 2006; Jon Hood <squinky86@gentoo.org> antlr-2.7.5-r2.ebuild: + Stable on amd64 wrt #133320. + + 14 May 2006; Petteri Räty <betelgeuse@gentoo.org> antlr-2.7.5-r2.ebuild: + Marked 2.7.5-r2 stable wrt bug #133320 and removed old revision. + + 11 May 2006; Tobias Scherbaum <dertobi123@gentoo.org> + antlr-2.7.5-r2.ebuild: + Re-added to ~ppc, bug #132956 + + 23 Jan 2006; Karl Trygve Kalleberg <karltk@gentoo.org> + -antlr-2.7.5-r1.ebuild: + Removed old revision. + + 29 Dec 2005; Saleem Abdulrasool <compnerd@gentoo.org> + antlr-2.7.5-r2.ebuild: + Fixing java screwup, thanks to axxo for noticing it. + +*antlr-2.7.5-r2 (29 Dec 2005) + + 29 Dec 2005; Saleem Abdulrasool <compnerd@gentoo.org> + +antlr-2.7.5-r2.ebuild: + Adding nojava useflag as per axxo's request. Fixing script issue (bug #80862) + with script useflag. + + 13 Dec 2005; Saleem Abdulrasool <compnerd@gentoo.org> + antlr-2.7.5-r1.ebuild: + Fixing the jar install. + + 10 Dec 2005; Saleem Abdulrasool <compnerd@gentoo.org> -antlr-2.7.5.ebuild: + Pruning old 2.7.5 ebuild + +*antlr-2.7.5-r1 (10 Dec 2005) + + 10 Dec 2005; Saleem Abdulrasool <compnerd@gentoo.org> +files/antlr.pc.in, + +antlr-2.7.5-r1.ebuild: + Adding new revision of ANTLR 2.7.5 which resolves bug #80862. Adds a block on + pccts. + + 09 Jul 2005; Thomas Matthijs <axxo@gentoo.org> antlr-2.7.3.ebuild, + antlr-2.7.4.ebuild, antlr-2.7.5.ebuild: + add source use flag + +*antlr-2.7.5 (03 Apr 2005) + + 03 Apr 2005; Thomas Matthijs <axxo@gentoo.org> +antlr-2.7.5.ebuild: + version bump + + 05 Feb 2005; Jan Brinkmann <luckyduck@gentoo.org> antlr-2.7.4.ebuild: + added support for the doc and the examples useflag. fixes #80862 + + 26 Jan 2005; Markus Rothe <corsair@gentoo.org> antlr-2.7.4.ebuild: + Stable on ppc64 + + 18 Dec 2004; Markus Rothe <corsair@gentoo.org> antlr-2.7.4.ebuild: + added ~ppc64 to KEYWORDS and gnuconfig_update + + 22 Oct 2004; Dylan Carlson <absinthe@gentoo.org> antlr-2.7.4.ebuild: + Keywords ~amd64. + +*antlr-2.7.4 (16 Oct 2004) + + 16 Oct 2004; Thomas Matthijs <axxo@gentoo.org> antlr-2.7.3.ebuild, + antlr-2.7.4.ebuild: + use java-pkg_dohtml instead of dohtml to also install the package-list in + case of api docs: #50740 + + 04 Sep 2004; Thomas Matthijs <axxo@gentoo.org> antlr-2.7.3.ebuild: + stable on sparc + + 15 Jul 2004; Thomas Matthijs <axxo@gentoo.org> : + version bump + +*antlr-2.7.3 (31 Mar 2004) + + 31 Mar 2004; Chris Aniszczyk <zx@gentoo.org> antlr-2.7.3.ebuild: + Marking stable on x86. + + 22 Mar 2004; Chris Aniszczyk <zx@gentoo.org> antlr-2.7.2.ebuild: + Clean up + Version bump. Fixes #45281 + + 20 Jan 2004; Adrian Almenar <strider@gentoo.org> antlr-2.7.2.ebuild: + Stable on sparc. + + 19 Jan 2004; Adrian Almenar <strider@gentoo.org> antlr-2.7.2.ebuild: + Added ~ppc keyword. + + 18 Jan 2004; Adrian Almenar <strider@gentoo.org> antlr-2.7.1-r3.ebuild, + antlr-2.7.2.ebuild: + Added amd64 keyword. Removed old version. + + 16 Dec 2003; Jason Wever <weeve@gentoo.org> antlr-2.7.2.ebuild: + Added ~sparc keyword to fix broken dependencies in dev-java/makeme. + + 15 Aug 2003; Adrian Almenar <strider@gentoo.org> antlr-2.7.1-r3.ebuild, + antlr-2.7.2.ebuild, antlr-2.7.2_alpha2-r1.ebuild, antlr-2.7.2_alpha2.ebuild: + Fixes bug 21887, That makes the ebuild to build with jikes java compiler, + Thanks to Jonas Berlin <jberlin@cc.hut.fi> for the patch + +*antlr-2.7.2 (05 Apr 2003) + 02 Apr 2003; Robin Johnson <robbat2@gentoo.org> antlr-2.7.2.ebuild, + files/digest-antlr-2.7.2: + Updated to new version, slight change in ebuild script for cleanliness + changed description to reflect removal of Sather support + Fixes to make it compile now included + +*antlr-2.7.2_alpha2-r1 (10 Jan 2003) + + 10 Jan 2003; Matthew Kennedy <mkennedy@gentoo.org> + antlr-2.7.2_alpha2-r1.ebuild, files/digest-antlr-2.7.2_alpha2-r1, + files/antrl-2.7.2_alpha2-r1-gcc3-gentoo.patch, ChangeLog : + + Code fix for GCC 3.2.1. No oustanding bug out on this. + +*antlr-2.7.2_alpha2 (25 Jun 2002) + + 01 Aug 2002; Karl Trygve Kalleberg <karltk@gentoo.org> antlr-2.7.2_alpha2.ebuild files/digest-antlr-2.7.2_alpha2 : + + Added KEYWORDS. + + 25 Jun 2002; Karl Trygve Kalleberg <karltk@gentoo.org> antlr-2.7.2_alpha2.ebuild files/digest-antlr-2.7.2_alpha2 : + + New upstream version. + +*antlr-2.7.1-r3 (10 May 2002) + + 01 Aug 2002; Karl Trygve Kalleberg <karltk@gentoo.org> antlr-2.7.2_alpha2.ebuild files/digest-antlr-2.7.2_alpha2 : + + Added SLOT, KEYWORDS and LICENSE. + + 10 May 2002; Karl Trygve Kalleberg <karltk@gentoo.org> antlr-2.7.1-r3.ebuild files/digest-antlr-2.7.1-r3: + + Now the installed jarballs are properly registered so that they are noticed + by java-config. + + Removed antlr-2.7.1-r2.ebuild files/digest-antlr-2.7.1-r2 + +*antlr-2.7.1-r2 (15 Mar 2002) + + 1 Feb 2002; G.Bevin <gbevin@gentoo.org> antlr-2.7.1-r2.ebuild digest/digest-antlr-2.7.1-r2 : + + Added support for c++ library and includes + +*antlr-2.7.1-r1 (1 Feb 2002) + + 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog : + + Added initial ChangeLog which should be updated whenever the package is + updated in any way. This changelog is targetted to users. This means that the + comments should well explained and written in clean English. The details about + writing correct changelogs are explained in the skel.ChangeLog file which you + can find in the root directory of the portage repository. diff --git a/dev-java/antlr/Manifest b/dev-java/antlr/Manifest new file mode 100644 index 0000000..f6de793 --- /dev/null +++ b/dev-java/antlr/Manifest @@ -0,0 +1,13 @@ +DIST antlr-2.7.7.tar.gz 1816180 RMD160 0b7951a28b748e912721fe0f6de4095d9f8da57d SHA1 802655c343cc7806aaf1ec2177a0e663ff209de1 SHA256 853aeb021aef7586bda29e74a6b03006bcb565a755c86b66032d8ec31b67dbb9 +DIST antlr-3.1.3-generated.tar.bz2 47167 RMD160 9ea64a67aba65bf27e8abbdfbd1a28a0ea2b7698 SHA1 21addec96267b43742e2b2bbd6c7e245db644c38 SHA256 ed326de0f1f92dd72e8d9644e8eaf59d02b9725b4b5218f5c54e12100f8d05f4 +DIST antlr-3.1.3.tar.gz 10743515 RMD160 e772197a8a89783ec7cb3e0005913e0396a0ca4c SHA1 2558d373c1d94d8fdd9d26a5be390316aa6b5350 SHA256 1fca0fc7304140807e64ec263a58d93ef1b380cfb6407084e6909f8220bc1039 +DIST antlr-3.3-generated.tar.bz2 74064 RMD160 947c556ecef35adb5d194394f32bd8de0a65cc10 SHA1 d12604d33017c102ea841cb9da83db1855cf27b7 SHA256 9e8527a06e864dc51a53f7b7e5116fe0f475e39cc1c60a6e754cae353523413a +DIST antlr-3.3.tar.gz 8923324 RMD160 646ba0b783525c11d1828665d33ee4cd979ec19d SHA1 01d9cc2c9a1dde1de7845ada71128ef8a351767d SHA256 75ac93389d6ebfbd89970a79fb84cf62df568452cbdd249b698192aadf2eef61 +EBUILD antlr-2.7.7-r1.ebuild 2947 RMD160 c839f55ba5c00ffbb01fc39bf82415055b51ff47 SHA1 cc3a51c392e6fb9c45b5920b11a4a1b4b41b470b SHA256 05b8bc38cfa262ebbd2b124f6e736f858ca75520440fb7f916bd7cba020bab8f +EBUILD antlr-2.7.7-r2.ebuild 3722 RMD160 e06e82984cc67b6a926db8a289866f6105ddc540 SHA1 cc1706c4fc5cf90100a59c458ddb64ceac7b5c35 SHA256 f3a8663738dd3d24819c6d1f8bb99904082d7c51e2019b7abafd876f004ee1c1 +EBUILD antlr-2.7.7.ebuild 2934 RMD160 b11efc4a4e8d5e68b423a4c8e16cb4a8d2f8c374 SHA1 1612e05a6715cba4ae1da0a2fd0ca91d4356b53b SHA256 3db0e8b0f1de5a77d714e10784fa550ad84a24e636e6503d2f9ad99a27376385 +EBUILD antlr-3.1.3-r2.ebuild 3341 RMD160 529b1c4468e2eddf2545094dac0858b49f3fd216 SHA1 159aaafa147e050a035742b818493e9520fe3c69 SHA256 ee273067958c14b20df2061ed26743c7046c5713fbfe6d3b61614f4c6a8c6234 +EBUILD antlr-3.1.3-r3.ebuild 3220 RMD160 4cf2fd9f1976fdba83c602efda751d5d723accfc SHA1 781e63770757c18fe6f19cf216fb0305b200727a SHA256 e30bcf38f575cb9ba5d99d57683809587b1130178c9cce390afcd4d9bf70008c +EBUILD antlr-3.3.ebuild 3633 RMD160 2b42c4a74967fd6bfbbd29f845747821d738623f SHA1 23e02f5127db92034282cf4b52f321203f584f4d SHA256 161bcb79f6753676257450d5a82e5f68420682dd2fd44ba264cf0b8a5a5e05d5 +MISC ChangeLog 11814 RMD160 6aca879cd5425ec8ab23cba2cb981493aeb6853c SHA1 875c9166d3a7e02ff442ea7c4918968c159e98b5 SHA256 1513b9e2f314aa5d71bb928b57cc3f7a9d0e0c5d6f73dd98e9beadf1a97a1048 +MISC metadata.xml 363 RMD160 72102b036fe76e530f4519a0aa081778aae7262a SHA1 b8f61d984af7ca03255f57bf4126799e58863f2d SHA256 6aa7ec680dc08ab936d6f59f1444bba56902fec42eaf16d5c9919350a5c355cc diff --git a/dev-java/antlr/antlr-2.7.7-r1.ebuild b/dev-java/antlr/antlr-2.7.7-r1.ebuild new file mode 100644 index 0000000..bacc0f6 --- /dev/null +++ b/dev-java/antlr/antlr-2.7.7-r1.ebuild @@ -0,0 +1,124 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $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 $ + +EAPI="3" +PYTHON_DEPEND="python? 2" + +inherit base java-pkg-2 mono distutils multilib + +DESCRIPTION="A parser generator for C++, C#, Java, and Python" +HOMEPAGE="http://www.antlr2.org/" +SRC_URI="http://www.antlr2.org/download/${P}.tar.gz" + +LICENSE="ANTLR" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd" +IUSE="doc debug examples mono +cxx +java python script source" + +# TODO do we actually need jdk at runtime? +RDEPEND=">=virtual/jdk-1.3 + mono? ( dev-lang/mono )" +DEPEND="${RDEPEND} + script? ( !dev-util/pccts ) + source? ( app-arch/zip )" + +PATCHES=( "${FILESDIR}/2.7.7-gcc-4.3.patch" "${FILESDIR}/2.7.7-gcc-4.4.patch" "${FILESDIR}/2.7.7-makefixes.patch" ) + +pkg_setup() { + java-pkg-2_pkg_setup + + if use python; then + python_set_active_version 2 + python_pkg_setup + fi +} + +src_prepare() { + base_src_prepare +} + +src_configure() { + # don't ask why, but this is needed for stuff to get built properly + # across the various JDKs + JAVACFLAGS="+ ${JAVACFLAGS}" + + # mcs for https://bugs.gentoo.org/show_bug.cgi?id=172104 + CSHARPC="mcs" econf $(use_enable java) \ + $(use_enable python) \ + $(use_enable mono csharp) \ + $(use_enable debug) \ + $(use_enable examples) \ + $(use_enable cxx) \ + --enable-verbose +} + +src_compile() { + emake || die "compile failed" + + sed -e "s|@prefix@|/usr/|" \ + -e 's|@exec_prefix@|${prefix}|' \ + -e "s|@libdir@|\$\{exec_prefix\}/$(get_libdir)/antlr|" \ + -e 's|@libs@|-r:\$\{libdir\}/antlr.astframe.dll -r:\$\{libdir\}/antlr.runtime.dll|' \ + -e "s|@VERSION@|${PV}|" \ + "${FILESDIR}"/antlr.pc.in > "${S}"/antlr.pc +} + +src_install() { + exeinto /usr/bin + doexe "${S}"/scripts/antlr-config + + if use cxx ; then + cd "${S}"/lib/cpp + einstall || die "failed to install C++ files" + fi + + if use java ; then + java-pkg_dojar "${S}"/antlr/antlr.jar + + use script && java-pkg_dolauncher antlr --main antlr.Tool + + use source && java-pkg_dosrc "${S}"/antlr + use doc && java-pkg_dohtml -r "${S}"/doc/* + fi + + if use mono ; then + cd "${S}"/lib + + dodir /usr/$(get_libdir)/antlr/ + insinto /usr/$(get_libdir)/antlr/ + + doins antlr.astframe.dll + doins antlr.runtime.dll + + insinto /usr/$(get_libdir)/pkgconfig + doins "${S}"/antlr.pc + fi + + if use python ; then + cd "${S}"/lib/python + distutils_src_install + fi + + if use examples ; then + find "${S}"/examples -iname Makefile\* -exec rm \{\} \; + + dodir /usr/share/doc/${PF}/examples + insinto /usr/share/doc/${PF}/examples + + use cxx && doins -r "${S}"/examples/cpp + use java && doins -r "${S}"/examples/java + use mono && doins -r "${S}"/examples/csharp + use python && doins -r "${S}"/examples/python + fi + + newdoc "${S}"/README.txt README || die +} + +pkg_postinst() { + use python && distutils_pkg_postinst +} + +pkg_postrm() { + use python && distutils_pkg_postrm +} diff --git a/dev-java/antlr/antlr-2.7.7-r2.ebuild b/dev-java/antlr/antlr-2.7.7-r2.ebuild new file mode 100644 index 0000000..aa20f1a --- /dev/null +++ b/dev-java/antlr/antlr-2.7.7-r2.ebuild @@ -0,0 +1,147 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $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 $ + +EAPI="3" +PYTHON_DEPEND="python? 2" + +inherit base java-pkg-2 mono distutils multilib toolchain-funcs versionator + +DESCRIPTION="A parser generator for C++, C#, Java, and Python" +HOMEPAGE="http://www.antlr2.org/" +SRC_URI="http://www.antlr2.org/download/${P}.tar.gz" + +LICENSE="ANTLR" +SLOT="0" +KEYWORDS="amd64 ppc ~ppc64 x86 ~x86-fbsd" +IUSE="doc debug examples mono +cxx +java python script source static-libs" + +# TODO do we actually need jdk at runtime? +RDEPEND=">=virtual/jdk-1.3 + mono? ( dev-lang/mono )" +DEPEND="${RDEPEND} + script? ( !dev-util/pccts ) + source? ( app-arch/zip )" + +PATCHES=( "${FILESDIR}/2.7.7-gcc-4.3.patch" "${FILESDIR}/2.7.7-gcc-4.4.patch" "${FILESDIR}/2.7.7-makefixes.patch" ) + +make_shared_lib() { + local soname=$(basename "${1%.a}").so.$(get_major_version) + einfo "Making ${soname}" + ${2:-$(tc-getCC)} ${LDFLAGS} \ + -shared -Wl,-soname="${soname}" \ + -Wl,--whole-archive "${1}" -Wl,--no-whole-archive \ + -o $(dirname "${1}")/"${soname}" || return 1 +} + +pkg_setup() { + java-pkg-2_pkg_setup + + if use python; then + python_set_active_version 2 + python_pkg_setup + fi +} + +src_prepare() { + base_src_prepare + sed -i \ + -e 's/install:.*this-install/install:/' \ + lib/cpp/src/Makefile.in || die +} + +src_configure() { + # don't ask why, but this is needed for stuff to get built properly + # across the various JDKs + JAVACFLAGS="+ ${JAVACFLAGS}" + + # mcs for https://bugs.gentoo.org/show_bug.cgi?id=172104 + CSHARPC="mcs" econf $(use_enable java) \ + $(use_enable python) \ + $(use_enable mono csharp) \ + $(use_enable debug) \ + $(use_enable examples) \ + $(use_enable cxx) \ + --enable-verbose +} + +src_compile() { + emake CXXFLAGS="${CXXFLAGS} -fPIC" || die "compile failed" + if use cxx; then + pushd lib/cpp/src > /dev/null + make_shared_lib libantlr.a || die + if use static-libs; then + make clean + emake || die "compile static failed" + fi + popd > /dev/null + fi + sed -e "s|@prefix@|/usr/|" \ + -e 's|@exec_prefix@|${prefix}|' \ + -e "s|@libdir@|\$\{exec_prefix\}/$(get_libdir)/antlr|" \ + -e 's|@libs@|-r:\$\{libdir\}/antlr.astframe.dll -r:\$\{libdir\}/antlr.runtime.dll|' \ + -e "s|@VERSION@|${PV}|" \ + "${FILESDIR}"/antlr.pc.in > "${S}"/antlr.pc +} + +src_install() { + exeinto /usr/bin + doexe "${S}"/scripts/antlr-config + + if use cxx ; then + cd "${S}"/lib/cpp + einstall || die "failed to install C++ files" + dolib.so src/libantlr.so* || die + dosym libantlr.so.$(get_major_version) /usr/$(get_libdir)/libantlr.so + use static-libs && dolib.a src/libantlr.a + fi + + if use java ; then + java-pkg_dojar "${S}"/antlr/antlr.jar + + use script && java-pkg_dolauncher antlr --main antlr.Tool + + use source && java-pkg_dosrc "${S}"/antlr + use doc && java-pkg_dohtml -r "${S}"/doc/* + fi + + if use mono ; then + cd "${S}"/lib + + dodir /usr/$(get_libdir)/antlr/ + insinto /usr/$(get_libdir)/antlr/ + + doins antlr.astframe.dll + doins antlr.runtime.dll + + insinto /usr/$(get_libdir)/pkgconfig + doins "${S}"/antlr.pc + fi + + if use python ; then + cd "${S}"/lib/python + distutils_src_install + fi + + if use examples ; then + find "${S}"/examples -iname Makefile\* -exec rm \{\} \; + + dodir /usr/share/doc/${PF}/examples + insinto /usr/share/doc/${PF}/examples + + use cxx && doins -r "${S}"/examples/cpp + use java && doins -r "${S}"/examples/java + use mono && doins -r "${S}"/examples/csharp + use python && doins -r "${S}"/examples/python + fi + + newdoc "${S}"/README.txt README || die +} + +pkg_postinst() { + use python && distutils_pkg_postinst +} + +pkg_postrm() { + use python && distutils_pkg_postrm +} diff --git a/dev-java/antlr/antlr-2.7.7.ebuild b/dev-java/antlr/antlr-2.7.7.ebuild new file mode 100644 index 0000000..f14b791 --- /dev/null +++ b/dev-java/antlr/antlr-2.7.7.ebuild @@ -0,0 +1,124 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/antlr/antlr-2.7.7.ebuild,v 1.17 2011/01/16 18:22:16 arfrever Exp $ + +EAPI="3" +PYTHON_DEPEND="python? 2" + +inherit base java-pkg-2 mono distutils multilib + +DESCRIPTION="A parser generator for C++, C#, Java, and Python" +HOMEPAGE="http://www.antlr2.org/" +SRC_URI="http://www.antlr2.org/download/${P}.tar.gz" + +LICENSE="ANTLR" +SLOT="0" +KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd" +IUSE="doc debug examples mono +cxx +java python script source" + +# TODO do we actually need jdk at runtime? +RDEPEND=">=virtual/jdk-1.3 + mono? ( dev-lang/mono )" +DEPEND="${RDEPEND} + script? ( !dev-util/pccts ) + source? ( app-arch/zip )" + +PATCHES=( "${FILESDIR}/2.7.7-gcc-4.3.patch" "${FILESDIR}/2.7.7-gcc-4.4.patch" "${FILESDIR}/2.7.7-makefixes.patch" ) + +pkg_setup() { + java-pkg-2_pkg_setup + + if use python; then + python_set_active_version 2 + python_pkg_setup + fi +} + +src_prepare() { + base_src_prepare +} + +src_configure() { + # don't ask why, but this is needed for stuff to get built properly + # across the various JDKs + JAVACFLAGS="+ ${JAVACFLAGS}" + + # mcs for https://bugs.gentoo.org/show_bug.cgi?id=172104 + CSHARPC="mcs" econf $(use_enable java) \ + $(use_enable python) \ + $(use_enable mono csharp) \ + $(use_enable debug) \ + $(use_enable examples) \ + $(use_enable cxx) \ + --enable-verbose +} + +src_compile() { + emake || die "compile failed" + + sed -e "s|@prefix@|/usr/|" \ + -e 's|@exec_prefix@|${prefix}|' \ + -e "s|@libdir@|\$\{exec_prefix\}/$(get_libdir)/antlr|" \ + -e 's|@libs@|-r:\$\{libdir\}/antlr.astframe.dll -r:\$\{libdir\}/antlr.runtime.dll|' \ + -e "s|@VERSION@|${PV}|" \ + "${FILESDIR}"/antlr.pc.in > "${S}"/antlr.pc +} + +src_install() { + exeinto /usr/bin + doexe "${S}"/scripts/antlr-config + + if use cxx ; then + cd "${S}"/lib/cpp + einstall || die "failed to install C++ files" + fi + + if use java ; then + java-pkg_dojar "${S}"/antlr/antlr.jar + + use script && java-pkg_dolauncher antlr --main antlr.Tool + + use source && java-pkg_dosrc "${S}"/antlr + use doc && java-pkg_dohtml -r doc/* + fi + + if use mono ; then + cd "${S}"/lib + + dodir /usr/$(get_libdir)/antlr/ + insinto /usr/$(get_libdir)/antlr/ + + doins antlr.astframe.dll + doins antlr.runtime.dll + + insinto /usr/$(get_libdir)/pkgconfig + doins "${S}"/antlr.pc + fi + + if use python ; then + cd "${S}"/lib/python + distutils_src_install + fi + + if use examples ; then + find "${S}"/examples -iname Makefile\* -exec rm \{\} \; + + dodir /usr/share/doc/${PF}/examples + insinto /usr/share/doc/${PF}/examples + + use cxx && doins -r "${S}"/examples/cpp + use java && doins -r "${S}"/examples/java + use mono && doins -r "${S}"/examples/csharp + use python && doins -r "${S}"/examples/python + fi + + newdoc "${S}"/README.txt README || die +} + +pkg_postinst() { + use python && distutils_pkg_postinst +} + +pkg_postrm() { + use python && distutils_pkg_postrm +} diff --git a/dev-java/antlr/antlr-3.1.3-r2.ebuild b/dev-java/antlr/antlr-3.1.3-r2.ebuild new file mode 100644 index 0000000..eb99d8f --- /dev/null +++ b/dev-java/antlr/antlr-3.1.3-r2.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $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 $ + +EAPI="2" +JAVA_PKG_IUSE="source" + +inherit eutils java-pkg-2 java-ant-2 + +DESCRIPTION="A parser generator for C++, C#, Java, and Python" +HOMEPAGE="http://www.antlr.org/" +# You need to generate v3 grammars so that boostrapping works +SRC_URI="http://www.antlr.org/download/${P}.tar.gz + mirror://gentoo/${P}-generated.tar.bz2" +LICENSE="BSD" +SLOT="3" +KEYWORDS="amd64 ppc ppc64 x86" +IUSE="gunit" + +COMMON_DEPEND=">=dev-java/stringtemplate-3.2 + >=dev-java/antlr-2.7.7:0[java] + gunit? ( dev-java/junit:4 )" + +RDEPEND=">=virtual/jre-1.5 + ${COMMON_DEPEND}" + +DEPEND="${RDEPEND} + >=virtual/jdk-1.5" + +java_prepare() { + rm -v lib/*.jar lib/.*.jar || die + rm -v runtime/ActionScript/project/lib/*.jar || die + # We must bundle this as we can't depend on ourselves + cp -v "${WORKDIR}"/*.java tool/src/main/antlr/org/antlr/grammar/v3 || die + local version="${PV} $(date '+%B %d, %Y %T')" + local propertyfile="tool/src/main/resources/org/antlr/antlr.properties" + [[ $(egrep "^[^#]" ${propertyfile} | wc -l) != 1 ]] \ + && die "Unknown property found" + sed -i "s/^\(antlr.version\)=.*$/\1=${version}/" ${propertyfile} || die +} + +antlr2() { + java -cp $(java-pkg_getjars antlr) antlr.Tool "${@}" || die "antlr2 failed" +} + +antlr3() { + local cp="${S}/bootstrap:${S}/tool/src/main/resources/" + java -cp "${cp}":$(java-pkg_getjars antlr,stringtemplate) \ + org.antlr.Tool "${@}" || die "building v3 grammars failed" +} + +build_antlr() { + cd "${S}" + local dest="${1}" + # runtime + find runtime -name "*.java" > "${T}/sources" || die + # tool + find tool/src/main -name "*.java" >> "${T}/sources" || die + ejavac -d "${dest}" -cp $(java-pkg_getjars antlr,stringtemplate) "@${T}/sources" +} + +# Uses maven so let's just do things manully for now +# when bumping use jardiff and apicheck to make sure +# produced jars are good +src_compile() { + einfo "Bootstrapping antlr3 with bundled sources" + cd tool/src/main/antlr2/org/antlr/grammar/v2/ || die + # the command line only takes one at a time + for grammar in *.g; do + antlr2 ${grammar} || die + done + + cd "${S}" || die + mkdir bootstrap || die + build_antlr bootstrap + + einfo "Building v3 grammars with boostrapped antlr" + local v3dir=tool/src/main/antlr/org/antlr/grammar/v3/ + rm -v "${v3dir}"/*.java || die + antlr3 "${v3dir}"/*.g + + mkdir build || die + cp -r "${S}"/tool/src/main/resources/* build || die + build_antlr build + + if use gunit; then + einfo "building gunit" + antlr3 gunit/src/main/antlr3/org/antlr/gunit/*.g + + find gunit -name "*.java" > "${T}/gunit" || die + ejavac -d build -cp $(java-pkg_getjars stringtemplate,junit-4):build \ + "@${T}/gunit" + + cp -vr gunit/src/main/resources/org build || die + fi + + # jar things up + cd build + find -type f >> "${T}/classes" || die + jar cf ${PN}3.jar "@${T}/classes" || die "jar failed" +} + +src_install() { + # Single jar like upstream + java-pkg_dojar build/antlr3.jar + java-pkg_dolauncher antlr3 --main org.antlr.Tool + use gunit && java-pkg_dolauncher gunit --main org.antlr.gunit.Interp + + use source && java-pkg_dosrc tool/src/main/org \ + runtime/Java/src/main/java/org/ +} + +pkg_postinst() { + elog "Currently the ebuild only has support for the Java backend." +} diff --git a/dev-java/antlr/antlr-3.1.3-r3.ebuild b/dev-java/antlr/antlr-3.1.3-r3.ebuild new file mode 100644 index 0000000..5b97c27 --- /dev/null +++ b/dev-java/antlr/antlr-3.1.3-r3.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $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 $ + +EAPI="2" +JAVA_PKG_IUSE="source" + +inherit eutils java-pkg-2 java-ant-2 + +DESCRIPTION="A parser generator for C++, C#, Java, and Python" +HOMEPAGE="http://www.antlr.org/" +# You need to generate v3 grammars so that boostrapping works +SRC_URI="http://www.antlr.org/download/${P}.tar.gz + mirror://gentoo/${P}-generated.tar.bz2" +LICENSE="BSD" +SLOT="3" +KEYWORDS="amd64 ppc ppc64 x86" +IUSE="gunit" + +COMMON_DEPEND=">=dev-java/stringtemplate-3.2 + >=dev-java/antlr-2.7.7:0[java] + gunit? ( dev-java/junit:4 )" + +RDEPEND=">=virtual/jre-1.5 + ${COMMON_DEPEND}" + +DEPEND="${RDEPEND} + >=virtual/jdk-1.5" + +java_prepare() { + rm -v lib/*.jar lib/.*.jar || die + rm -v runtime/ActionScript/project/lib/*.jar || die + # We must bundle this as we can't depend on ourselves + cp -v "${WORKDIR}"/*.java tool/src/main/antlr/org/antlr/grammar/v3 || die + local version="${PV} $(date '+%B %d, %Y %T')" + local propertyfile="tool/src/main/resources/org/antlr/antlr.properties" + [[ $(egrep "^[^#]" ${propertyfile} | wc -l) != 1 ]] \ + && die "Unknown property found" + sed -i "s/^\(antlr.version\)=.*$/\1=${version}/" ${propertyfile} || die +} + +antlr2() { + java -cp $(java-pkg_getjars antlr) antlr.Tool "${@}" || die "antlr2 failed" +} + +antlr3() { + local cp="${S}/bootstrap:${S}/tool/src/main/resources/" + java -cp "${cp}":$(java-pkg_getjars antlr,stringtemplate) \ + org.antlr.Tool "${@}" || die "building v3 grammars failed" +} + +build_antlr() { + cd "${S}" + local dest="${1}" + # runtime + find runtime -name "*.java" > "${T}/sources" || die + # tool + find tool/src/main -name "*.java" >> "${T}/sources" || die + ejavac -d "${dest}" -cp $(java-pkg_getjars antlr,stringtemplate) "@${T}/sources" +} + +# Uses maven so let's just do things manully for now +# when bumping use jardiff and apicheck to make sure +# produced jars are good +src_compile() { + einfo "Bootstrapping antlr3 with bundled sources" + cd tool/src/main/antlr2/org/antlr/grammar/v2/ || die + # the command line only takes one at a time + for grammar in *.g; do + antlr2 ${grammar} || die + done + + cd "${S}" || die + mkdir bootstrap || die + build_antlr bootstrap + + einfo "Building v3 grammars with boostrapped antlr" + local v3dir=tool/src/main/antlr/org/antlr/grammar/v3/ + rm -v "${v3dir}"/*.java || die + antlr3 "${v3dir}"/*.g + + mkdir build || die + cp -r "${S}"/tool/src/main/resources/* build || die + build_antlr build + + if use gunit; then + einfo "building gunit" + antlr3 gunit/src/main/antlr3/org/antlr/gunit/*.g + + find gunit -name "*.java" > "${T}/gunit" || die + ejavac -d build -cp $(java-pkg_getjars stringtemplate,junit-4):build \ + "@${T}/gunit" + + cp -vr gunit/src/main/resources/org build || die + fi + + # jar things up + cd build + find -type f >> "${T}/classes" || die + jar cf ${PN}3.jar "@${T}/classes" || die "jar failed" +} + +src_install() { + # Single jar like upstream + java-pkg_dojar build/antlr3.jar + + use source && java-pkg_dosrc tool/src/main/org \ + runtime/Java/src/main/java/org/ +} + +pkg_postinst() { + elog "Currently the ebuild only has support for the Java backend." +} diff --git a/dev-java/antlr/antlr-3.3.ebuild b/dev-java/antlr/antlr-3.3.ebuild new file mode 100644 index 0000000..0e631c2 --- /dev/null +++ b/dev-java/antlr/antlr-3.3.ebuild @@ -0,0 +1,121 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $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 $ + +EAPI="4" +JAVA_PKG_IUSE="source" + +inherit eutils java-pkg-2 java-ant-2 + +DESCRIPTION="A parser generator for C++, C#, Java, and Python" +HOMEPAGE="http://www.antlr.org/" +# You need to generate v3 grammars so that boostrapping works +SRC_URI="http://www.antlr.org/download/${P}.tar.gz + mirror://gentoo/${P}-generated.tar.bz2" +LICENSE="BSD" +SLOT="3.3" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="gunit" + +# the binary is migrated to this slot and +# removed from :3 +COMMON_DEPEND=">=dev-java/stringtemplate-3.2.1 + >=dev-java/antlr-2.7.7:0[java] + !<=dev-java/antlr-3.1.3-r2:3 + gunit? ( dev-java/junit:4 )" + +RDEPEND=">=virtual/jre-1.5 + ${COMMON_DEPEND}" + +DEPEND="${RDEPEND} + >=virtual/jdk-1.5" + +java_prepare() { + epatch "${FILESDIR}/3.3-gunit-0.patch" + epatch "${FILESDIR}/3.3-gunit-1.patch" + epatch "${FILESDIR}/3.3-gunit-2.patch" + rm -v lib/*.jar || die + rm -v runtime/ActionScript/project/lib/*.jar || die + # We must bundle this as we can't depend on ourselves + cp -v "${WORKDIR}"/tool-generated/*.java tool/src/main/antlr3/ || die + cp -v "${WORKDIR}"/gunit-generated/*.java gunit/src/main/antlr3/ || die + local version="${PV} $(date '+%B %d, %Y %T')" + local propertyfile="tool/src/main/resources/org/antlr/antlr.properties" + [[ $(egrep "^[^#]" ${propertyfile} | egrep "antlr.version" | wc -l) != 1 ]] \ + && die "Unknown property found" + sed -i "s/^\(antlr.version\)=.*$/\1=${version}/" ${propertyfile} || die +} + +antlr2() { + java -cp $(java-pkg_getjars antlr) antlr.Tool "${@}" || die "antlr2 failed" +} + +antlr3() { + local cp="${S}/bootstrap:${S}/tool/src/main/resources/" + java -cp "${cp}":$(java-pkg_getjars antlr,stringtemplate) \ + org.antlr.Tool "${@}" || die "building v3 grammars failed" +} + +build_antlr() { + cd "${S}" + local dest="${1}" + # runtime + find runtime/Java -name "*.java" > "${T}/sources" || die + # tool + find tool/src/main -name "*.java" >> "${T}/sources" || die + ejavac -d "${dest}" -cp $(java-pkg_getjars antlr,stringtemplate) "@${T}/sources" +} + +# Uses maven so let's just do things manully for now +# when bumping use jardiff and apicheck to make sure +# produced jars are good +src_compile() { + einfo "Bootstrapping antlr3 with bundled sources" + cd tool/src/main/antlr2/org/antlr/grammar/v2/ || die + # the command line only takes one at a time + for grammar in *.g; do + antlr2 ${grammar} || die + done + + cd "${S}" || die + mkdir bootstrap || die + build_antlr bootstrap + + einfo "Building v3 grammars with boostrapped antlr" + rm -v tool/src/main/antlr3/*.java || die + antlr3 tool/src/main/antlr3/org/antlr/grammar/v3/*.g + + mkdir build || die + cp -r "${S}"/tool/src/main/resources/* build || die + build_antlr build + + if use gunit; then + einfo "building gunit" + antlr3 gunit/src/main/antlr3/org/antlr/gunit/*.g + + find gunit -name "*.java" > "${T}/gunit" || die + ejavac -d build -cp $(java-pkg_getjars stringtemplate,junit-4):build \ + "@${T}/gunit" + + cp -vr gunit/src/main/resources/org build || die + fi + + # jar things up + cd build + find -type f >> "${T}/classes" || die + jar cf ${PN}3.jar "@${T}/classes" || die "jar failed" +} + +src_install() { + # Single jar like upstream + java-pkg_dojar build/antlr3.jar + java-pkg_dolauncher antlr3 --main org.antlr.Tool + use gunit && java-pkg_dolauncher gunit --main org.antlr.gunit.Interp + + use source && java-pkg_dosrc tool/src/main/org \ + runtime/Java/src/main/java/org/ +} + +pkg_postinst() { + elog "Currently the ebuild only has support for the Java backend." +} diff --git a/dev-java/antlr/metadata.xml b/dev-java/antlr/metadata.xml new file mode 100644 index 0000000..a741ce4 --- /dev/null +++ b/dev-java/antlr/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>java</herd> + <use> + <flag name="script">Install a script to run antlr</flag> + <flag name="gunit" restrict=">=dev-java/antlr-3.1.3-r1"> + gUnit is a "Unit Test" framework for ANTLR grammars + </flag> + </use> +</pkgmetadata> |