diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/pyparsing | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/pyparsing')
-rw-r--r-- | dev-python/pyparsing/Manifest | 4 | ||||
-rw-r--r-- | dev-python/pyparsing/files/pyparsing-2.2.0-distutils.patch | 17 | ||||
-rw-r--r-- | dev-python/pyparsing/metadata.xml | 19 | ||||
-rw-r--r-- | dev-python/pyparsing/pyparsing-2.2.0.ebuild | 47 |
4 files changed, 87 insertions, 0 deletions
diff --git a/dev-python/pyparsing/Manifest b/dev-python/pyparsing/Manifest new file mode 100644 index 000000000000..b93a6f7abc14 --- /dev/null +++ b/dev-python/pyparsing/Manifest @@ -0,0 +1,4 @@ +AUX pyparsing-2.2.0-distutils.patch 496 BLAKE2B 7bd4f362839ed9fa61eebbad786c9b373b8a6f7c762e6b63a44ab4ec7295a7925a15bb66a003259d3c608b763445680b9466a0bfc88818cc2c78d232829f897e SHA512 0fa30bfa6fbf08b4723e80d4f688daea62589c1aaf6ced8bbe56c1edfb438882a7b0e68969b69e5d2da59b0bbd5f2eba051423b011c1bb01c1d74e2254e66090 +DIST pyparsing-2.2.0.tar.gz 1232522 BLAKE2B 59420548fcee047e2b385d76b8ce034807eb3ac0fcdc9929f656cf4b81436c96c37d206b5d6b90ee6892e402df6b939fe9e793384d4cbe0618c8d06d5197586d SHA512 6a409f429d40a5ac202d144e4150de2c80d7c7120147f603f72a4a99797d48c50822a6437f590ec5ae4418d51aa1f6b1d4e5d95a57e19bec0a127b04e4937008 +EBUILD pyparsing-2.2.0.ebuild 1325 BLAKE2B 78b2227cb0058a28f31789e5854a798e00a8e393a3f340dd6224e4a7af7c23ba6e05fe7e1185c5c48d7f2ed2a6dba64af0368129d47fceab4e27b9dd412e1aa8 SHA512 ddec8897ba52241562378210aec8ca5f4671cb12a818616e0ccc2ba6d113e094855a6d1a326baa1db5359cd933e43dab6c447227ca2dd77e275dc125b7d69396 +MISC metadata.xml 737 BLAKE2B 4b4199e79bc2e92c175ce249cc395d2324cdc3a3df25bb36db5884b79057ec04c63b2cef7ef27e9f656a58e0fd5aa162b8eebe076f6e673b227659a3e013df08 SHA512 2cab4251c3444c6479b4d5ff92221399e01ea5e4a6af96631ccf81cdce5f3f9cc2ab06993c9636f36469acb5b28660c41e594d0d7315c6cd9b5dbaec0deda7cf 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 000000000000..6fa4a30d92ad --- /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/metadata.xml b/dev-python/pyparsing/metadata.xml new file mode 100644 index 000000000000..9a57fea5295c --- /dev/null +++ b/dev-python/pyparsing/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <longdescription lang="en"> + The pyparsing module is an alternative approach to creating and + executing simple grammars, vs. the traditional lex/yacc approach, or the + use of regular expressions. The pyparsing module provides a library of + classes that client code uses to construct the grammar directly in + Python code. + </longdescription> + <upstream> + <remote-id type="sourceforge">pyparsing</remote-id> + <remote-id type="pypi">pyparsing</remote-id> + </upstream> +</pkgmetadata> 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 000000000000..02856e79e946 --- /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.org/project/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 +} |