From bd4aeefe33e63f613512604e47bfca7b2187697d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 3 Nov 2019 16:06:58 +0000 Subject: gentoo resync : 03.11.2019 --- dev-libs/antlr-c/Manifest | 1 + dev-libs/antlr-c/antlr-c-3.5.2-r1.ebuild | 63 ++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 dev-libs/antlr-c/antlr-c-3.5.2-r1.ebuild (limited to 'dev-libs/antlr-c') diff --git a/dev-libs/antlr-c/Manifest b/dev-libs/antlr-c/Manifest index db76b3f68191..6fe675d814b5 100644 --- a/dev-libs/antlr-c/Manifest +++ b/dev-libs/antlr-c/Manifest @@ -1,4 +1,5 @@ AUX 3.5-cflags.patch 632 BLAKE2B 34051800ce235fb8b913abd1b3c01f2364d73a7103d380cecc861d2b89eacaefe65a6038199799c3974789e6d4cb17aae43c74a3276c299a95dbd3406a6e8ed8 SHA512 8f68bc1d56de08d144ca6dc29c530a6d89347aed58d497a7f5525d5375086cbce1c4365e4ac917ef92eaae9471c6031d38df98244dbb426620073f697c8fbf68 DIST antlr-3.5.2.tar.gz 6927126 BLAKE2B 1907229549434dfea6ef1fa915137a2f733bd61f0a40aacb131689df619d1c92e125453ec3d1febc5d92da1841ffbde060af196cff1ca8fb6f4684600375e161 SHA512 e2a0520093fb2a77dcd9d44f26a9fdd612dceaffb398c53b2b8cd29f4630830647ede29e8dd55b434cb2c165b0fd1d77968ec6e6de0798f14d9cdfd9e6fccd99 +EBUILD antlr-c-3.5.2-r1.ebuild 1386 BLAKE2B 03f4c638d3f6c0d933b39537a53e40b7a8bf8a30722e320a9e2eac2619ffba8dd4cc349f7ea043461094d983b67bfbd8a6d2a6de423449b85b2269c3820c0374 SHA512 bd23886362f0f2f102f620cc693e7fb968e9cf21b2b35e3c521a93d57855b8b8c1c18da0e29bb7b4e464948ee9f03d7e78817018dbe993c85a8b1f0f19761358 EBUILD antlr-c-3.5.2.ebuild 1367 BLAKE2B b75a954abbdfbd4024675f3f1348231ce0c12da972fb60b0d598268d702fa8f2c88ac48a55afec4ba93c3ead596df95dd7b528120bd3172c7d25aa1539da42b9 SHA512 39c49f79ea909c9bf107bece3b969d19ed987ad89af7bb5700f28ffc0e41a2336d2191d47fe212a742372273978def36a6009f35ff7e484cc876a0526f680006 MISC metadata.xml 336 BLAKE2B 980e56da4035d18792f5f65654223bdfa1bca764c18677a1e4cb6ee7da3e2f59a09944c0c6bfd63045f0c2855ed353d0cc2bd68a3cefced82ec9f3d82f478401 SHA512 4d1c32d4948359f596c0b006237cf7ee33d662c1730c4c68b9b4786fb46d762e3e4b1c89f9ca5ad99cc727c9be96c2a0f0ad92e5ceb990e71fcfd8b37ec257aa diff --git a/dev-libs/antlr-c/antlr-c-3.5.2-r1.ebuild b/dev-libs/antlr-c/antlr-c-3.5.2-r1.ebuild new file mode 100644 index 000000000000..743a7d4e90ab --- /dev/null +++ b/dev-libs/antlr-c/antlr-c-3.5.2-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit eutils autotools multilib-minimal + +MY_PN="${PN%-c}" +DESCRIPTION="The ANTLR3 C Runtime" +HOMEPAGE="http://www.antlr3.org/" +SRC_URI="https://github.com/${MY_PN}/${MY_PN}3/archive/${PV}.tar.gz -> ${MY_PN}-${PV}.tar.gz" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="debug debugger doc static-libs" + +DEPEND="doc? ( app-doc/doxygen[dot] )" +RDEPEND="" + +S="${WORKDIR}/${MY_PN}3-${PV}/runtime/C" +PATCHES=( "${FILESDIR}/3.5-cflags.patch" ) +MULTILIB_WRAPPED_HEADERS=( /usr/include/antlr3config.h ) +DOCS=( AUTHORS ChangeLog NEWS README ) + +src_prepare() { + default + sed -i '/^QUIET/s/NO/YES/' doxyfile || die + eautoreconf + multilib_copy_sources +} + +multilib_src_configure() { + local econfargs=( + --enable-shared + $(use_enable debug debuginfo) + $(use_enable debugger antlrdebug) + $(use_enable static-libs static) + ) + + case "${ABI}" in + *64*) econfargs+=( --enable-64bit ) ;; + *) econfargs+=( --disable-64bit ) ;; + esac + + econf "${econfargs[@]}" +} + +src_compile() { + multilib-minimal_src_compile + + if use doc; then + einfo "Generating API documentation ..." + cd "${S}" || die + doxygen -u doxyfile || die + doxygen doxyfile || die + fi +} + +src_install() { + use doc && HTML_DOCS=( "${S}/api/" ) + multilib-minimal_src_install + find "${D}" -name '*.la' -delete || die +} -- cgit v1.2.3