diff options
author | 2023-01-02 15:52:44 +0100 | |
---|---|---|
committer | 2023-01-02 15:52:44 +0100 | |
commit | 4c36d3a0bddc15e3714070f8b7ecbe612412bf35 (patch) | |
tree | f86c8457d84408cacf4c406f39a9831a998b462e /dev-cpp/antlr-cpp/antlr-cpp-2.7.7-r2.ebuild | |
parent | net-dialup/accel-ppp: drop 1.12.0_p20210430 (diff) | |
download | gentoo-4c36d3a0bddc15e3714070f8b7ecbe612412bf35.tar.gz gentoo-4c36d3a0bddc15e3714070f8b7ecbe612412bf35.tar.bz2 gentoo-4c36d3a0bddc15e3714070f8b7ecbe612412bf35.zip |
dev-cpp/antlr-cpp: update EAPI 6 -> 8
Closes: https://bugs.gentoo.org/735708
Closes: https://bugs.gentoo.org/842075
Closes: https://bugs.gentoo.org/843170
Closes: https://bugs.gentoo.org/866278
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'dev-cpp/antlr-cpp/antlr-cpp-2.7.7-r2.ebuild')
-rw-r--r-- | dev-cpp/antlr-cpp/antlr-cpp-2.7.7-r2.ebuild | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/dev-cpp/antlr-cpp/antlr-cpp-2.7.7-r2.ebuild b/dev-cpp/antlr-cpp/antlr-cpp-2.7.7-r2.ebuild new file mode 100644 index 000000000000..525a0ee06a08 --- /dev/null +++ b/dev-cpp/antlr-cpp/antlr-cpp-2.7.7-r2.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools multilib-minimal + +MY_P="${PN%-cpp}-${PV}" + +DESCRIPTION="The ANTLR 2 C++ Runtime" +HOMEPAGE="https://www.antlr2.org/" +SRC_URI="https://www.antlr2.org/download/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="public-domain" +SLOT="2" +KEYWORDS="amd64 ~arm ppc x86" +IUSE="doc examples" +RESTRICT="test" # No tests but test target blows up! + +BDEPEND="doc? ( app-doc/doxygen[dot] )" + +PATCHES=( + "${FILESDIR}"/${PV}-gcc.patch + + # 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. + "${FILESDIR}"/${PV}-autotools.patch +) + +src_prepare() { + default + + mv -v {aclocal,acinclude}.m4 || die + + # Delete build files from examples + find examples -name Makefile.in -delete || die + + eautoreconf +} + +multilib_src_configure() { + CONFIG_SHELL="${BASH}" ECONF_SOURCE="${S}" econf \ + --disable-csharp \ + --disable-examples \ + --disable-java \ + --disable-python \ + --enable-cxx \ + --enable-verbose +} + +multilib_src_compile() { + default + + if multilib_native_use doc; then + cd "${S}"/lib/cpp || die + doxygen -u doxygen.cfg || die + doxygen doxygen.cfg || die + HTML_DOCS=( "${S}"/lib/cpp/gen_doc/html/. ) + fi +} + +multilib_src_install() { + # We only care about the C++ stuff + emake -C lib/cpp DESTDIR="${D}" install +} + +multilib_src_install_all() { + einstalldocs + dodoc lib/cpp/AUTHORS lib/cpp/ChangeLog lib/cpp/README lib/cpp/TODO + + if use examples; then + docinto examples + dodoc -r examples/cpp/. + fi + + find "${ED}" -name '*.la' -delete || die +} |