aboutsummaryrefslogtreecommitdiffstats
path: root/converters
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-01-21 02:53:03 +0800
committerantoine <antoine@FreeBSD.org>2014-01-21 02:53:03 +0800
commit9e97e9a683a3d566d8d596d1236f1660af892c6a (patch)
tree583628e193c00d6025305da406b1b42ebf8e2f5d /converters
parentcd2bc2c71a6ddefd8d598343e8701dd45b97da50 (diff)
downloadfreebsd-ports-gnome-9e97e9a683a3d566d8d596d1236f1660af892c6a.tar.gz
freebsd-ports-gnome-9e97e9a683a3d566d8d596d1236f1660af892c6a.tar.zst
freebsd-ports-gnome-9e97e9a683a3d566d8d596d1236f1660af892c6a.zip
- Stage support
- Use PYDISTUTILS_AUTOPLIST
Diffstat (limited to 'converters')
-rw-r--r--converters/py-iconv/Makefile7
-rw-r--r--converters/py-iconv/pkg-plist4
2 files changed, 3 insertions, 8 deletions
diff --git a/converters/py-iconv/Makefile b/converters/py-iconv/Makefile
index 8f42afbbb617..af77107991e7 100644
--- a/converters/py-iconv/Makefile
+++ b/converters/py-iconv/Makefile
@@ -16,7 +16,7 @@ COMMENT= Iconv wrapper with Unicode codec for Python
USES= iconv
USE_PYTHON= yes
USE_PYDISTUTILS= yes
-PLIST_SUB= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S|^${LOCALBASE}/||g}
+PYDISTUTILS_AUTOPLIST= yes
.if empty(ICONV_LIB)
SETUPINFO= ,library_dirs=["${LOCALBASE}/lib"],\
@@ -26,9 +26,8 @@ SETUPINFO= ,libraries=["iconv"],library_dirs=["${LOCALBASE}/lib"],\
include_dirs=["${LOCALBASE}/include"]
.endif
-NO_STAGE= yes
post-patch:
- cd ${WRKSRC} && ${SED} 's!^\(.*ext_mod.*\)\()]\)$$!\1${SETUPINFO}\2!g'\
- setup.py > setup.py.tmp && ${CAT} setup.py.tmp > setup.py
+ ${REINPLACE_CMD} 's!^\(.*ext_mod.*\)\()]\)$$!\1${SETUPINFO}\2!g'\
+ ${WRKSRC}/setup.py
.include <bsd.port.mk>
diff --git a/converters/py-iconv/pkg-plist b/converters/py-iconv/pkg-plist
deleted file mode 100644
index ba396cd5b883..000000000000
--- a/converters/py-iconv/pkg-plist
+++ /dev/null
@@ -1,4 +0,0 @@
-%%PYTHON_SITELIBDIR%%/iconv.so
-%%PYTHON_SITELIBDIR%%/iconvcodec.py
-%%PYTHON_SITELIBDIR%%/iconvcodec.pyc
-%%PYTHON_SITELIBDIR%%/iconvcodec.pyo