libnumbertext: pulled patch from libreoffice

This commit is contained in:
Tim Biermann 2023-01-28 14:51:33 +01:00
parent 171b95a01d
commit f0106ca641
Signed by: tb
GPG Key ID: 42F8B4E30B673606
3 changed files with 25 additions and 4 deletions

View File

@ -1,6 +1,7 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3/WeGVJjvzOhuONsgUuUl0ZdDAwZSMEj9OTLtTucp0uyVXRFbJtm5d7lrjH1msBNCvj6+wNli5FcnLB9GX1+iQ8=
SHA256 (Pkgfile) = 07d087d9067c503c3a1e5c039f7f1ccb3726bfc5e462d5299d9923f6f40b1dec
RWSagIOpLGJF3xESMp/r5ZBzsxD9k1uC2Lv1mJTInwSaGQxapr+yhLbdbdNxHgjePC05o1/54MUuNYRaOtL2x3Z593yOH1y6/go=
SHA256 (Pkgfile) = 02f9eaeeaac372a73271c99171ba333810eadaa37e6b3057ba3cccaa4179f573
SHA256 (.footprint) = 7d4cf92a7158c7daf1b93badaf7c79fb7fcff7767d5a7ab7d54a46aaed1871ab
SHA256 (libnumbertext-1.0.11.tar.gz) = 80aad7cab123edc614f904d9f145d1d15cf465084a1a15fca2117525dc746034
SHA256 (libnumbertext-updateautotools.patch) = 4c1be70cbb6c7b5e2f9d3842ad83ea95971d99663768e5df2ac74956fc4555bd
SHA256 (deprecated.patch.0) = 520cbcc0fc285524a3e45c182d121c8e5c1965d28197bf389c7095da5e8fff96

View File

@ -4,12 +4,15 @@
name=libnumbertext
version=1.0.11
release=1
source=(https://github.com/Numbertext/libnumbertext/archive/$version/$name-$version.tar.gz libnumbertext-updateautotools.patch)
release=2
source=(https://github.com/Numbertext/libnumbertext/archive/$version/$name-$version.tar.gz
libnumbertext-updateautotools.patch
deprecated.patch.0)
build() {
cd $name-$version
patch -Np0 -i $SRC/deprecated.patch.0
patch -Np1 -i $SRC/libnumbertext-updateautotools.patch
autoreconf -vfi

View File

@ -0,0 +1,17 @@
--- src/Numbertext.cxx
+++ src/Numbertext.cxx
@@ -41,7 +41,14 @@
std::wifstream wif(filename);
if (wif.fail())
return false;
+#if defined __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
wif.imbue(std::locale(std::locale(), new std::codecvt_utf8<wchar_t>));
+#if defined __GNUC__
+#pragma GCC diagnostic pop
+#endif
std::wstringstream wss;
wss << wif.rdbuf();
result = wss.str();