Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Aug 2018 19:09:09 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r478382 - head/devel/py-backports.tempfile
Message-ID:  <201808291909.w7TJ99YO066624@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



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