commit f0106ca641b536b39e24accf3eed1f84e6c5fc5e Author: Tim Biermann <tbier@posteo.de> Date: Sat Jan 28 14:51:33 2023 +0100 libnumbertext: pulled patch from libreoffice diff --git a/libnumbertext/.signature b/libnumbertext/.signature index 16b97f11b..a7ae44458 100644 --- a/libnumbertext/.signature +++ b/libnumbertext/.signature @@ -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 diff --git a/libnumbertext/Pkgfile b/libnumbertext/Pkgfile index 240b318a4..2c9ba2295 100644 --- a/libnumbertext/Pkgfile +++ b/libnumbertext/Pkgfile @@ -4,12 +4,15 @@ name=libnumbertext version=1.0.11 -release=1 -source=(https://github.com/Numbertext/libnumbertext/archive/$version/$name-$version.... libnumbertext-updateautotools.patch) +release=2 +source=(https://github.com/Numbertext/libnumbertext/archive/$version/$name-$version.... + 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 diff --git a/libnumbertext/deprecated.patch.0 b/libnumbertext/deprecated.patch.0 new file mode 100644 index 000000000..81e854273 --- /dev/null +++ b/libnumbertext/deprecated.patch.0 @@ -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();