libnumbertext: bump version

This commit is contained in:
Gerasim Troeglazov
2020-09-01 13:22:05 +10:00
parent d2a6961765
commit 7204d4ef09
2 changed files with 4 additions and 17 deletions

View File

@@ -3,12 +3,12 @@ DESCRIPTION="Numbertext can convert numbers to their names, including cardinal \
and ordinal numbers, ordinal indicators and money amounts with currencies in \
more than 40 languages and numeral systems."
HOMEPAGE="https://numbertext.org/"
COPYRIGHT="20092018 László Németh et al."
COPYRIGHT="20092020 László Németh et al."
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="https://github.com/Numbertext/libnumbertext/archive/$portVersion.tar.gz"
SOURCE_FILENAME="libnumbertext-$portVersion.tar.gz"
CHECKSUM_SHA256="508f259325efc25705e27ca1bafe487aa0b8b0f5cc3bf77cb2d53ce7f119c380"
CHECKSUM_SHA256="d03860c98ec01bc52a2a65f04b1fc4c7e7823c76d54dec800ca32ab2196023bc"
PATCHES="libnumbertext-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 x86_64"

View File

@@ -4,21 +4,8 @@ Date: Fri, 3 Aug 2018 20:05:18 +0200
Subject: Haiku support
diff --git a/src/Numbertext.cxx b/src/Numbertext.cxx
index 3527797..fd6a4e9 100644
--- a/src/Numbertext.cxx
+++ b/src/Numbertext.cxx
@@ -24,7 +24,7 @@ bool readfile(const std::string& filename, std::wstring& result)
std::wifstream wif(filename);
if (wif.fail())
return false;
-#ifdef _MSC_VER
+#if defined _MSC_VER || defined __HAIKU__
wif.imbue(std::locale(std::locale(), new std::codecvt_utf8<wchar_t>));
#else
wif.imbue(std::locale("en_US.UTF-8"));
diff --git a/src/spellout.cxx b/src/spellout.cxx
index bcdfd83..d20bb91 100644
index d287e66..7bd4aa8 100644
--- a/src/spellout.cxx
+++ b/src/spellout.cxx
@@ -1,6 +1,10 @@
@@ -48,5 +35,5 @@ index bcdfd83..d20bb91 100644
if (getenv(PATH))
paths.insert(paths.begin() + 1, std::string(getenv(PATH)) + "/");
--
2.16.4
2.28.0