From a15e2a42c48b616e335d489bb511604ca7af546d Mon Sep 17 00:00:00 2001 From: Horea Christian Date: Wed, 4 Dec 2019 05:22:51 +0100 Subject: [PATCH] dev-python/pyparsing: version bump 2.4.5 ahead of Gentoo Main Package-Manager: Portage-2.3.78, Repoman-2.3.17 Signed-off-by: Horea Christian --- dev-python/pyparsing/ChangeLog | 4 +++ dev-python/pyparsing/Manifest | 1 + dev-python/pyparsing/metadata.xml | 19 +++++++++++ dev-python/pyparsing/pyparsing-2.4.5.ebuild | 38 +++++++++++++++++++++ 4 files changed, 62 insertions(+) create mode 100644 dev-python/pyparsing/ChangeLog create mode 100644 dev-python/pyparsing/Manifest create mode 100644 dev-python/pyparsing/metadata.xml create mode 100644 dev-python/pyparsing/pyparsing-2.4.5.ebuild diff --git a/dev-python/pyparsing/ChangeLog b/dev-python/pyparsing/ChangeLog new file mode 100644 index 0000000..1ec5dc6 --- /dev/null +++ b/dev-python/pyparsing/ChangeLog @@ -0,0 +1,4 @@ +*pyparsing-2.4.5 (04 Dec 2019) + + 04 Dec 2019; +metadata.xml, +pyparsing-2.4.5.ebuild: + dev-python/pyparsing: version bump 2.4.5 ahead of Gentoo Main diff --git a/dev-python/pyparsing/Manifest b/dev-python/pyparsing/Manifest new file mode 100644 index 0000000..97018b5 --- /dev/null +++ b/dev-python/pyparsing/Manifest @@ -0,0 +1 @@ +DIST pyparsing_2.4.5.tar.gz 645229 SHA256 8c74536281303ef5e1a5be06874d979171cc72b1eee0129f05bebd453383e5ee SHA512 156cfdd28b4eadd5a29abfec8818fe4d038b220cf27aaa9d499f68ec87867c9048dfa79fd6efd85e940d47a7e7fcb21b93d527be05d27a5b58e2900fffb6b132 WHIRLPOOL 3c4b7a33f3029999dcd8a9a378c20c8e07c6d95a59be1e4dbec3adad732726dfe82608a258e5a29e1b71d0a7e402969ac8217b08a672d273aec496fe88980e6d diff --git a/dev-python/pyparsing/metadata.xml b/dev-python/pyparsing/metadata.xml new file mode 100644 index 0000000..9a57fea --- /dev/null +++ b/dev-python/pyparsing/metadata.xml @@ -0,0 +1,19 @@ + + + + + python@gentoo.org + Python + + + 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. + + + pyparsing + pyparsing + + diff --git a/dev-python/pyparsing/pyparsing-2.4.5.ebuild b/dev-python/pyparsing/pyparsing-2.4.5.ebuild new file mode 100644 index 0000000..d5e6f6a --- /dev/null +++ b/dev-python/pyparsing/pyparsing-2.4.5.ebuild @@ -0,0 +1,38 @@ +# Copyright 2004-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy pypy3 ) + +inherit distutils-r1 + +MY_P=${P/-/_} +DESCRIPTION="Easy-to-use Python module for text parsing" +HOMEPAGE="https://github.com/pyparsing/pyparsing https://pypi.org/project/pyparsing/" +SRC_URI="https://github.com/${PN}/${PN}/archive/${MY_P}.tar.gz" +# pypi releases and generated github tarballs lack tests +#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-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="examples" + +# setuptools currently vendors its own copy of pyparsing to avoid bootstrapping +# issues so depend on it here for consistency +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +RDEPEND="" + +S=${WORKDIR}/${PN}-${MY_P} + +python_test() { + esetup.py test +} + +python_install_all() { + if use examples; then + docompress -x /usr/share/doc/${PF}/examples + dodoc -r examples + fi + distutils-r1_python_install_all +}