commit:     d3cc3f87f750b9de69cbc9c1b21efc1df4e033f8
Author:     Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
AuthorDate: Tue Mar  2 20:33:11 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Mar  3 16:51:47 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3cc3f87

app-text/vilistextum: Fix static variable declaration

Closes: https://bugs.gentoo.org/752051
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/vilistextum-2.8.0.20200411-static.patch        | 12 ++++++++++++
 app-text/vilistextum/vilistextum-2.8.0.20200411.ebuild   | 16 +++++++++-------
 2 files changed, 21 insertions(+), 7 deletions(-)

diff --git a/app-text/vilistextum/files/vilistextum-2.8.0.20200411-static.patch 
b/app-text/vilistextum/files/vilistextum-2.8.0.20200411-static.patch
new file mode 100644
index 00000000000..4f96862216b
--- /dev/null
+++ b/app-text/vilistextum/files/vilistextum-2.8.0.20200411-static.patch
@@ -0,0 +1,12 @@
+https://bugs.gentoo.org/752051
+--- a/src/html.c
++++ b/src/html.c
+@@ -47,7 +47,7 @@ CHAR attr_name[DEF_STR_LEN], /* Attribut name of a HTML-Tag 
*/
+ /* ------------------------------------------------ */
+ #if defined(MULTIBYTE) && !defined(HAVE_WCSCASECMP)
+ #include <wchar.h>
+-static int wcscasecmp(const wchar_t *s1, const wchar_t *s2)
++extern int wcscasecmp(const wchar_t *s1, const wchar_t *s2)
+ {
+       size_t i;
+       wint_t c1, c2;

diff --git a/app-text/vilistextum/vilistextum-2.8.0.20200411.ebuild 
b/app-text/vilistextum/vilistextum-2.8.0.20200411.ebuild
index 53e0a57b8f0..fafcf180776 100644
--- a/app-text/vilistextum/vilistextum-2.8.0.20200411.ebuild
+++ b/app-text/vilistextum/vilistextum-2.8.0.20200411.ebuild
@@ -17,15 +17,17 @@ KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux 
~ppc-macos ~x64-macos
 IUSE="unicode"
 
 DEPEND="virtual/libiconv"
-RDEPEND=""
 
-src_prepare() {
-       eapply "${FILESDIR}/${PN}-2.8.0-prefix.patch"
-       eapply "${FILESDIR}/${PN}-2.8.0.20200411-blockquote.patch"
-       eapply "${FILESDIR}/${PN}-2.8.0-towlower.patch"
-       eapply "${FILESDIR}/${PN}-2.8.0.20200411-list-alignment.patch"
+PATCHES=(
+       "${FILESDIR}"/${PN}-2.8.0-prefix.patch
+       "${FILESDIR}"/${PN}-2.8.0.20200411-blockquote.patch
+       "${FILESDIR}"/${PN}-2.8.0-towlower.patch
+       "${FILESDIR}"/${PN}-2.8.0.20200411-list-alignment.patch
+       "${FILESDIR}"/${P}-static.patch
+)
 
-       eapply_user
+src_prepare() {
+       default
        eautoreconf
 
        # wcscasecmp needs extensions, which aren't enabled

Reply via email to