Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-python/pyparsing/
Date: Tue, 08 Feb 2022 14:07:53
Message-Id: 1644329253.7f5db31ee9ef324e9b13d05cc14c90ce8eeda040.andrewammerlaan@gentoo
1 commit: 7f5db31ee9ef324e9b13d05cc14c90ce8eeda040
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 8 14:06:43 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 8 14:07:33 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=7f5db31e
7
8 dev-python/pyparsing: add pyparsing-2
9
10 dep of fsleyes, cleaned from ::gentoo
11
12 Package-Manager: Portage-3.0.30, Repoman-3.0.3
13 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
14
15 dev-python/pyparsing/metadata.xml | 21 +++++++++++++++++++
16 dev-python/pyparsing/pyparsing-2.4.7-r1.ebuild | 29 ++++++++++++++++++++++++++
17 2 files changed, 50 insertions(+)
18
19 diff --git a/dev-python/pyparsing/metadata.xml b/dev-python/pyparsing/metadata.xml
20 new file mode 100644
21 index 000000000..2692e21d7
22 --- /dev/null
23 +++ b/dev-python/pyparsing/metadata.xml
24 @@ -0,0 +1,21 @@
25 +<?xml version="1.0" encoding="UTF-8"?>
26 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
27 +<pkgmetadata>
28 + <maintainer type="project">
29 + <email>sci@g.o</email>
30 + <name>Science Project</name>
31 + </maintainer>
32 + <longdescription lang="en">
33 + The pyparsing module is an alternative approach to creating and
34 + executing simple grammars, vs. the traditional lex/yacc approach, or the
35 + use of regular expressions. The pyparsing module provides a library of
36 + classes that client code uses to construct the grammar directly in
37 + Python code.
38 + </longdescription>
39 + <stabilize-allarches/>
40 + <upstream>
41 + <remote-id type="sourceforge">pyparsing</remote-id>
42 + <remote-id type="pypi">pyparsing</remote-id>
43 + <remote-id type="github">pyparsing/pyparsing</remote-id>
44 + </upstream>
45 +</pkgmetadata>
46
47 diff --git a/dev-python/pyparsing/pyparsing-2.4.7-r1.ebuild b/dev-python/pyparsing/pyparsing-2.4.7-r1.ebuild
48 new file mode 100644
49 index 000000000..55da214a2
50 --- /dev/null
51 +++ b/dev-python/pyparsing/pyparsing-2.4.7-r1.ebuild
52 @@ -0,0 +1,29 @@
53 +# Copyright 2004-2022 Gentoo Authors
54 +# Distributed under the terms of the GNU General Public License v2
55 +
56 +# please keep this ebuild at EAPI 7 -- sys-apps/portage dep
57 +EAPI=7
58 +
59 +PYTHON_COMPAT=( python3_{7..10} pypy3 )
60 +inherit distutils-r1
61 +
62 +MY_P=${P/-/_}
63 +DESCRIPTION="Easy-to-use Python module for text parsing"
64 +HOMEPAGE="https://github.com/pyparsing/pyparsing https://pypi.org/project/pyparsing/"
65 +SRC_URI="https://github.com/${PN}/${PN}/archive/${MY_P}.tar.gz"
66 +S=${WORKDIR}/${PN}-${MY_P}
67 +
68 +LICENSE="MIT"
69 +SLOT="0"
70 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
71 +IUSE="examples"
72 +
73 +distutils_enable_tests setup.py
74 +
75 +python_install_all() {
76 + if use examples; then
77 + docompress -x /usr/share/doc/${PF}/examples
78 + dodoc -r examples
79 + fi
80 + distutils-r1_python_install_all
81 +}