diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-cpp/antlr-cpp | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-cpp/antlr-cpp')
-rw-r--r-- | dev-cpp/antlr-cpp/Manifest | 9 | ||||
-rw-r--r-- | dev-cpp/antlr-cpp/antlr-cpp-2.7.7-r1.ebuild | 105 | ||||
-rw-r--r-- | dev-cpp/antlr-cpp/antlr-cpp-2.7.7.ebuild | 105 | ||||
-rw-r--r-- | dev-cpp/antlr-cpp/antlr-cpp-3.5.2-r1.ebuild | 20 | ||||
-rw-r--r-- | dev-cpp/antlr-cpp/antlr-cpp-3.5.2.ebuild | 23 | ||||
-rw-r--r-- | dev-cpp/antlr-cpp/files/2.7.7-gcc.patch | 12 | ||||
-rw-r--r-- | dev-cpp/antlr-cpp/files/2.7.7-libtool.patch | 21 | ||||
-rw-r--r-- | dev-cpp/antlr-cpp/metadata.xml | 11 |
8 files changed, 306 insertions, 0 deletions
diff --git a/dev-cpp/antlr-cpp/Manifest b/dev-cpp/antlr-cpp/Manifest new file mode 100644 index 000000000000..b4512f0adb22 --- /dev/null +++ b/dev-cpp/antlr-cpp/Manifest @@ -0,0 +1,9 @@ +AUX 2.7.7-gcc.patch 402 BLAKE2B be143ebbf062aa2ed59630424e7741ac8105eb3575494639d05fe21471d2764c12fc5c5aa95f7297ed9ad67df7af8c107582f008c5372205fa4bfc991b87d14e SHA512 c94a8fcdce09f5a7cb32c2594728954775812a5eb2487aebe4f1e9203e5db75e391a2214fdb173f33f8616ac5b666e2d4653bc00a3a98b09005333ed2a3b27fd +AUX 2.7.7-libtool.patch 621 BLAKE2B a0e48b7911bf016dbf1422768cd73e887cded6a9795d8f38d522e3e13b4f0a81f94653d61fb688db4ee1c6d3170035380fc9763b83ae68c28d88ef1902a3b715 SHA512 3f1d68eff40fac13a4f482724456cb8ed801feff71a254871368f22ab98024431c718f3fb35f13da4183bdebe62ece26908a341fe1a945118bf0d78f5d8ea622 +DIST antlr-2.7.7.tar.gz 1816180 BLAKE2B 3a9a51070f8651befeb4d22be344b544e119db34a78522828c2ffc3c481c14b9c7784f0a9997a61f6faedde5b6d1fe12214cfd84fb274f7065f3ffe6a44abf1c SHA512 faa72d2ddcba434ef1233e70c1549e63eba67c00793966322e821cf7f015cccb804448cb92d8fbef0429f59928fad65ec954f8ffbda0acbb8e983de0806d349d +DIST antlr-cpp-3.5.2.tar.gz 6927126 BLAKE2B 1907229549434dfea6ef1fa915137a2f733bd61f0a40aacb131689df619d1c92e125453ec3d1febc5d92da1841ffbde060af196cff1ca8fb6f4684600375e161 SHA512 e2a0520093fb2a77dcd9d44f26a9fdd612dceaffb398c53b2b8cd29f4630830647ede29e8dd55b434cb2c165b0fd1d77968ec6e6de0798f14d9cdfd9e6fccd99 +EBUILD antlr-cpp-2.7.7-r1.ebuild 2808 BLAKE2B 207d0ecf0e231a7eed984c5d4032d53bd6bd9a5cd169b24797f7ba41fe14218e9051077d6efa5379ed966d006a5008f2ad1e6781d0829bfb31f6f80f35d525b3 SHA512 7fe1f19bdf361adf562f6387df2d66503f6d4c7dbf5bb4d91a029843dc86435dec9ffc1e3ad241c910107fda99d6b0b3591d3dfafd83959e56a5b4f5d7d0f1f2 +EBUILD antlr-cpp-2.7.7.ebuild 2776 BLAKE2B c97cc26c1ceb320716344ad9a0e457f38df3efe0ebd2bf2cf795930a6605ba1aae516015b5cebf675ff05d4dbd263de73c9b1efdad1749b4eb9b6f31fcd229db SHA512 e293605b61353aa5e1cbd6b8be82e1fbb2e19fd10fbce2f791129109c70a9ae97e94438494137fbf5fd59bc3bf51686fc56524a8f37f0cf765d11a49a763c478 +EBUILD antlr-cpp-3.5.2-r1.ebuild 452 BLAKE2B 56646e0ac63748260421e4f602ccc3bc0d49a517df7ef63744b3720e1d30e1eee910438f7edeccf7d0a947df4f155ff026f1dceccfd6202637892ba4f6ddac5d SHA512 cf7b5a9a7588437d423c571f1b14f90959e0d7a9440b3d249464a21898ec4900e066789ceef6acdb7a949a8c5e0600425d1095e0cefb410eebd05c815071b636 +EBUILD antlr-cpp-3.5.2.ebuild 512 BLAKE2B 0a684c17366afec326fb969d17ab3d48fedd4073dadb85669a8f4ffb74dc5ae3a1e7a1fca75fb722bdcdcaf85acebdc000d1cdfd858389a37589a7fb33f42dff SHA512 9335b7840649a2a155084191fd82ac83cbbec389c0682d09442ad56e8202107f72010d85eb50573eb9af3d49dd4fdac71c056764b0c33a098d6042bfb0e102b5 +MISC metadata.xml 313 BLAKE2B 3ddef83abe4413f33dae4c121c76dfdfab2336d433ef94716eced1df9f669f83883b4174d5a472b06ae8fb16c7179094469fe65258646d7dd9094b5c1673a2a3 SHA512 39988a3826d440aa378b455d18ce23230ba1870bf7b7c64123cfdd09c54b112e8586c87d421a2227370c6b4eae385af46ce3a9e4aab3c676fdfdac360fed8265 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 <<EOF > lib/cpp/antlr/Makefile.am || die +antlr_includedir = \$(includedir)/antlr +antlr_include_HEADERS = ${HPP} +EOF + + cat <<EOF > 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 <<EOF > lib/cpp/antlr/Makefile.am || die +antlr_includedir = \$(includedir)/antlr +antlr_include_HEADERS = ${HPP} +EOF + + cat <<EOF > 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..22d8b1075d1f --- /dev/null +++ b/dev-cpp/antlr-cpp/antlr-cpp-3.5.2-r1.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2017 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..de73a6f9bc48 --- /dev/null +++ b/dev-cpp/antlr-cpp/antlr-cpp-3.5.2.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2017 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 <antlr/config.hpp> + ++#include <cstdio> ++#include <cstring> + #include <map> + + #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 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> + </maintainer> + <upstream> + <remote-id type="github">antlr/antlr3</remote-id> + </upstream> +</pkgmetadata> |