Import py-ICU-1.8.
PyICU is a Python extension wrapping IBM's International Components for Unicode C++ library (ICU). ok jasper@
This commit is contained in:
parent
5e8090c9ff
commit
73956c1aa9
30
textproc/py-ICU/Makefile
Normal file
30
textproc/py-ICU/Makefile
Normal file
@ -0,0 +1,30 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2014/07/03 11:17:06 ajacoutot Exp $
|
||||
|
||||
COMMENT= Python extension wrapping the ICU C++ API
|
||||
|
||||
MODPY_EGG_VERSION= 1.8
|
||||
DISTNAME= PyICU-${MODPY_EGG_VERSION}
|
||||
PKGNAME= py-ICU-${MODPY_EGG_VERSION}
|
||||
|
||||
CATEGORIES= textproc
|
||||
|
||||
HOMEPAGE= https://pypi.python.org/pypi/PyICU
|
||||
|
||||
# MIT
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
|
||||
WANTLIB += icudata icui18n icule icuuc m pthread stdc++
|
||||
WANTLIB += ${MODPY_WANTLIB}
|
||||
|
||||
MASTER_SITES= ${MASTER_SITE_PYPI:=P/PyICU/}
|
||||
|
||||
MODULES= lang/python
|
||||
|
||||
MODPY_SETUPTOOLS= Yes
|
||||
|
||||
LIB_DEPENDS= textproc/icu4c
|
||||
|
||||
pre-configure:
|
||||
${SUBST_CMD} ${WRKSRC}/setup.py
|
||||
|
||||
.include <bsd.port.mk>
|
2
textproc/py-ICU/distinfo
Normal file
2
textproc/py-ICU/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (PyICU-1.8.tar.gz) = vEmfyFjc6WBB7a7k80UIT8XyRcKjt5p1mglaKlAPZvg=
|
||||
SIZE (PyICU-1.8.tar.gz) = 160616
|
52
textproc/py-ICU/patches/patch-setup_py
Normal file
52
textproc/py-ICU/patches/patch-setup_py
Normal file
@ -0,0 +1,52 @@
|
||||
$OpenBSD: patch-setup_py,v 1.1.1.1 2014/07/03 11:17:06 ajacoutot Exp $
|
||||
--- setup.py.orig Thu Jul 3 10:09:32 2014
|
||||
+++ setup.py Thu Jul 3 10:11:14 2014
|
||||
@@ -13,6 +13,7 @@ INCLUDES = {
|
||||
'darwin': ['/usr/local/include'],
|
||||
'linux': [],
|
||||
'freebsd': ['/usr/local/include'],
|
||||
+ 'openbsd': ['${LOCALBASE}/include'],
|
||||
'win32': ['c:/icu/include'],
|
||||
'sunos5': [],
|
||||
}
|
||||
@@ -21,6 +22,7 @@ CFLAGS = {
|
||||
'darwin': ['-Wno-write-strings', '-DPYICU_VER="%s"' %(VERSION)],
|
||||
'linux': ['-DPYICU_VER="%s"' %(VERSION)],
|
||||
'freebsd': ['-DPYICU_VER="%s"' %(VERSION)],
|
||||
+ 'openbsd': ['-DPYICU_VER="%s"' %(VERSION)],
|
||||
'win32': ['/Zc:wchar_t', '/EHsc', '/DPYICU_VER=\\"%s\\"' %(VERSION)],
|
||||
'sunos5': ['-DPYICU_VER="%s"' %(VERSION)],
|
||||
}
|
||||
@@ -30,6 +32,7 @@ DEBUG_CFLAGS = {
|
||||
'darwin': ['-O0', '-g', '-DDEBUG'],
|
||||
'linux': ['-O0', '-g', '-DDEBUG'],
|
||||
'freebsd': ['-O0', '-g', '-DDEBUG'],
|
||||
+ 'openbsd': ['-O0', '-g', '-DDEBUG'],
|
||||
'win32': ['/Od', '/DDEBUG'],
|
||||
'sunos5': ['-DDEBUG'],
|
||||
}
|
||||
@@ -38,6 +41,7 @@ LFLAGS = {
|
||||
'darwin': ['-L/usr/local/lib'],
|
||||
'linux': [],
|
||||
'freebsd': ['-L/usr/local/lib'],
|
||||
+ 'openbsd': ['-L${LOCALBASE}/lib'],
|
||||
'win32': ['/LIBPATH:c:/icu/lib'],
|
||||
'sunos5': [],
|
||||
}
|
||||
@@ -46,6 +50,7 @@ LIBRARIES = {
|
||||
'darwin': ['icui18n', 'icuuc', 'icudata', 'icule'],
|
||||
'linux': ['icui18n', 'icuuc', 'icudata', 'icule'],
|
||||
'freebsd': ['icui18n', 'icuuc', 'icudata', 'icule'],
|
||||
+ 'openbsd': ['icui18n', 'icuuc', 'icudata', 'icule'],
|
||||
'win32': ['icuin', 'icuuc', 'icudt', 'icule'],
|
||||
'sunos5': ['icui18n', 'icuuc', 'icudata', 'icule'],
|
||||
}
|
||||
@@ -55,6 +60,8 @@ if platform.startswith('linux'):
|
||||
platform = 'linux'
|
||||
elif platform.startswith('freebsd'):
|
||||
platform = 'freebsd'
|
||||
+elif platform.startswith('openbsd'):
|
||||
+ platform = 'openbsd'
|
||||
|
||||
if 'PYICU_INCLUDES' in os.environ:
|
||||
_includes = os.environ['PYICU_INCLUDES'].split(os.pathsep)
|
2
textproc/py-ICU/pkg/DESCR
Normal file
2
textproc/py-ICU/pkg/DESCR
Normal file
@ -0,0 +1,2 @@
|
||||
PyICU is a Python extension wrapping IBM's International Components for
|
||||
Unicode C++ library (ICU).
|
13
textproc/py-ICU/pkg/PLIST
Normal file
13
textproc/py-ICU/pkg/PLIST
Normal file
@ -0,0 +1,13 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2014/07/03 11:17:06 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
|
||||
lib/python${MODPY_VERSION}/site-packages/PyICU-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
|
||||
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/PyICU.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/_icu.so
|
||||
lib/python${MODPY_VERSION}/site-packages/docs.py
|
||||
lib/python${MODPY_VERSION}/site-packages/docs.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/icu.py
|
||||
lib/python${MODPY_VERSION}/site-packages/icu.pyc
|
Loading…
Reference in New Issue
Block a user