From owner-svn-ports-all@freebsd.org Tue Nov 10 15:28:16 2015 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9DA3AA2AE96; Tue, 10 Nov 2015 15:28:16 +0000 (UTC) (envelope-from wg@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 mx1.freebsd.org (Postfix) with ESMTPS id 51B941536; Tue, 10 Nov 2015 15:28:16 +0000 (UTC) (envelope-from wg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tAAFSF5H077440; Tue, 10 Nov 2015 15:28:15 GMT (envelope-from wg@FreeBSD.org) Received: (from wg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tAAFSFxj077438; Tue, 10 Nov 2015 15:28:15 GMT (envelope-from wg@FreeBSD.org) Message-Id: <201511101528.tAAFSFxj077438@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: wg set sender to wg@FreeBSD.org using -f From: William Grzybowski Date: Tue, 10 Nov 2015 15:28:15 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r401195 - in head/devel/py-columnize: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Nov 2015 15:28:16 -0000 Author: wg Date: Tue Nov 10 15:28:15 2015 New Revision: 401195 URL: https://svnweb.freebsd.org/changeset/ports/401195 Log: devel/py-columnize? add python 3 support Approved by: maintainer (via email) Added: head/devel/py-columnize/files/ head/devel/py-columnize/files/extra-patch-____pkginfo____.py (contents, props changed) Modified: head/devel/py-columnize/Makefile Modified: head/devel/py-columnize/Makefile ============================================================================== --- head/devel/py-columnize/Makefile Tue Nov 10 15:26:28 2015 (r401194) +++ head/devel/py-columnize/Makefile Tue Nov 10 15:28:15 2015 (r401195) @@ -12,7 +12,6 @@ COMMENT= Format a simple (i.e. not neste LICENSE= MIT MY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>=1.0:${PORTSDIR}/devel/py-nose -MY_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}backports.shutil_get_terminal_size=1.0:${PORTSDIR}/devel/py-backports.shutil_get_terminal_size BUILD_DEPENDS= ${MY_DEPENDS} RUN_DEPENDS= ${MY_DEPENDS} @@ -20,4 +19,12 @@ RUN_DEPENDS= ${MY_DEPENDS} USES= python USE_PYTHON= autoplist distutils -.include +.include + +.if ${PYTHON_MAJOR_VER} == "3" +EXTRA_PATCHES= ${FILESDIR}/extra-patch-____pkginfo____.py +.else +MY_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}backports.shutil_get_terminal_size=1.0:${PORTSDIR}/devel/py-backports.shutil_get_terminal_size +.endif + +.include Added: head/devel/py-columnize/files/extra-patch-____pkginfo____.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-columnize/files/extra-patch-____pkginfo____.py Tue Nov 10 15:28:15 2015 (r401195) @@ -0,0 +1,11 @@ +--- __pkginfo__.py.orig 2015-10-27 08:06:17 UTC ++++ __pkginfo__.py +@@ -28,7 +28,7 @@ web = 'https://github.com/rocky/pycolumn + zip_safe = False + + def read(*rnames): +- return open(os.path.join(os.path.dirname(__file__), *rnames)).read() ++ return open(os.path.join(os.path.dirname(__file__), *rnames), encoding='utf8').read() + + readme = 'README.txt' + if os.path.exists('README.rst'): readme = 'README.rst'