diff options
Diffstat (limited to 'dev-python/phply')
-rw-r--r-- | dev-python/phply/Manifest | 2 | ||||
-rw-r--r-- | dev-python/phply/phply-1.2.6.ebuild | 33 |
2 files changed, 35 insertions, 0 deletions
diff --git a/dev-python/phply/Manifest b/dev-python/phply/Manifest index c0a9127d019d..60864608de09 100644 --- a/dev-python/phply/Manifest +++ b/dev-python/phply/Manifest @@ -1,3 +1,5 @@ DIST phply-1.2.5.gh.tar.gz 35624 BLAKE2B 99fe9704cef570ad3055fa6c5aaaaed866d3c41c1479efbd29bb3224ae666d2ba13ccca61e6d67a8a0da4542dec79b5fdd201254e1ad638de81fa762049f4d13 SHA512 f0e4d0a6d2dfad5163fb68660602482b6de58c0dbd60d8db2f1df0622a9da3cc24e5fd309299a4a9ccf7abde081644a9a91fac8a2800520859199060f4080dc4 +DIST phply-1.2.6.gh.tar.gz 36068 BLAKE2B 766783e047b99330e5af829be875b9ee06fa70222a9c42a8792506ef0c6decc525ca90560f54d9833cdf4516fcd447f19a05d94d595a7e5056ca5d3d89bd1753 SHA512 3d7065971c6839dbe908efbfede1865183aebb0ffea1bb3b1a27c20239736894e52dc9b0a89ad6da152f1d9411dce288cf67a907d86c9838f0516236f0c19dd6 EBUILD phply-1.2.5.ebuild 767 BLAKE2B b63e846fc81683356c9c27a379a5ec6dbeae5ea33ebb8682fffa18d5ebf18208eb0863203147853e54ffe32ad1ef0e1be60ad6d04eddd334871c16621cbf646c SHA512 92560d06ca34fcf0c1409ec31b533c78cd0f80e46ca3daa5181907219f0f3961299ab55f2c17d091bdef491bc48da042caa4353e9ecfe9f00e7da998cb6979e2 +EBUILD phply-1.2.6.ebuild 809 BLAKE2B 4b358ec95d97c677243a5485de8400ebc91d5bd0a17ebf99e1074cde5457fa57b96f380eaf0c8d4d7b3964bdcf4158f80fa6ebd284feaa21e25d07a06285a90f SHA512 966b06d3394c0eba10d1be24ca307d7f3656912dbf7afcf958e0957f933858610242fcc6660833d6e423d0e4d3859a136065a269336062da8cc26e5788bdfb21 MISC metadata.xml 365 BLAKE2B a35e6c179f994a06ff5343ebadd5500de5046861709629b7ab400e5e2633662c1d7579803b932c465eef58d5b0103509185206481dfad401adc4e6abe5d2faee SHA512 b77b46b63ba053fb7d50cc52e0385fb1a975520cbe549b024a62e7c452036f73b18f5785173902a99b82d56a50a2937b24d3d06e5c2d4f5689a8f7b8663766e7 diff --git a/dev-python/phply/phply-1.2.6.ebuild b/dev-python/phply/phply-1.2.6.ebuild new file mode 100644 index 000000000000..f16919e8474e --- /dev/null +++ b/dev-python/phply/phply-1.2.6.ebuild @@ -0,0 +1,33 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..11} ) +inherit distutils-r1 + +DESCRIPTION="Lexer and parser for PHP source implemented using PLY" +HOMEPAGE=" + https://github.com/viraptor/phply/ + https://pypi.org/project/phply/" +SRC_URI=" + https://github.com/viraptor/phply/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND="dev-python/ply[${PYTHON_USEDEP}]" +BDEPEND="${RDEPEND}" + +distutils_enable_tests pytest + +src_prepare() { + # namespace? seriously? + sed -i -e '/namespace_packages/d' setup.py || die + # prevent installing tests, turn phply back into normal package + mv tests/__init__.py phply/ || die + distutils-r1_src_prepare +} |