From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-cpp/antlr-cpp/Manifest | 10 +++ dev-cpp/antlr-cpp/antlr-cpp-2.7.7-r1.ebuild | 105 ++++++++++++++++++++++++++++ dev-cpp/antlr-cpp/antlr-cpp-2.7.7.ebuild | 105 ++++++++++++++++++++++++++++ dev-cpp/antlr-cpp/antlr-cpp-3.5.2-r1.ebuild | 19 +++++ dev-cpp/antlr-cpp/antlr-cpp-3.5.2.ebuild | 22 ++++++ dev-cpp/antlr-cpp/files/2.7.7-gcc.patch | 12 ++++ dev-cpp/antlr-cpp/files/2.7.7-libtool.patch | 21 ++++++ dev-cpp/antlr-cpp/metadata.xml | 11 +++ 8 files changed, 305 insertions(+) create mode 100644 dev-cpp/antlr-cpp/Manifest create mode 100644 dev-cpp/antlr-cpp/antlr-cpp-2.7.7-r1.ebuild create mode 100644 dev-cpp/antlr-cpp/antlr-cpp-2.7.7.ebuild create mode 100644 dev-cpp/antlr-cpp/antlr-cpp-3.5.2-r1.ebuild create mode 100644 dev-cpp/antlr-cpp/antlr-cpp-3.5.2.ebuild create mode 100644 dev-cpp/antlr-cpp/files/2.7.7-gcc.patch create mode 100644 dev-cpp/antlr-cpp/files/2.7.7-libtool.patch create mode 100644 dev-cpp/antlr-cpp/metadata.xml (limited to 'dev-cpp/antlr-cpp') diff --git a/dev-cpp/antlr-cpp/Manifest b/dev-cpp/antlr-cpp/Manifest new file mode 100644 index 000000000000..6af7ff148bc5 --- /dev/null +++ b/dev-cpp/antlr-cpp/Manifest @@ -0,0 +1,10 @@ +AUX 2.7.7-gcc.patch 402 SHA256 0f4fd388d1275dbd5b9e5df1f4814bad1a21d7f9efea844b02248db00acdb5f8 SHA512 c94a8fcdce09f5a7cb32c2594728954775812a5eb2487aebe4f1e9203e5db75e391a2214fdb173f33f8616ac5b666e2d4653bc00a3a98b09005333ed2a3b27fd WHIRLPOOL 1b7ab5a84d974752d48a88212f6bdb1d84335516d73b97c5d4fc5674907c11ea4c7a8eccb86f40a9c084bec9b9e01783f8feab92c9e0bc018897b3d53e1ba63f +AUX 2.7.7-libtool.patch 621 SHA256 142c7a38900a89580a9485508c885b0268acf503d283f3af6f6c2d3333fb9c4e SHA512 3f1d68eff40fac13a4f482724456cb8ed801feff71a254871368f22ab98024431c718f3fb35f13da4183bdebe62ece26908a341fe1a945118bf0d78f5d8ea622 WHIRLPOOL a94319f02231a50a2ab827fb2ca68076288655cb6e636e6cc703ad9abddcc63ea2abdde567698946929983e65b83218de05fd2f3e05f087201b705766c7e5901 +DIST antlr-2.7.7.tar.gz 1816180 SHA256 853aeb021aef7586bda29e74a6b03006bcb565a755c86b66032d8ec31b67dbb9 SHA512 faa72d2ddcba434ef1233e70c1549e63eba67c00793966322e821cf7f015cccb804448cb92d8fbef0429f59928fad65ec954f8ffbda0acbb8e983de0806d349d WHIRLPOOL def5ac0ddfe5a65f9f7d5489d039048c5d630b46cd5626593bd12e9b393d5ec26884f90b013bcdf58511e26abbf06e0d7b3789a11298b017f7e70af2ec8dde4a +DIST antlr-cpp-3.5.2.tar.gz 6927126 SHA256 529baf7d11f06b773543e25271c1a6e1735d2f8061f4866d1ea5c99a5d71ee1f SHA512 e2a0520093fb2a77dcd9d44f26a9fdd612dceaffb398c53b2b8cd29f4630830647ede29e8dd55b434cb2c165b0fd1d77968ec6e6de0798f14d9cdfd9e6fccd99 WHIRLPOOL a3a2bf81cc91a332725a4ce15dcccf10df5395b27a521656b1f3e80fed10197edc132fa2a8b9a259b2ee603320492b4b1f664692a967fdfdbb574d919b9aa20e +EBUILD antlr-cpp-2.7.7-r1.ebuild 2808 SHA256 ee0218b1641a1d085ac934a67c1cafe0c12c1644c0313934521030cf694b98a6 SHA512 7fe1f19bdf361adf562f6387df2d66503f6d4c7dbf5bb4d91a029843dc86435dec9ffc1e3ad241c910107fda99d6b0b3591d3dfafd83959e56a5b4f5d7d0f1f2 WHIRLPOOL 3d2f6a150527dde9cbab184bf522dec2b881e37a0999cc905bdcfbae274c479b88d2ee6b07d5459117266d2de015d02ad47ef580b7d142cf68f028dded04eb79 +EBUILD antlr-cpp-2.7.7.ebuild 2776 SHA256 7117fb3a7c98609300d024c62e7ee7ede37c0db49f17ea501b49d1c26c30ac37 SHA512 e293605b61353aa5e1cbd6b8be82e1fbb2e19fd10fbce2f791129109c70a9ae97e94438494137fbf5fd59bc3bf51686fc56524a8f37f0cf765d11a49a763c478 WHIRLPOOL ec438cb20548097a4999e2a2c013edd2efc6abc6bd27f88da4d3a6ed43ccc85acaa4c77bccbf4a4f660afeb3ddbfbbff8bdb286fddd843653b097a921289ca8d +EBUILD antlr-cpp-3.5.2-r1.ebuild 451 SHA256 2fb53d03584f33d9c2da8248f8d3ed5d28e38ebabcf4247b1e3c5a4214c4ad96 SHA512 898f7805e7f2c0d13181a820d8d201f0549da336163cf54f4a214e6360af51a53f75db8eba896eb2403f3a5e6ad752eae469afce8316d3150e566488e006f45c WHIRLPOOL 681c3930cafe7cef36550703bcbb991af01f57517e19d53d9155a01286ec72a07957e26042c58436b4fecf65f31b83e146fc55d1f836f0dc98e40a7c611cb248 +EBUILD antlr-cpp-3.5.2.ebuild 511 SHA256 fc1680593c938087b7e60986fd2251cab8db0412e0eab0dc06b0e7e35df13294 SHA512 08791f15c70c62ff06925c1ac783a141b7ecbf15a80c58837af23ed8cae90e6dcdf7f3471c1ad72e6a394082f9257419153a8e56e9c05d5b8961cf40014389fa WHIRLPOOL adb1b038bd77990c0db752e7b4bb432cab79dac700c4ac41ca30a8986567f709cc6f38948a68f2f2bedd47e36183a39a54aba841dc5fcb956031bbe3f04e2950 +MISC ChangeLog 2746 SHA256 3aee4bca0e92a7903b1dbb84ebf8772956688cb4deefc4487983dc131a98dfcc SHA512 6b62c11736426b6b8b15a1070abb97346145574fe94484ca3ad1db08b11e335228217a0d01872dbad157bd5e00cef2c9fe8ce4b827e9507a114b991501fef09a WHIRLPOOL a852fb203e4544379195488ed4362c65347ec40739d5b06d622c1a0f52288c6f50f34dee452ac03f09e79c68f70fbbfb2adf7748258c66d62a0556c3937a9855 +MISC metadata.xml 313 SHA256 0549c3c0a4bf58c9b1579523bf62d51f204d465b6c3dac938e7b63c79d084294 SHA512 39988a3826d440aa378b455d18ce23230ba1870bf7b7c64123cfdd09c54b112e8586c87d421a2227370c6b4eae385af46ce3a9e4aab3c676fdfdac360fed8265 WHIRLPOOL a756a94f70a7e29f38a5eb23fe1485dcb1917e42ee38df0711da14c0e8e5dbcb30d2ae13604a0bb2897ccdac55894345d2c6d169c0b7aa37c61dc947adf404e7 diff --git a/dev-cpp/antlr-cpp/antlr-cpp-2.7.7-r1.ebuild b/dev-cpp/antlr-cpp/antlr-cpp-2.7.7-r1.ebuild new file mode 100644 index 000000000000..576b9c51d9d0 --- /dev/null +++ b/dev-cpp/antlr-cpp/antlr-cpp-2.7.7-r1.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +# Upstream only installs a static library. The original antlr ebuild +# built a shared library manually, which isn't so great either. This +# ebuild applies libtool instead and therefore an autoreconf is +# required. A couple of errors concerning tr have been seen but the +# final result still looks good. This also sidesteps bug #554344 plus +# the need to call einstall. + +inherit autotools multilib-minimal + +MY_P="${PN%-cpp}-${PV}" +DESCRIPTION="The ANTLR 2 C++ Runtime" +HOMEPAGE="http://www.antlr2.org/" +SRC_URI="http://www.antlr2.org/download/${MY_P}.tar.gz" +LICENSE="public-domain" +SLOT="2" +KEYWORDS="~amd64 ~arm ~ppc ~x86" +IUSE="doc examples static-libs" +RESTRICT="test" # No tests but test target blows up! + +DEPEND="doc? ( app-doc/doxygen )" +RDEPEND="!dev-java/antlr:0[cxx]" + +S="${WORKDIR}/${MY_P}" +ECONF_SOURCE="${S}" +PATCHES=( "${FILESDIR}"/${PV}-{gcc,libtool}.patch ) +DOCS=( lib/cpp/AUTHORS lib/cpp/ChangeLog lib/cpp/README lib/cpp/TODO ) + +src_prepare() { + # Turn Makefile.in files into libtool-style Makefile.am + # files. Countable.hpp is actually missing. + local HPP=$(grep -E -o "\w+\.hpp" lib/cpp/antlr/Makefile.in | grep -v "Countable\.hpp" | tr "\n" " " || die) + local CPP=$(grep -E -o "\w+\.cpp" lib/cpp/src/Makefile.in | tr "\n" " " || die) + + cat < lib/cpp/antlr/Makefile.am || die +antlr_includedir = \$(includedir)/antlr +antlr_include_HEADERS = ${HPP} +EOF + + cat < lib/cpp/src/Makefile.am || die +AM_CPPFLAGS = -I\$(abs_top_srcdir)/lib/cpp +lib_LTLIBRARIES = libantlr.la +libantlr_la_LDFLAGS = -version-info 2 +libantlr_la_SOURCES = ${CPP} +EOF + + default + + mv -v configure.in configure.ac || die + mv -v aclocal.m4 acinclude.m4 || die + + # These silly test -z lines break badly under recent autoconfs. + sed -i '/AC_PATH_PROG/s/test -z "\$[^"]*" *&& *//' configure.ac || die + + # Delete build files from examples. + find examples -name Makefile.in -delete || die + + # Fix make invocations. See bug #256880. + find -name "*.in" -exec sed -i 's/@MAKE@/$(MAKE)/g' {} + || die + + eautoreconf +} + +multilib_src_configure() { + CONFIG_SHELL="${BASH}" econf \ + --disable-csharp \ + --enable-cxx \ + --disable-examples \ + --disable-java \ + --disable-python \ + --enable-shared \ + --enable-verbose \ + $(use_enable static-libs static) +} + +src_compile() { + multilib-minimal_src_compile + + if use doc; then + cd "${S}/lib/cpp" || die + doxygen -u doxygen.cfg || die + doxygen doxygen.cfg || die + fi +} + +multilib_src_install() { + # We only care about the C++ stuff. + emake -C lib/cpp install DESTDIR="${D}" +} + +src_install() { + multilib-minimal_src_install + + cd "${S}" || die + use doc && dohtml -r lib/cpp/gen_doc/html/ + + if use examples; then + docinto examples + dodoc -r examples/cpp/* + fi +} diff --git a/dev-cpp/antlr-cpp/antlr-cpp-2.7.7.ebuild b/dev-cpp/antlr-cpp/antlr-cpp-2.7.7.ebuild new file mode 100644 index 000000000000..38f0da795403 --- /dev/null +++ b/dev-cpp/antlr-cpp/antlr-cpp-2.7.7.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +# Upstream only installs a static library. The original antlr ebuild +# built a shared library manually, which isn't so great either. This +# ebuild applies libtool instead and therefore an autoreconf is +# required. A couple of errors concerning tr have been seen but the +# final result still looks good. This also sidesteps bug #554344 plus +# the need to call einstall. +AUTOTOOLS_AUTORECONF=1 + +inherit eutils autotools-multilib + +MY_P="${PN%-cpp}-${PV}" +DESCRIPTION="The ANTLR 2 C++ Runtime" +HOMEPAGE="http://www.antlr2.org/" +SRC_URI="http://www.antlr2.org/download/${MY_P}.tar.gz" +LICENSE="public-domain" +SLOT="2" +KEYWORDS="amd64 ~arm ppc x86" +IUSE="doc examples static-libs" +RESTRICT="test" # No tests but test target blows up! + +DEPEND="doc? ( app-doc/doxygen )" +RDEPEND="!dev-java/antlr:0[cxx]" + +S="${WORKDIR}/${MY_P}" +DOCS=( lib/cpp/AUTHORS lib/cpp/ChangeLog lib/cpp/README lib/cpp/TODO ) + +src_prepare() { + epatch "${FILESDIR}"/${PV}-{gcc,libtool}.patch + + mv -v configure.in configure.ac || die + mv -v aclocal.m4 acinclude.m4 || die + + # These silly test -z lines break badly under recent autoconfs. + sed -i '/AC_PATH_PROG/s/test -z "\$[^"]*" *&& *//' configure.ac || die + + # Delete build files from examples. + find examples -name Makefile.in -delete || die + + # Fix make invocations. See bug #256880. + find -name "*.in" -exec sed -i 's/@MAKE@/$(MAKE)/g' {} + || die + + # Turn Makefile.in files into libtool-style Makefile.am + # files. Countable.hpp is actually missing. + local HPP=$(grep -E -o "\w+\.hpp" lib/cpp/antlr/Makefile.in | grep -v "Countable\.hpp" | tr "\n" " " || die) + local CPP=$(grep -E -o "\w+\.cpp" lib/cpp/src/Makefile.in | tr "\n" " " || die) + + cat < lib/cpp/antlr/Makefile.am || die +antlr_includedir = \$(includedir)/antlr +antlr_include_HEADERS = ${HPP} +EOF + + cat < lib/cpp/src/Makefile.am || die +AM_CPPFLAGS = -I\$(abs_top_srcdir)/lib/cpp +lib_LTLIBRARIES = libantlr.la +libantlr_la_LDFLAGS = -version-info 2 +libantlr_la_SOURCES = ${CPP} +EOF + + autotools-multilib_src_prepare +} + +multilib_src_configure() { + local myeconfargs=( + --disable-csharp + --enable-cxx + --disable-examples + --disable-java + --disable-python + --enable-verbose + ) + + autotools-utils_src_configure +} + +src_compile() { + autotools-multilib_src_compile + + if use doc; then + cd "${S}/lib/cpp" || die + doxygen -u doxygen.cfg || die + doxygen doxygen.cfg || die + fi +} + +multilib_src_install() { + # We only care about the C++ stuff. + emake -C lib/cpp install DESTDIR="${D}" +} + +src_install() { + autotools-multilib_src_install + + cd "${S}" || die + use doc && dohtml -r lib/cpp/gen_doc/html/ + + if use examples; then + docinto examples + dodoc -r examples/cpp/* + fi +} diff --git a/dev-cpp/antlr-cpp/antlr-cpp-3.5.2-r1.ebuild b/dev-cpp/antlr-cpp/antlr-cpp-3.5.2-r1.ebuild new file mode 100644 index 000000000000..b054cde396b4 --- /dev/null +++ b/dev-cpp/antlr-cpp/antlr-cpp-3.5.2-r1.ebuild @@ -0,0 +1,19 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +EAPI=6 + +MY_PN="${PN%-cpp}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="The ANTLR 3 C++ Runtime" +HOMEPAGE="http://www.antlr3.org/" +SRC_URI="https://github.com/${MY_PN}/${MY_PN}3/archive/${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="BSD" +SLOT="3.5" +KEYWORDS="~amd64 ~x86" + +S="${WORKDIR}/${MY_PN}3-${PV}" + +src_install() { + doheader "${S}"/runtime/Cpp/include/* +} diff --git a/dev-cpp/antlr-cpp/antlr-cpp-3.5.2.ebuild b/dev-cpp/antlr-cpp/antlr-cpp-3.5.2.ebuild new file mode 100644 index 000000000000..17febffa40d9 --- /dev/null +++ b/dev-cpp/antlr-cpp/antlr-cpp-3.5.2.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +EAPI=6 + +MY_PN="${PN%-cpp}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="The ANTLR 3 C++ Runtime" +HOMEPAGE="http://www.antlr3.org/" +SRC_URI="https://github.com/${MY_PN}/${MY_PN}3/archive/${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="BSD" +SLOT="3.5" +KEYWORDS="~amd64 ~x86" + +S="${WORKDIR}/${MY_PN}3-${PV}" + +RDEPEND="!dev-java/antlr:0[cxx]" + +src_install() { + insinto /usr/include/antlr3 + doins "${S}"/runtime/Cpp/include/* +} diff --git a/dev-cpp/antlr-cpp/files/2.7.7-gcc.patch b/dev-cpp/antlr-cpp/files/2.7.7-gcc.patch new file mode 100644 index 000000000000..c67d5b6dfcf9 --- /dev/null +++ b/dev-cpp/antlr-cpp/files/2.7.7-gcc.patch @@ -0,0 +1,12 @@ +diff -Naur antlr-2.7.7.orig/lib/cpp/antlr/CharScanner.hpp antlr-2.7.7/lib/cpp/antlr/CharScanner.hpp +--- antlr-2.7.7.orig/lib/cpp/antlr/CharScanner.hpp 2006-11-01 21:37:17.000000000 +0000 ++++ antlr-2.7.7/lib/cpp/antlr/CharScanner.hpp 2015-10-06 23:01:53.083655950 +0100 +@@ -10,6 +10,8 @@ + + #include + ++#include ++#include + #include + + #ifdef HAS_NOT_CCTYPE_H diff --git a/dev-cpp/antlr-cpp/files/2.7.7-libtool.patch b/dev-cpp/antlr-cpp/files/2.7.7-libtool.patch new file mode 100644 index 000000000000..ea5e809f473f --- /dev/null +++ b/dev-cpp/antlr-cpp/files/2.7.7-libtool.patch @@ -0,0 +1,21 @@ +diff -Naur antlr-2.7.7.orig/configure.in antlr-2.7.7/configure.in +--- antlr-2.7.7.orig/configure.in 2006-11-01 21:37:18.000000000 +0000 ++++ antlr-2.7.7/configure.in 2015-10-11 13:49:09.166308712 +0100 +@@ -13,6 +13,9 @@ + AC_CONFIG_SRCDIR([LICENSE.txt]) + AC_CONFIG_AUX_DIR(scripts) + ++LT_INIT ++AM_INIT_AUTOMAKE ++ + ## This shall be the very first config file. Do not change + ## this. + AC_CONFIG_FILES([scripts/config.vars]) +@@ -841,7 +844,6 @@ + AC_PROG_RANLIB + + test -z "$MKDIR" && AC_PATH_PROG(MKDIR, mkdir$EXEEXT, mkdir$EXEEXT ) +-test -z "$RM" && AC_PATH_PROG(RM, rm$EXEEXT, rm$EXEEXT ) + + AX_PATH_PROGS( + [TAR], diff --git a/dev-cpp/antlr-cpp/metadata.xml b/dev-cpp/antlr-cpp/metadata.xml new file mode 100644 index 000000000000..38b353fb46ac --- /dev/null +++ b/dev-cpp/antlr-cpp/metadata.xml @@ -0,0 +1,11 @@ + + + + + java@gentoo.org + Java + + + antlr/antlr3 + + -- cgit v1.2.3