From owner-svn-ports-head@freebsd.org Thu Feb 7 13:29:00 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5DD4814DA5B6; Thu, 7 Feb 2019 13:29:00 +0000 (UTC) (envelope-from antoine@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F3B44900C5; Thu, 7 Feb 2019 13:28:59 +0000 (UTC) (envelope-from antoine@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E23A9B2D; Thu, 7 Feb 2019 13:28:59 +0000 (UTC) (envelope-from antoine@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x17DSxDH024537; Thu, 7 Feb 2019 13:28:59 GMT (envelope-from antoine@FreeBSD.org) Received: (from antoine@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x17DSxIW024536; Thu, 7 Feb 2019 13:28:59 GMT (envelope-from antoine@FreeBSD.org) Message-Id: <201902071328.x17DSxIW024536@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: antoine set sender to antoine@FreeBSD.org using -f From: Antoine Brodin Date: Thu, 7 Feb 2019 13:28:59 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r492366 - head/devel/py-configparser X-SVN-Group: ports-head X-SVN-Commit-Author: antoine X-SVN-Commit-Paths: head/devel/py-configparser X-SVN-Commit-Revision: 492366 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: F3B44900C5 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.94 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.94)[-0.940,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-0.999,0] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Feb 2019 13:29:00 -0000 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