Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jan 2014 18:53:03 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r340448 - head/converters/py-iconv
Message-ID:  <201401201853.s0KIr3rX019985@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Mon Jan 20 18:53:03 2014
New Revision: 340448
URL: http://svnweb.freebsd.org/changeset/ports/340448
QAT: https://qat.redports.org/buildarchive/r340448/

Log:
  - Stage support
  - Use PYDISTUTILS_AUTOPLIST

Deleted:
  head/converters/py-iconv/pkg-plist
Modified:
  head/converters/py-iconv/Makefile

Modified: head/converters/py-iconv/Makefile
==============================================================================
--- head/converters/py-iconv/Makefile	Mon Jan 20 18:40:57 2014	(r340447)
+++ head/converters/py-iconv/Makefile	Mon Jan 20 18:53:03 2014	(r340448)
@@ -16,7 +16,7 @@ COMMENT=	Iconv wrapper with Unicode code
 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_
 		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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401201853.s0KIr3rX019985>