Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Feb 2019 13:28:59 +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: r492366 - head/devel/py-configparser
Message-ID:  <201902071328.x17DSxIW024536@repo.freebsd.org>

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



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