mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-16 14:29:05 -07:00
dev-libs/antlr-c: fix autoconf macro; drop (repurpose) invalid USE=debug
* Fix unnecessary use of AC_INCLUDES_DEFAULT (configure script + image is the same without it) which causes noise in ./configure * Drop USE=debug for debug symbols (invalid) * Rename USE=debugger -> USE=debug to match what USE=debug is really for * Cleanup 64-bit test Closes: https://bugs.gentoo.org/921345 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
62
dev-libs/antlr-c/antlr-c-3.5.2-r3.ebuild
Normal file
62
dev-libs/antlr-c/antlr-c-3.5.2-r3.ebuild
Normal file
@@ -0,0 +1,62 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit autotools toolchain-funcs
|
||||
|
||||
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 doc"
|
||||
|
||||
BDEPEND="doc? ( app-doc/doxygen[dot] )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/3.5-cflags.patch"
|
||||
"${FILESDIR}/3.5-autoconf.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -i '/^QUIET/s/NO/YES/' doxyfile || die
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local econfargs=(
|
||||
$(use_enable debug antlrdebug)
|
||||
)
|
||||
|
||||
case "$(tc-get-ptr-size)" in
|
||||
8) econfargs+=( --enable-64bit ) ;;
|
||||
4) 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
|
||||
}
|
||||
11
dev-libs/antlr-c/files/3.5-autoconf.patch
Normal file
11
dev-libs/antlr-c/files/3.5-autoconf.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
https://bugs.gentoo.org/921345
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -148,7 +148,6 @@ AC_PROG_MAKE_SET
|
||||
# Checks for libraries.
|
||||
|
||||
# Checks for header files.
|
||||
-AC_INCLUDES_DEFAULT()
|
||||
AC_HEADER_RESOLV
|
||||
AC_CHECK_HEADERS([sys/malloc.h malloc.h], [], [],
|
||||
[[#ifdef HAVE_SYS_MALLOC_H
|
||||
Reference in New Issue
Block a user