commit: e514bd025d11dbb638b03f8bee38efbd1cb91219 Author: Tim Harder <radhermit <AT> gentoo <DOT> org> AuthorDate: Wed Apr 26 08:25:27 2017 +0000 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> CommitDate: Wed Apr 26 08:41:41 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e514bd02
dev-python/pyparsing: version bump to 2.2.0 dev-python/pyparsing/Manifest | 1 + .../files/pyparsing-2.2.0-distutils.patch | 17 ++++++++ dev-python/pyparsing/pyparsing-2.2.0.ebuild | 47 ++++++++++++++++++++++ 3 files changed, 65 insertions(+) diff --git a/dev-python/pyparsing/Manifest b/dev-python/pyparsing/Manifest index c09acd77d41..b539ce2c259 100644 --- a/dev-python/pyparsing/Manifest +++ b/dev-python/pyparsing/Manifest @@ -2,3 +2,4 @@ DIST pyparsing-1.5.6.tar.gz 1418892 SHA256 5c84aa4500e82d5aa2c0842d5628c5da985e6 DIST pyparsing-2.0.3.tar.gz 1462653 SHA256 06e729e1cbf5274703b1f47b6135ed8335999d547f9d8cf048b210fb8ebf844f SHA512 9771851f4b0191c7d3f8d2a2a6d2a9198b173120d3f133d08284b71e792fc59a906d571edea8f44ba04ab00c1d906e1974d1e8a2d6155d492de1358ba99c575a WHIRLPOOL 42b9c7aa0b8d4d91436a01a60cbca64a9c8f7798b7aeb60bd2c4af085f9e13167a5ac5132d55bd890b4890c00428e908dfae32ed78ec153c868ee02ed3cdaa3f DIST pyparsing-2.1.10.tar.gz 1230829 SHA256 811c3e7b0031021137fc83e051795025fcb98674d07eb8fe922ba4de53d39188 SHA512 21af73d6f479d52746f269c8fbaf90c1107a8aec756d30af8c7c4e6a2ff0ea9659cc07816b7ea19286bc12d43497f5e8e63351453bf18daf6a1cb380a195532e WHIRLPOOL 1ffbad12d00b99a260cd77c61503aa1800f97028be7c40e67f582c1b497ed1872e51d33887e278cd5203ec379d27886edd9455d1d8f7bef9d1b2d7df38185cc4 DIST pyparsing-2.1.8.tar.gz 1222883 SHA256 03a4869b9f3493807ee1f1cb405e6d576a1a2ca4d81a982677c0c1ad6177c56b SHA512 0fb98d3704f9725926b20d72f770a6188a1be6f9856c371afd25d496519b794ba0026e4f9dbeeed6e5188edb99134d8909b595fca5536b1914c5e5832ebabdb2 WHIRLPOOL aba4e55c0312342a9d8525bdecea70bf322b52a52097b25c1ea412e4270145945b05dd72cbe0b5252447d75be2e0a2afdc5a99e3864845c5bface6ae3c9cd743 +DIST pyparsing-2.2.0.tar.gz 1232522 SHA256 0832bcf47acd283788593e7a0f542407bd9550a55a8a8435214a1960e04bcb04 SHA512 6a409f429d40a5ac202d144e4150de2c80d7c7120147f603f72a4a99797d48c50822a6437f590ec5ae4418d51aa1f6b1d4e5d95a57e19bec0a127b04e4937008 WHIRLPOOL dde3e3ec016671f76976f4b585a027070b3087b46a336363c994dc3e97ad699b5551dc439b8f52230ca48bdd6a50d3ac3576440dcac4802e29e6f9ca4494f2d9 diff --git a/dev-python/pyparsing/files/pyparsing-2.2.0-distutils.patch b/dev-python/pyparsing/files/pyparsing-2.2.0-distutils.patch new file mode 100644 index 00000000000..6fa4a30d92a --- /dev/null +++ b/dev-python/pyparsing/files/pyparsing-2.2.0-distutils.patch @@ -0,0 +1,17 @@ +Force distutils to be used instead of falling back to it after trying +setuptools in order to avoid bootstrap issues. + +--- pyparsing-2.2.0/setup.py ++++ pyparsing-2.2.0/setup.py +@@ -4,10 +4,7 @@ + + # Setuptools depends on pyparsing (via packaging) as of version 34, so allow + # installing without it to avoid bootstrap problems. +-try: +- from setuptools import setup +-except ImportError: +- from distutils.core import setup ++from distutils.core import setup + + import sys + import os diff --git a/dev-python/pyparsing/pyparsing-2.2.0.ebuild b/dev-python/pyparsing/pyparsing-2.2.0.ebuild new file mode 100644 index 00000000000..2c2dede1b98 --- /dev/null +++ b/dev-python/pyparsing/pyparsing-2.2.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Easy-to-use Python module for text parsing" +HOMEPAGE="http://pyparsing.wikispaces.com/ https://pypi.python.org/pypi/pyparsing" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="doc examples" + +# not contained in the tarball +RESTRICT=test + +PATCHES=( "${FILESDIR}"/${P}-distutils.patch ) + +python_install_all() { + local HTML_DOCS=( HowToUsePyparsing.html ) + if use doc; then + HTML_DOCS+=( htmldoc/. ) + dodoc docs/*.pdf + fi + use examples && dodoc -r examples + distutils-r1_python_install_all +} + +python_test() { + ${PYTHON} unitTests.py || die +} + +pkg_preinst() { + _remove_egg_info() { + local pyver="$("${PYTHON}" -c 'import sys; print(sys.version[:3])')" + local egginfo="${ROOT%/}$(python_get_sitedir)/${P}-py${pyver}.egg-info" + if [[ -d ${egginfo} ]]; then + einfo "Removing ${egginfo}" + rm -r "${egginfo}" || die + fi + } + python_foreach_impl _remove_egg_info +}