svn commit: r492366 - head/devel/py-configparser
Antoine Brodin
antoine at FreeBSD.org
Thu Feb 7 13:29:00 UTC 2019
Author: antoine
Date: Thu Feb 7 13:28:59 2019
New Revision: 492366
URL: https://svnweb.freebsd.org/changeset/ports/492366
Log:
Unbreak at build time with python 3.x and at runtime
Reported by: pkg-fallout
Modified:
head/devel/py-configparser/Makefile
Modified: head/devel/py-configparser/Makefile
==============================================================================
--- head/devel/py-configparser/Makefile Thu Feb 7 13:23:51 2019 (r492365)
+++ head/devel/py-configparser/Makefile Thu Feb 7 13:28:59 2019 (r492366)
@@ -2,6 +2,7 @@
PORTNAME= configparser
PORTVERSION= 3.5.3
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
@@ -12,9 +13,22 @@ COMMENT= INI style configuration file parser
LICENSE= MIT
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}backports>=0:devel/py-backports@${PY_FLAVOR}
+
USES= python
+USE_LOCALE= en_US.UTF-8
USE_PYTHON= distutils autoplist
NO_ARCH= yes
+
+POST_PLIST= trim-backports-namespace
+
+post-install:
+ @${RM} ${STAGEDIR}${PYTHON_SITELIBDIR}/backports/__init__.py*
+ @${RM} -r ${STAGEDIR}${PYTHON_SITELIBDIR}/backports/__pycache__
+
+trim-backports-namespace:
+ @${REINPLACE_CMD} '/backports\/__init__.py*/d' ${TMPPLIST}
+ @${REINPLACE_CMD} '/backports\/__pycache__*/d' ${TMPPLIST}
.include <bsd.port.mk>
More information about the svn-ports-head
mailing list