1 |
commit: ff353a0a64a2c35f306c3541f58bfc8925b9fc8d |
2 |
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 4 18:03:42 2021 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 4 18:04:18 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff353a0a |
7 |
|
8 |
dev-python/quex: port to python 3.9 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/737374 |
11 |
Package-Manager: Portage-3.0.18, Repoman-3.0.2 |
12 |
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> |
13 |
|
14 |
dev-python/quex/Manifest | 1 + |
15 |
dev-python/quex/quex-0.71.2.ebuild | 53 ++++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 54 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/quex/Manifest b/dev-python/quex/Manifest |
19 |
index 17a874f7f45..8c0d578976f 100644 |
20 |
--- a/dev-python/quex/Manifest |
21 |
+++ b/dev-python/quex/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST quex-0.71.0.zip 4599847 BLAKE2B 37bb5b0c7ec6540563cd94e0fbc277064b69b0c84dcb3da20a02d1b3fa9d8ee5a801a71be41f908c33ed4fe9271c0cea31ece19be4b489228ae0c962d5731b43 SHA512 9d3b75680b9336dc4903e334dc8e1a389e2acee715ba1c5fba26aca1e905172f52098eb9c6a1c3e8b9354ea1cc857d8802a2bea4ac864fd0acb5d879c2524997 |
24 |
+DIST quex-0.71.2.zip 4466070 BLAKE2B 3c9db64174c9a56a8b07b64b7140e8d65b2352f93f6eb67e2ee34b595db05ffe1b73d0668d668268423d457e15bb365509de9abc0335af7d017496b814ca9cae SHA512 5065495ba568e38f384447cdbd7ef02f8d38cf5cd9425a9ec523e8e72d4ed52f3a02dec945961e568a4d759ab1e45d717cbc55a3b38a9e4dde9eb75524a1eb5b |
25 |
|
26 |
diff --git a/dev-python/quex/quex-0.71.2.ebuild b/dev-python/quex/quex-0.71.2.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..661695ffa62 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/quex/quex-0.71.2.ebuild |
31 |
@@ -0,0 +1,53 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_9 ) |
38 |
+ |
39 |
+inherit python-single-r1 |
40 |
+ |
41 |
+DESCRIPTION="Mode Oriented Directly Coded Lexical Analyser Generator" |
42 |
+HOMEPAGE="http://quex.sourceforge.net/" |
43 |
+SRC_URI="mirror://sourceforge/${PN}/${P}.zip" |
44 |
+ |
45 |
+LICENSE="LGPL-2.1" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+IUSE="" |
49 |
+ |
50 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
51 |
+ |
52 |
+RDEPEND="${PYTHON_DEPS}" |
53 |
+BDEPEND="${RDEPEND} |
54 |
+ app-arch/unzip" |
55 |
+DEPEND="${RDEPEND}" |
56 |
+ |
57 |
+PATCHES=( |
58 |
+ "${FILESDIR}"/${PN}-0.71.0-gentoo.patch |
59 |
+) |
60 |
+ |
61 |
+src_prepare() { |
62 |
+ default |
63 |
+ sed -i \ |
64 |
+ -e "s:@PYTHON_SITEDIR@:$(python_get_sitedir):g" \ |
65 |
+ quex/DEFINITIONS.py || die |
66 |
+ mkdir -p engine/codec_db/unicode || die |
67 |
+ mv quex/engine/codec_db/database engine/codec_db/ || die |
68 |
+ mv quex/engine/codec_db/unicode/database engine/codec_db/unicode/ || die |
69 |
+ mv quex/code_base . || die |
70 |
+} |
71 |
+ |
72 |
+src_install() { |
73 |
+ default |
74 |
+ insinto /usr/share/quex/ |
75 |
+ doins -r engine |
76 |
+ doins -r code_base |
77 |
+ |
78 |
+ python_domodule quex |
79 |
+ python_newscript quex-exe.py quex |
80 |
+ doman manpage/quex.1 |
81 |
+ dodoc -r demo |
82 |
+ insinto /etc/profile.d/ |
83 |
+ doins "${FILESDIR}"/quex.sh |
84 |
+} |