From cca2ef8c921f83bf05df99eda2196c6305c12087 Mon Sep 17 00:00:00 2001 From: Brahmajit Das Date: Mon, 18 Sep 2023 19:17:55 +0000 Subject: app-text/unrtf: Fix call to undeclared function strcasestr and update EAPI 7 -> 8 [sam: Tweak comment and rename patch file to reflect the version that was finally submitted rather than the initial version.] Closes: https://bugs.gentoo.org/894716 Signed-off-by: Brahmajit Das Closes: https://github.com/gentoo/gentoo/pull/32868 Signed-off-by: Sam James --- .../files/unrtf-0.21.10-use-_GNU_SOURCE.patch | 11 ++++++++++ app-text/unrtf/unrtf-0.21.10-r1.ebuild | 24 ++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 app-text/unrtf/files/unrtf-0.21.10-use-_GNU_SOURCE.patch create mode 100644 app-text/unrtf/unrtf-0.21.10-r1.ebuild (limited to 'app-text/unrtf') diff --git a/app-text/unrtf/files/unrtf-0.21.10-use-_GNU_SOURCE.patch b/app-text/unrtf/files/unrtf-0.21.10-use-_GNU_SOURCE.patch new file mode 100644 index 000000000000..7aaaef65e27a --- /dev/null +++ b/app-text/unrtf/files/unrtf-0.21.10-use-_GNU_SOURCE.patch @@ -0,0 +1,11 @@ +Bug: https://bugs.gentoo.org/894716 +--- a/src/convert.c ++++ b/src/convert.c +@@ -104,6 +104,7 @@ + #ifdef HAVE_STRING_H + /* For strcasestr() */ + #define __USE_GNU ++#define _GNU_SOURCE + #include + #endif + diff --git a/app-text/unrtf/unrtf-0.21.10-r1.ebuild b/app-text/unrtf/unrtf-0.21.10-r1.ebuild new file mode 100644 index 000000000000..9734ade2ec5c --- /dev/null +++ b/app-text/unrtf/unrtf-0.21.10-r1.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic + +DESCRIPTION="Converts RTF files to various formats" +HOMEPAGE="https://www.gnu.org/software/unrtf/unrtf.html" +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-solaris" + +PATCHES=( + "${FILESDIR}"/${PN}-0.21.10-use-_GNU_SOURCE.patch +) + +src_configure() { + append-flags -std=gnu17 + + econf +} -- cgit v1.2.3-65-gdbad