svn commit: r478383 - head/devel/py-backports.weakref

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Wed Aug 29 19:09:17 UTC 2018


Author: sunpoet
Date: Wed Aug 29 19:09:14 2018
New Revision: 478383
URL: https://svnweb.freebsd.org/changeset/ports/478383

Log:
  Fix backports namespace collision
  
  - Bump PORTREVISION for dependency and package change
  
  See r455585 and D11095 for further information.

Modified:
  head/devel/py-backports.weakref/Makefile

Modified: head/devel/py-backports.weakref/Makefile
==============================================================================
--- head/devel/py-backports.weakref/Makefile	Wed Aug 29 19:09:09 2018	(r478382)
+++ head/devel/py-backports.weakref/Makefile	Wed Aug 29 19:09:14 2018	(r478383)
@@ -4,6 +4,7 @@
 PORTNAME=	backports.weakref
 DISTVERSION=	1.0
 DISTVERSIONSUFFIX=	.post1
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -15,9 +16,18 @@ LICENSE=	PSFL
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 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=	autoplist distutils
+
+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-head mailing list