diff options
author | Sam James <sam@gentoo.org> | 2022-10-06 18:12:23 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-10-06 18:13:31 +0100 |
commit | 28b0e6b360bca9840cba0f185df826897206bf31 (patch) | |
tree | fbb8ac7ee086a3c33af49bc76c70f81aace4dcc7 /dev-libs | |
parent | www-client/chromium: stabilize 106.0.5249.103 amd64, bug #875644 (diff) | |
download | gentoo-28b0e6b360bca9840cba0f185df826897206bf31.tar.gz gentoo-28b0e6b360bca9840cba0f185df826897206bf31.tar.bz2 gentoo-28b0e6b360bca9840cba0f185df826897206bf31.zip |
dev-libs/argtable: fix build w/ Clang 16
Closes: https://bugs.gentoo.org/871231
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/argtable/argtable-2.13-r3.ebuild (renamed from dev-libs/argtable/argtable-2.13-r2.ebuild) | 19 | ||||
-rw-r--r-- | dev-libs/argtable/files/argtable-2.13-Fix-implicit-function-declaration.patch | 16 |
2 files changed, 26 insertions, 9 deletions
diff --git a/dev-libs/argtable/argtable-2.13-r2.ebuild b/dev-libs/argtable/argtable-2.13-r3.ebuild index 5ce3f4197fd4..22112e07aadc 100644 --- a/dev-libs/argtable/argtable-2.13-r2.ebuild +++ b/dev-libs/argtable/argtable-2.13-r3.ebuild @@ -3,20 +3,22 @@ EAPI=8 -DESCRIPTION="An ANSI C library for parsing GNU-style command-line options with minimal fuss" -HOMEPAGE="http://argtable.sourceforge.net/" - MY_PV="$(ver_rs 1 '-')" MY_P=${PN}${MY_PV} +DESCRIPTION="An ANSI C library for parsing GNU-style command-line options with minimal fuss" +HOMEPAGE="http://argtable.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" +S="${WORKDIR}"/${MY_P} LICENSE="LGPL-2" SLOT="0" KEYWORDS="~alpha amd64 ~arm64 ~ia64 ppc ppc64 ~riscv sparc x86" IUSE="doc debug examples static-libs" -S="${WORKDIR}"/${MY_P} +PATCHES=( + "${FILESDIR}"/${PN}-2.13-Fix-implicit-function-declaration.patch +) src_configure() { econf \ @@ -25,20 +27,19 @@ src_configure() { } src_install() { - emake DESTDIR="${D}" install - rm -rf "${D}"/usr/share/doc/${PF}/ + default - dodoc AUTHORS ChangeLog NEWS README + rm -rf "${ED}"/usr/share/doc/${PF}/ if use doc ; then - cd "${S}/doc" + cd "${S}"/doc || die dodoc *.pdf *.ps docinto html dodoc *.html *.gif fi if use examples ; then - cd "${S}/example" + cd "${S}"/example || die docinto examples dodoc Makefile *.[ch] README.txt fi diff --git a/dev-libs/argtable/files/argtable-2.13-Fix-implicit-function-declaration.patch b/dev-libs/argtable/files/argtable-2.13-Fix-implicit-function-declaration.patch new file mode 100644 index 000000000000..14ade74afaa6 --- /dev/null +++ b/dev-libs/argtable/files/argtable-2.13-Fix-implicit-function-declaration.patch @@ -0,0 +1,16 @@ +From febb2928d1e72c7adc914b2ef8e0611e1a5ea3fd Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Thu, 6 Oct 2022 18:10:52 +0100 +Subject: [PATCH] Fix implicit function declaration + +Bug: https://bugs.gentoo.org/871231 +--- a/src/arg_int.c ++++ b/src/arg_int.c +@@ -29,6 +29,7 @@ USA. + /* #endif */ + + #include "argtable2.h" ++#include <ctype.h> + #include <limits.h> + + /* local error codes */ |