diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-01-05 08:03:20 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-01-05 08:03:20 +0000 |
commit | 1ddcee0bd115d2f843f82061cb0d1741bf90151d (patch) | |
tree | 20e516fd0fd41ce7f9f04e7ea8e7d8d3139af3f4 /dev-libs/antlr-c | |
parent | c1c9e565a5696c10e991d8b5372f781ba5f13d5c (diff) |
gentoo auto-resync : 05:01:2024 - 08:03:20
Diffstat (limited to 'dev-libs/antlr-c')
-rw-r--r-- | dev-libs/antlr-c/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/antlr-c/antlr-c-3.5.2-r3.ebuild | 62 | ||||
-rw-r--r-- | dev-libs/antlr-c/files/3.5-autoconf.patch | 11 |
3 files changed, 75 insertions, 0 deletions
diff --git a/dev-libs/antlr-c/Manifest b/dev-libs/antlr-c/Manifest index ef8ea35092e0..c822425c0829 100644 --- a/dev-libs/antlr-c/Manifest +++ b/dev-libs/antlr-c/Manifest @@ -1,4 +1,6 @@ +AUX 3.5-autoconf.patch 281 BLAKE2B d7723257277f245d0814cb9f62359e9b0b04f23ae3c160866094ab7b6e1690e9a1113e3e3c33d297ec70f84e581cc7c8d0cba1fb80066e4c0d398d92f8b475b1 SHA512 2e784d0490301275f0b2baecc51a51e3866d7fee7c1cac0a9f464f6a9e8eca450fc582d1cdbb77654388f85c791c29580aa9c8ec9e954d3b20941d46098e2039 AUX 3.5-cflags.patch 423 BLAKE2B 1605eb4dbc47bdd9f54699a0fe0f0bdc54d419b68d4a99be11c55a654d3167422560e4edbdd59515b65f52d9a7785b103baa9e1e6742be8f9c40eb1985c6cf5e SHA512 fbabfd7db5d373646b873a5b56c6153b39c5287518ced27c4857aa91947998cfe009db143995d8fe93750068f615092edb647ea2a2ededa7a7997e6c741fb638 DIST antlr-3.5.2.tar.gz 6927126 BLAKE2B 1907229549434dfea6ef1fa915137a2f733bd61f0a40aacb131689df619d1c92e125453ec3d1febc5d92da1841ffbde060af196cff1ca8fb6f4684600375e161 SHA512 e2a0520093fb2a77dcd9d44f26a9fdd612dceaffb398c53b2b8cd29f4630830647ede29e8dd55b434cb2c165b0fd1d77968ec6e6de0798f14d9cdfd9e6fccd99 EBUILD antlr-c-3.5.2-r2.ebuild 1128 BLAKE2B b8955b16713b8d6572fb8b9ba33d57feea9186e678a4c833ff033300375693b50d615782a59c385eaf42e719ab93ec42ca90ea5dcd157a5026d3b54f1c25dfa2 SHA512 2a85ef45ac7dbe1d446b2949fece7bf5d774ab1033c909bc377e1749082a262a24b3fba40f2dcc02516698909aa5cae1b76cd4969d924ae2ae1ab4414e0394ba +EBUILD antlr-c-3.5.2-r3.ebuild 1144 BLAKE2B cac2bb1a33cef04b575f87878b8328650db710e19485575ba1b08d47272766c0107848822fef35a904f285c16c78d39f09c1c8e57541114ac15139207720ba26 SHA512 f90b2bd0ab3aaa0651b9778568cc577494a2e5a07fdc67ae0eaff761af715fdddc12d576473b2b731bd23f1ce20047c1ab45178b97494d582d898cb57f8ffd9b MISC metadata.xml 337 BLAKE2B e7536e66d5b8bd250838b00b81d494a800134f65625bb11c598f0ed39b4832a962c0894220b02522300c9930e1980bfccb8c70a176d87c2274d6042a7fe832f2 SHA512 1ef902a5485a4156a7994a84820df004fc0d76e6a82da4abd4962954dfa33c74b69c694cf74dd94b9a8ab584746a6ceaaafecc566342faa3764cdd6144b08a3a diff --git a/dev-libs/antlr-c/antlr-c-3.5.2-r3.ebuild b/dev-libs/antlr-c/antlr-c-3.5.2-r3.ebuild new file mode 100644 index 000000000000..efabf84d7edc --- /dev/null +++ b/dev-libs/antlr-c/antlr-c-3.5.2-r3.ebuild @@ -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 +} diff --git a/dev-libs/antlr-c/files/3.5-autoconf.patch b/dev-libs/antlr-c/files/3.5-autoconf.patch new file mode 100644 index 000000000000..5077652d2b5c --- /dev/null +++ b/dev-libs/antlr-c/files/3.5-autoconf.patch @@ -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 |