Date: Tue, 10 Nov 2015 15:28:15 +0000 (UTC) From: William Grzybowski <wg@FreeBSD.org> 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 Message-ID: <201511101528.tAAFSFxj077438@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <bsd.port.mk> +.include <bsd.port.pre.mk> + +.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 <bsd.port.post.mk> 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'
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511101528.tAAFSFxj077438>