Update to py-ICU-1.9.7.

This commit is contained in:
ajacoutot 2017-07-22 20:53:21 +00:00
parent 1a12e04a7d
commit 70601fbd23
4 changed files with 28 additions and 24 deletions

View File

@ -1,11 +1,10 @@
# $OpenBSD: Makefile,v 1.11 2017/07/16 19:19:03 espie Exp $
# $OpenBSD: Makefile,v 1.12 2017/07/22 20:53:21 ajacoutot Exp $
COMMENT= Python extension wrapping the ICU C++ API
MODPY_EGG_VERSION= 1.9.5
MODPY_EGG_VERSION= 1.9.7
DISTNAME= PyICU-${MODPY_EGG_VERSION}
PKGNAME= py-ICU-${MODPY_EGG_VERSION}
REVISION= 0
CATEGORIES= textproc
@ -24,6 +23,8 @@ MODPY_SETUPTOOLS= Yes
FLAVORS= python3
FLAVOR?=
COMPILER= gcc
LIB_DEPENDS= textproc/icu4c
pre-configure:

View File

@ -1,2 +1,2 @@
SHA256 (PyICU-1.9.5.tar.gz) = c7BSuACGH64ygduvnJLRKoHKvz0xkS2UxRhi4JPvNZs=
SIZE (PyICU-1.9.5.tar.gz) = 181878
SHA256 (PyICU-1.9.7.tar.gz) = 2yfNHMFQuHnFRlhyvsf9rzQOyhQKqSK+A4kdW5+FW2E=
SIZE (PyICU-1.9.7.tar.gz) = 183235

View File

@ -1,7 +1,8 @@
$OpenBSD: patch-setup_py,v 1.3 2016/12/05 16:16:55 ajacoutot Exp $
--- setup.py.orig Fri Nov 11 19:59:29 2016
+++ setup.py Mon Dec 5 09:46:49 2016
@@ -14,6 +14,7 @@ INCLUDES = {
$OpenBSD: patch-setup_py,v 1.4 2017/07/22 20:53:21 ajacoutot Exp $
Index: setup.py
--- setup.py.orig
+++ setup.py
@@ -40,6 +40,7 @@ INCLUDES = {
'darwin': ['/usr/local/include'],
'linux': [],
'freebsd': ['/usr/local/include'],
@ -9,15 +10,15 @@ $OpenBSD: patch-setup_py,v 1.3 2016/12/05 16:16:55 ajacoutot Exp $
'win32': ['c:/icu/include'],
'sunos5': [],
}
@@ -22,6 +23,7 @@ CFLAGS = {
'darwin': ['-DPYICU_VER="%s"' %(VERSION)],
'linux': ['-DPYICU_VER="%s"' %(VERSION)],
'freebsd': ['-DPYICU_VER="%s"' %(VERSION)],
+ 'openbsd': ['-DPYICU_VER="%s"' %(VERSION)],
@@ -48,6 +49,7 @@ CFLAGS = {
'darwin': ['-DPYICU_VER="%s"' %(VERSION), '-std=c++11'],
'linux': ['-DPYICU_VER="%s"' %(VERSION), '-std=c++11'],
'freebsd': ['-DPYICU_VER="%s"' %(VERSION), '-std=c++11'],
+ 'openbsd': ['-DPYICU_VER="%s"' %(VERSION), '-std=c++11'],
'win32': ['/Zc:wchar_t', '/EHsc', '/DPYICU_VER=\\"%s\\"' %(VERSION)],
'sunos5': ['-DPYICU_VER="%s"' %(VERSION)],
'sunos5': ['-DPYICU_VER="%s"' %(VERSION), '-std=c++11'],
}
@@ -31,6 +33,7 @@ DEBUG_CFLAGS = {
@@ -57,6 +59,7 @@ DEBUG_CFLAGS = {
'darwin': ['-O0', '-g', '-DDEBUG'],
'linux': ['-O0', '-g', '-DDEBUG'],
'freebsd': ['-O0', '-g', '-DDEBUG'],
@ -25,7 +26,7 @@ $OpenBSD: patch-setup_py,v 1.3 2016/12/05 16:16:55 ajacoutot Exp $
'win32': ['/Od', '/DDEBUG'],
'sunos5': ['-DDEBUG'],
}
@@ -39,6 +42,7 @@ LFLAGS = {
@@ -65,6 +68,7 @@ LFLAGS = {
'darwin': ['-L/usr/local/lib'],
'linux': [],
'freebsd': ['-L/usr/local/lib'],
@ -33,7 +34,7 @@ $OpenBSD: patch-setup_py,v 1.3 2016/12/05 16:16:55 ajacoutot Exp $
'win32': ['/LIBPATH:c:/icu/lib'],
'sunos5': [],
}
@@ -47,6 +51,7 @@ LIBRARIES = {
@@ -73,6 +77,7 @@ LIBRARIES = {
'darwin': ['icui18n', 'icuuc', 'icudata'],
'linux': ['icui18n', 'icuuc', 'icudata'],
'freebsd': ['icui18n', 'icuuc', 'icudata'],
@ -41,7 +42,7 @@ $OpenBSD: patch-setup_py,v 1.3 2016/12/05 16:16:55 ajacoutot Exp $
'win32': ['icuin', 'icuuc', 'icudt'],
'sunos5': ['icui18n', 'icuuc', 'icudata'],
}
@@ -56,6 +61,8 @@ if platform.startswith(('linux', 'gnu')):
@@ -82,6 +87,8 @@ if platform.startswith(('linux', 'gnu')):
platform = 'linux'
elif platform.startswith('freebsd'):
platform = 'freebsd'

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.2 2015/12/30 11:06:05 ajacoutot Exp $
@comment $OpenBSD: PLIST,v 1.3 2017/07/22 20:53:21 ajacoutot Exp $
lib/python${MODPY_VERSION}/site-packages/PyICU-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
lib/python${MODPY_VERSION}/site-packages/PyICU-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
lib/python${MODPY_VERSION}/site-packages/PyICU-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
@ -6,8 +6,10 @@ lib/python${MODPY_VERSION}/site-packages/PyICU-${MODPY_EGG_VERSION}-py${MODPY_VE
lib/python${MODPY_VERSION}/site-packages/PyICU-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
lib/python${MODPY_VERSION}/site-packages/PyICU.py
lib/python${MODPY_VERSION}/site-packages/${MODPY_PYCACHE}PyICU.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/${MODPY_PYCACHE}docs.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/${MODPY_PYCACHE}icu.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/_icu.so
lib/python${MODPY_VERSION}/site-packages/docs.py
lib/python${MODPY_VERSION}/site-packages/icu.py
lib/python${MODPY_VERSION}/site-packages/icu/
lib/python${MODPY_VERSION}/site-packages/icu/__init__.py
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/icu/${MODPY_PYCACHE}/
lib/python${MODPY_VERSION}/site-packages/icu/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/icu/${MODPY_PYCACHE}docs.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/icu/docs.py