Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/phply/
Date: Mon, 02 Jan 2023 20:56:54
Message-Id: 1672693001.fa06dfb1e3ae46661c962b5b681fd102ed0179b1.asturm@gentoo
1 commit: fa06dfb1e3ae46661c962b5b681fd102ed0179b1
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 2 18:36:22 2023 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 2 20:56:41 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa06dfb1
7
8 dev-python/phply: add 1.2.6
9
10 Closes: https://bugs.gentoo.org/888253
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 dev-python/phply/Manifest | 1 +
14 dev-python/phply/phply-1.2.6.ebuild | 33 +++++++++++++++++++++++++++++++++
15 2 files changed, 34 insertions(+)
16
17 diff --git a/dev-python/phply/Manifest b/dev-python/phply/Manifest
18 index d0382784c415..d8d6efae0c28 100644
19 --- a/dev-python/phply/Manifest
20 +++ b/dev-python/phply/Manifest
21 @@ -1 +1,2 @@
22 DIST phply-1.2.5.gh.tar.gz 35624 BLAKE2B 99fe9704cef570ad3055fa6c5aaaaed866d3c41c1479efbd29bb3224ae666d2ba13ccca61e6d67a8a0da4542dec79b5fdd201254e1ad638de81fa762049f4d13 SHA512 f0e4d0a6d2dfad5163fb68660602482b6de58c0dbd60d8db2f1df0622a9da3cc24e5fd309299a4a9ccf7abde081644a9a91fac8a2800520859199060f4080dc4
23 +DIST phply-1.2.6.gh.tar.gz 36068 BLAKE2B 766783e047b99330e5af829be875b9ee06fa70222a9c42a8792506ef0c6decc525ca90560f54d9833cdf4516fcd447f19a05d94d595a7e5056ca5d3d89bd1753 SHA512 3d7065971c6839dbe908efbfede1865183aebb0ffea1bb3b1a27c20239736894e52dc9b0a89ad6da152f1d9411dce288cf67a907d86c9838f0516236f0c19dd6
24
25 diff --git a/dev-python/phply/phply-1.2.6.ebuild b/dev-python/phply/phply-1.2.6.ebuild
26 new file mode 100644
27 index 000000000000..f16919e8474e
28 --- /dev/null
29 +++ b/dev-python/phply/phply-1.2.6.ebuild
30 @@ -0,0 +1,33 @@
31 +# Copyright 2022-2023 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +DISTUTILS_USE_PEP517=setuptools
37 +PYTHON_COMPAT=( python3_{8..11} )
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="Lexer and parser for PHP source implemented using PLY"
41 +HOMEPAGE="
42 + https://github.com/viraptor/phply/
43 + https://pypi.org/project/phply/"
44 +SRC_URI="
45 + https://github.com/viraptor/phply/archive/${PV}.tar.gz
46 + -> ${P}.gh.tar.gz"
47 +
48 +LICENSE="BSD"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~arm64 ~x86"
51 +
52 +RDEPEND="dev-python/ply[${PYTHON_USEDEP}]"
53 +BDEPEND="${RDEPEND}"
54 +
55 +distutils_enable_tests pytest
56 +
57 +src_prepare() {
58 + # namespace? seriously?
59 + sed -i -e '/namespace_packages/d' setup.py || die
60 + # prevent installing tests, turn phply back into normal package
61 + mv tests/__init__.py phply/ || die
62 + distutils-r1_src_prepare
63 +}