diff options
author | Sam James <sam@gentoo.org> | 2022-09-09 09:58:44 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2022-09-09 09:58:44 +0200 |
commit | d66f38dfbe00dcf62ac71843a08f95d9d4273231 (patch) | |
tree | 497fe358d55845c0f3c37756874babdf824a1e8e /dev-libs/antlr-c/antlr-c-3.5.2-r2.ebuild | |
parent | dev-db/libiodbc: drop multilib (diff) | |
download | gentoo-d66f38dfbe00dcf62ac71843a08f95d9d4273231.tar.gz gentoo-d66f38dfbe00dcf62ac71843a08f95d9d4273231.tar.bz2 gentoo-d66f38dfbe00dcf62ac71843a08f95d9d4273231.zip |
dev-libs/antlr-c: drop multilib, EAPI 8
No multilib reverse dependencies.
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'dev-libs/antlr-c/antlr-c-3.5.2-r2.ebuild')
-rw-r--r-- | dev-libs/antlr-c/antlr-c-3.5.2-r2.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/dev-libs/antlr-c/antlr-c-3.5.2-r2.ebuild b/dev-libs/antlr-c/antlr-c-3.5.2-r2.ebuild new file mode 100644 index 000000000000..f7a8a0295cdd --- /dev/null +++ b/dev-libs/antlr-c/antlr-c-3.5.2-r2.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +MY_PN="${PN%-c}" +DESCRIPTION="The ANTLR3 C Runtime" +HOMEPAGE="https://www.antlr3.org/" +SRC_URI="https://github.com/${MY_PN}/${MY_PN}3/archive/${PV}.tar.gz -> ${MY_PN}-${PV}.tar.gz" +S="${WORKDIR}/${MY_PN}3-${PV}/runtime/C" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="debug debugger doc" + +BDEPEND="doc? ( app-doc/doxygen[dot] )" + +PATCHES=( "${FILESDIR}/3.5-cflags.patch" ) + +src_prepare() { + default + + sed -i '/^QUIET/s/NO/YES/' doxyfile || die + eautoreconf +} + +src_configure() { + local econfargs=( + $(use_enable debug debuginfo) + $(use_enable debugger antlrdebug) + ) + + case "${ABI}" in + *64*) econfargs+=( --enable-64bit ) ;; + *) econfargs+=( --disable-64bit ) ;; + esac + + CONFIG_SHELL="${BROOT}"/bin/bash econf "${econfargs[@]}" +} + +src_compile() { + default + + if use doc ; then + einfo "Generating API documentation ..." + doxygen -u doxyfile || die + doxygen doxyfile || die + + HTML_DOCS=( "${S}"/api/ ) + fi +} + +src_install() { + default + + find "${ED}" -name '*.la' -delete || die +} |