1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Stage support

- Use PYDISTUTILS_AUTOPLIST
This commit is contained in:
Antoine Brodin 2014-01-20 18:53:03 +00:00
parent f71d3beb84
commit 88e77036b0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=340448
2 changed files with 3 additions and 8 deletions

View File

@ -16,7 +16,7 @@ COMMENT= Iconv wrapper with Unicode codec for Python
USES= iconv USES= iconv
USE_PYTHON= yes USE_PYTHON= yes
USE_PYDISTUTILS= yes USE_PYDISTUTILS= yes
PLIST_SUB= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S|^${LOCALBASE}/||g} PYDISTUTILS_AUTOPLIST= yes
.if empty(ICONV_LIB) .if empty(ICONV_LIB)
SETUPINFO= ,library_dirs=["${LOCALBASE}/lib"],\ SETUPINFO= ,library_dirs=["${LOCALBASE}/lib"],\
@ -26,9 +26,8 @@ SETUPINFO= ,libraries=["iconv"],library_dirs=["${LOCALBASE}/lib"],\
include_dirs=["${LOCALBASE}/include"] include_dirs=["${LOCALBASE}/include"]
.endif .endif
NO_STAGE= yes
post-patch: post-patch:
cd ${WRKSRC} && ${SED} 's!^\(.*ext_mod.*\)\()]\)$$!\1${SETUPINFO}\2!g'\ ${REINPLACE_CMD} 's!^\(.*ext_mod.*\)\()]\)$$!\1${SETUPINFO}\2!g'\
setup.py > setup.py.tmp && ${CAT} setup.py.tmp > setup.py ${WRKSRC}/setup.py
.include <bsd.port.mk> .include <bsd.port.mk>

View File

@ -1,4 +0,0 @@
%%PYTHON_SITELIBDIR%%/iconv.so
%%PYTHON_SITELIBDIR%%/iconvcodec.py
%%PYTHON_SITELIBDIR%%/iconvcodec.pyc
%%PYTHON_SITELIBDIR%%/iconvcodec.pyo