summaryrefslogtreecommitdiff
path: root/textproc/py-ICU
diff options
context:
space:
mode:
authorgutteridge <gutteridge@pkgsrc.org>2020-03-24 04:08:55 +0000
committergutteridge <gutteridge@pkgsrc.org>2020-03-24 04:08:55 +0000
commita4ae819e245943deaec2775021ff5d1f99cb84e0 (patch)
tree400203cf0c659c517c711035b34416496e5f4a1f /textproc/py-ICU
parent945dac7308d77c76dfa94f9f826a7c6708188c69 (diff)
downloadpkgsrc-a4ae819e245943deaec2775021ff5d1f99cb84e0.tar.gz
py-ICU: fix SunOS build
The code should perhaps just refer to fcntl.h not sys/fcntl.h, but I've special-cased SunOS for the chance "sys" is intended for portability to an OS I'm not familiar with, for "simplicity".
Diffstat (limited to 'textproc/py-ICU')
-rw-r--r--textproc/py-ICU/Makefile4
-rw-r--r--textproc/py-ICU/distinfo3
-rw-r--r--textproc/py-ICU/patches/patch-locale.cpp19
3 files changed, 23 insertions, 3 deletions
diff --git a/textproc/py-ICU/Makefile b/textproc/py-ICU/Makefile
index 3652e2df6af..e426704b173 100644
--- a/textproc/py-ICU/Makefile
+++ b/textproc/py-ICU/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.4 2020/03/21 17:02:14 gutteridge Exp $
+# $NetBSD: Makefile,v 1.5 2020/03/24 04:08:55 gutteridge Exp $
DISTNAME= PyICU-2.4.3
-PKGREVISION= 1
+PKGREVISION= 2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/PyICU/ICU/}
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_PYPI:=P/PyICU/}
diff --git a/textproc/py-ICU/distinfo b/textproc/py-ICU/distinfo
index 5b27ac2a23b..308bd07ee8a 100644
--- a/textproc/py-ICU/distinfo
+++ b/textproc/py-ICU/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.3 2020/03/21 17:02:14 gutteridge Exp $
+$NetBSD: distinfo,v 1.4 2020/03/24 04:08:55 gutteridge Exp $
SHA1 (PyICU-2.4.3.tar.gz) = 594c97ce83744f4173d20b7d465e9149ba83cc09
RMD160 (PyICU-2.4.3.tar.gz) = b2b7a4a739f081193865795be156e338637524ec
SHA512 (PyICU-2.4.3.tar.gz) = 77b81b0e9a17972696967ebc0421d05c1119a43c7e853f8d939390dddefa4a2a35dd316e08c10c10a283472bb64738016e47c5f45c7c6191d9dba296057740a0
Size (PyICU-2.4.3.tar.gz) = 219819 bytes
+SHA1 (patch-locale.cpp) = 4e259f3130e94bd8114d7781e36e21236c13d5b6
SHA1 (patch-setup.py) = 8a9c83d128c2cf95f3094abaeb0d9f85b2eb4840
diff --git a/textproc/py-ICU/patches/patch-locale.cpp b/textproc/py-ICU/patches/patch-locale.cpp
new file mode 100644
index 00000000000..3342aac8eff
--- /dev/null
+++ b/textproc/py-ICU/patches/patch-locale.cpp
@@ -0,0 +1,19 @@
+$NetBSD: patch-locale.cpp,v 1.1 2020/03/24 04:08:55 gutteridge Exp $
+
+Fix SunOS build.
+
+--- locale.cpp.orig 1970-01-01 00:00:00.000000000 +0000
++++ locale.cpp
+@@ -27,7 +27,11 @@
+ #if defined(_MSC_VER) || defined(__WIN32)
+ #include <windows.h>
+ #else
+-#include <sys/fcntl.h>
++# ifdef __sun
++# include <fcntl.h>
++# else
++# include <sys/fcntl.h>
++# endif
+ #include <sys/stat.h>
+ #include <sys/mman.h>
+ #endif