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:
parent
f71d3beb84
commit
88e77036b0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=340448
@ -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>
|
||||
|
@ -1,4 +0,0 @@
|
||||
%%PYTHON_SITELIBDIR%%/iconv.so
|
||||
%%PYTHON_SITELIBDIR%%/iconvcodec.py
|
||||
%%PYTHON_SITELIBDIR%%/iconvcodec.pyc
|
||||
%%PYTHON_SITELIBDIR%%/iconvcodec.pyo
|
Loading…
Reference in New Issue
Block a user