From owner-svn-ports-head@freebsd.org Sun Dec 24 11:15:03 2017 Return-Path: Delivered-To: svn-ports-head@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 8F652E86B28; Sun, 24 Dec 2017 11:15:03 +0000 (UTC) (envelope-from sunpoet@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 4B50374807; Sun, 24 Dec 2017 11:15:03 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vBOBF2s6034189; Sun, 24 Dec 2017 11:15:02 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vBOBF2ch034187; Sun, 24 Dec 2017 11:15:02 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201712241115.vBOBF2ch034187@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Sun, 24 Dec 2017 11:15:02 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r457144 - in head/textproc/py-genshi: . files X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: in head/textproc/py-genshi: . files X-SVN-Commit-Revision: 457144 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 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: Sun, 24 Dec 2017 11:15:03 -0000 Author: sunpoet Date: Sun Dec 24 11:15:01 2017 New Revision: 457144 URL: https://svnweb.freebsd.org/changeset/ports/457144 Log: Fix Python 3 build - While I'm here, convert to options dependency helper This port is ready for Python 3. The only failure for FreeBSD (autoplist) is the missing _speedups.so. Upstream disabled the speedups C extension on Python 3.3+ which fixes the problem. Obtained from: https://github.com/edgewall/genshi/commit/cef2c8df44166195e1705638f9f17033a4943bb7 With hat: python Added: head/textproc/py-genshi/files/ head/textproc/py-genshi/files/patch-setup.py (contents, props changed) Modified: head/textproc/py-genshi/Makefile Modified: head/textproc/py-genshi/Makefile ============================================================================== --- head/textproc/py-genshi/Makefile Sun Dec 24 11:14:56 2017 (r457143) +++ head/textproc/py-genshi/Makefile Sun Dec 24 11:15:01 2017 (r457144) @@ -17,13 +17,9 @@ LICENSE= BSD3CLAUSE OPTIONS_DEFINE= BABEL BABEL_DESC= I18n support through the Babel plugin -USES= python:2.7 +USES= python USE_PYTHON= distutils autoplist -.include - -.if ${PORT_OPTIONS:MBABEL} -RUN_DEPENDS+= ${PKGNAMEPREFIX}Babel>=0.9.6:devel/py-babel@${FLAVOR} -.endif +BABEL_RUN_DEPENDS= ${PKGNAMEPREFIX}Babel>=0.9.6:devel/py-babel@${FLAVOR} .include Added: head/textproc/py-genshi/files/patch-setup.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/py-genshi/files/patch-setup.py Sun Dec 24 11:15:01 2017 (r457144) @@ -0,0 +1,17 @@ +--- setup.py.orig 2013-01-27 15:48:03 UTC ++++ setup.py +@@ -65,9 +65,13 @@ available.""") + + + if Feature: ++ # Optional C extension module for speeding up Genshi: ++ # Not activated by default on: ++ # - PyPy (where it harms performance) ++ # - CPython >= 3.3 (the new Unicode C API is not supported yet) + speedups = Feature( + "optional C speed-enhancements", +- standard = not is_pypy, ++ standard = not is_pypy and sys.version_info < (3, 3), + ext_modules = [ + Extension('genshi._speedups', ['genshi/_speedups.c']), + ],