summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2011-01-16 13:01:39 +0000
committerMiroslav Šulc <fordfrog@gentoo.org>2011-01-16 13:01:39 +0000
commit63de13def7f574733c55e529c2d238f8d88389e2 (patch)
treeca3dca64e97d781b354531814bcd6f1ce3d32622 /dev-java/antlr
parentppc stable wrt #325943 (diff)
downloadhistorical-63de13def7f574733c55e529c2d238f8d88389e2.tar.gz
historical-63de13def7f574733c55e529c2d238f8d88389e2.tar.bz2
historical-63de13def7f574733c55e529c2d238f8d88389e2.zip
dev-java/antlr: fixed bug #349678
Package-Manager: portage-2.1.9.31/cvs/Linux x86_64
Diffstat (limited to 'dev-java/antlr')
-rw-r--r--dev-java/antlr/ChangeLog9
-rw-r--r--dev-java/antlr/Manifest13
-rw-r--r--dev-java/antlr/antlr-2.7.7-r1.ebuild105
3 files changed, 114 insertions, 13 deletions
diff --git a/dev-java/antlr/ChangeLog b/dev-java/antlr/ChangeLog
index f002b2334642..33a981a0e2ae 100644
--- a/dev-java/antlr/ChangeLog
+++ b/dev-java/antlr/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-java/antlr
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/antlr/ChangeLog,v 1.79 2009/12/29 17:33:15 josejx Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/antlr/ChangeLog,v 1.80 2011/01/16 13:01:39 fordfrog Exp $
+
+*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.
diff --git a/dev-java/antlr/Manifest b/dev-java/antlr/Manifest
index f94bb9d23fdf..7e3298c60471 100644
--- a/dev-java/antlr/Manifest
+++ b/dev-java/antlr/Manifest
@@ -1,6 +1,3 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX 2.7.7-gcc-4.3.patch 383 RMD160 b07b999bd1fe9ed4e90c2c4240c6b8dcececa460 SHA1 9561c692ccfad5f320739897da0ce985d8c804d7 SHA256 de68d3a12a03d7bcdbd3e1cf5ab7d773123a55b4d9e8bb9f3a873fa2c2be84e2
AUX 2.7.7-gcc-4.4.patch 257 RMD160 b1b2058707e6132e4db8d4f7dbd7648c8d3799eb SHA1 b618b5a3f603a3cb07acda07e85ab022cfb3cdef SHA256 4d1c713424893be36f5b29f73a9e7f491274abe6535af31c26bf0aa8dbf00256
AUX 2.7.7-makefixes.patch 3151 RMD160 260811a8fd616fa2acd8ee92b57e004bef1af2d7 SHA1 81eedd78cb7f71e783ee4450c9eda72411ffbdc8 SHA256 04c15e4c6054c3504e21ed5ef00bfb011f5345146e5c044f607e14a30fda1360
@@ -8,14 +5,8 @@ AUX antlr.pc.in 155 RMD160 9e65e2d813b035fceba2893da2b14e21b579ff22 SHA1 008e631
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
+EBUILD antlr-2.7.7-r1.ebuild 2726 RMD160 b22b75bdfed315380c4d6753e0d1bb869b94a79e SHA1 c06e43400d4bd3e4d541c6f9ac187e84a80cc459 SHA256 6fec448a02efdff6e4f81c92356faee5301514cb0f64ff195328d60995f3a8de
EBUILD antlr-2.7.7.ebuild 2711 RMD160 b7df22d5bfe750a472bd9701a23f796530105e8d SHA1 39d835d846d2dacd5743229ae23c12947d59cd7f SHA256 93088d371829497991c530104ca4ff2d6236b6a37c85e79c299612f3f86baf9a
EBUILD antlr-3.1.3-r2.ebuild 3340 RMD160 348d425c2e59c665478aae9b0dce947649339f19 SHA1 e493a6fb58cd7a0defd89d3672d5cfe9f524c361 SHA256 feeacf9208b42ffa777fbde2a11b7e7fbdb3277ac9fe146d0aa814746a16d9ea
-MISC ChangeLog 10970 RMD160 0b8bbd48b5c75bf838c113af347fa1c511fb5616 SHA1 12a9df4430f77c3ed5d62f0871b07e2f959c6a49 SHA256 88708025594e7cfb980e0a8bd3f001f6594e320a07e8f004f2b737bb58ccdf64
+MISC ChangeLog 11100 RMD160 d227f4ccf62dc7ecfd530e287a5c8bea0723f343 SHA1 9e949150f3d791590edb16449adeaeb3529f6d85 SHA256 4ee2c2949d8a469eaa74574a5ee870a4f688da9acc319c2ea2bf703d39ded62d
MISC metadata.xml 363 RMD160 72102b036fe76e530f4519a0aa081778aae7262a SHA1 b8f61d984af7ca03255f57bf4126799e58863f2d SHA256 6aa7ec680dc08ab936d6f59f1444bba56902fec42eaf16d5c9919350a5c355cc
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.11 (GNU/Linux)
-
-iEYEARECAAYFAks6PQUACgkQcsIHjyDViGQQiACgoI9vRZJEVcG2FumQqjkdgdNT
-YTYAoNdMJmXU3IfKF2kHMYVcwDuTUfwK
-=WZra
------END PGP SIGNATURE-----
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 000000000000..6dbdab6b0d84
--- /dev/null
+++ b/dev-java/antlr/antlr-2.7.7-r1.ebuild
@@ -0,0 +1,105 @@
+# 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.1 2011/01/16 13:01:39 fordfrog Exp $
+
+EAPI=1
+
+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 )
+ python? ( dev-lang/python )"
+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" )
+
+src_unpack() {
+ base_src_unpack
+}
+
+src_compile() {
+ # 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 || die "configure failed"
+
+ 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
+}