From: "James Le Cuirot" <chewi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/antlr-cpp/
Date: Mon, 5 Dec 2016 21:47:32 +0000 (UTC) [thread overview]
Message-ID: <1480974429.4a7cc97647e358a76e530d205cb383ad18f98e7f.chewi@gentoo> (raw)
commit: 4a7cc97647e358a76e530d205cb383ad18f98e7f
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 5 21:47:09 2016 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Mon Dec 5 21:47:09 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a7cc976
dev-cpp/antlr-cpp: EAPI bump, migration away from autotools-multilib
Package-Manager: portage-2.3.2
dev-cpp/antlr-cpp/antlr-cpp-2.7.7-r1.ebuild | 106 ++++++++++++++++++++++++++++
1 file changed, 106 insertions(+)
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 00000000..f25d87c
--- /dev/null
+++ b/dev-cpp/antlr-cpp/antlr-cpp-2.7.7-r1.ebuild
@@ -0,0 +1,106 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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() {
+ 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
+}
next reply other threads:[~2016-12-05 21:47 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-05 21:47 James Le Cuirot [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-04-26 12:59 [gentoo-commits] repo/gentoo:master commit in: dev-cpp/antlr-cpp/ Arthur Zamarin
2025-03-10 0:22 Sam James
2025-02-16 11:54 Sam James
2025-02-16 11:54 Sam James
2025-02-16 11:54 Sam James
2024-06-22 11:00 Miroslav Šulc
2023-05-27 15:06 Pacho Ramos
2023-02-07 17:41 Andreas Sturmlechner
2023-02-07 17:25 Andreas Sturmlechner
2023-02-07 16:54 Sam James
2023-02-07 16:54 Sam James
2023-02-07 16:54 Sam James
2021-03-10 11:05 Miroslav Šulc
2021-03-10 11:05 Miroslav Šulc
2020-06-06 18:01 Michał Górny
2020-05-31 19:09 Sergei Trofimovich
2019-11-13 8:27 Miroslav Šulc
2019-11-13 7:39 Agostino Sarubbo
2019-11-02 9:03 Miroslav Šulc
2019-11-02 8:49 Agostino Sarubbo
2019-11-02 8:49 Agostino Sarubbo
2019-11-02 8:42 Agostino Sarubbo
2019-11-02 8:42 Agostino Sarubbo
2019-11-01 11:11 Miroslav Šulc
2019-10-22 18:27 Miroslav Šulc
2019-06-05 7:46 Agostino Sarubbo
2019-05-26 11:50 Mikle Kolyada
2019-04-20 1:29 Aaron Bauman
2018-11-21 10:28 Patrice Clement
2018-11-04 18:10 Patrice Clement
2018-08-07 12:22 Patrice Clement
2017-11-25 14:08 Patrick Lauer
2017-07-15 18:17 James Le Cuirot
2016-12-20 11:37 Patrice Clement
2016-12-12 11:07 Patrice Clement
2016-02-17 14:42 Richard Farina
2016-01-23 16:59 Agostino Sarubbo
2016-01-17 17:52 Agostino Sarubbo
2016-01-16 13:57 James Le Cuirot
2015-12-25 13:14 James Le Cuirot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1480974429.4a7cc97647e358a76e530d205cb383ad18f98e7f.chewi@gentoo \
--to=chewi@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox