1 |
commit: de364558acc33c3bc1c37f5c82761d485937ec96 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 10 21:19:38 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 10 21:52:36 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de364558 |
7 |
|
8 |
dev-python/ply: Use PEP517 build |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/ply/ply-3.11-r2.ebuild | 46 +++++++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 46 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/ply/ply-3.11-r2.ebuild b/dev-python/ply/ply-3.11-r2.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..1e825003ff3c |
18 |
--- /dev/null |
19 |
+++ b/dev-python/ply/ply-3.11-r2.ebuild |
20 |
@@ -0,0 +1,46 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+# please keep this ebuild at EAPI 7 -- sys-apps/portage dep |
25 |
+EAPI=7 |
26 |
+ |
27 |
+DISTUTILS_USE_PEP517=setuptools |
28 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
29 |
+ |
30 |
+inherit distutils-r1 |
31 |
+ |
32 |
+DESCRIPTION="Python Lex-Yacc library" |
33 |
+HOMEPAGE=" |
34 |
+ http://www.dabeaz.com/ply/ |
35 |
+ https://github.com/dabeaz/ply/ |
36 |
+ https://pypi.org/project/ply/ |
37 |
+" |
38 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
39 |
+ |
40 |
+LICENSE="BSD" |
41 |
+SLOT="0/${PV}" |
42 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~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" |
43 |
+IUSE="examples" |
44 |
+ |
45 |
+DOCS=( ANNOUNCE CHANGES TODO ) |
46 |
+ |
47 |
+PATCHES=( |
48 |
+ "${FILESDIR}/3.6-picklefile-IOError.patch" |
49 |
+) |
50 |
+ |
51 |
+python_test() { |
52 |
+ # Checks for pyc/pyo files |
53 |
+ local -x PYTHONDONTWRITEBYTECODE= |
54 |
+ |
55 |
+ cd test || die |
56 |
+ local t |
57 |
+ for t in testlex.py testyacc.py; do |
58 |
+ "${EPYTHON}" "${t}" -v || die "${t} fails with ${EPYTHON}" |
59 |
+ done |
60 |
+} |
61 |
+ |
62 |
+python_install_all() { |
63 |
+ local HTML_DOCS=( doc/. ) |
64 |
+ use examples && dodoc -r example |
65 |
+ distutils-r1_python_install_all |
66 |
+} |