svn commit: r478382 - head/devel/py-backports.tempfile
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Wed Aug 29 19:09:11 UTC 2018
Author: sunpoet
Date: Wed Aug 29 19:09:09 2018
New Revision: 478382
URL: https://svnweb.freebsd.org/changeset/ports/478382
Log:
Fix backports namespace collision
- Bump PORTREVISION for dependency and package change
See r455585 and D11095 for further information.
With hat: python
Modified:
head/devel/py-backports.tempfile/Makefile
Modified: head/devel/py-backports.tempfile/Makefile
==============================================================================
--- head/devel/py-backports.tempfile/Makefile Wed Aug 29 19:09:04 2018 (r478381)
+++ head/devel/py-backports.tempfile/Makefile Wed Aug 29 19:09:09 2018 (r478382)
@@ -3,6 +3,7 @@
PORTNAME= backports.tempfile
PORTVERSION= 1.0
+PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -13,9 +14,18 @@ COMMENT= Backports of new features in the Python tempf
LICENSE= PSFL
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}backports>0:devel/py-backports@${FLAVOR}
NO_ARCH= yes
USES= python:2.7
USE_PYTHON= distutils autoplist
+
+POST_PLIST= trim-backports-namespace
+
+post-install:
+ @${RM} ${STAGEDIR}${PYTHON_SITELIBDIR}/backports/__init__.py*
+
+trim-backports-namespace:
+ @${REINPLACE_CMD} '/backports\/__init__.py*/d' ${TMPPLIST}
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list