summaryrefslogtreecommitdiff
path: root/dev-python/quex
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-08-25 10:45:55 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-08-25 10:45:55 +0100
commit3cf7c3ef441822c889356fd1812ebf2944a59851 (patch)
treec513fe68548b40365c1c2ebfe35c58ad431cdd77 /dev-python/quex
parent05b8b0e0af1d72e51a3ee61522941bf7605cd01c (diff)
gentoo resync : 25.08.2020
Diffstat (limited to 'dev-python/quex')
-rw-r--r--dev-python/quex/Manifest8
-rw-r--r--dev-python/quex/files/quex-0.65.4-gentoo.patch17
-rw-r--r--dev-python/quex/files/quex-0.70.0-gentoo.patch11
-rw-r--r--dev-python/quex/files/quex-0.71.0-gentoo.patch11
-rw-r--r--dev-python/quex/files/quex-0.71.0-py37.patch11
-rw-r--r--dev-python/quex/files/quex.sh1
-rw-r--r--dev-python/quex/quex-0.71.0-r1.ebuild54
7 files changed, 99 insertions, 14 deletions
diff --git a/dev-python/quex/Manifest b/dev-python/quex/Manifest
index 7da3a10e377b..1cd749e4677c 100644
--- a/dev-python/quex/Manifest
+++ b/dev-python/quex/Manifest
@@ -1,4 +1,10 @@
-AUX quex-0.65.4-gentoo.patch 1592 BLAKE2B 2b1b03d108dfa9e10b60acf16f474a0b98c32e7caa6f7a7da08b3d13253cc54ea9cdcac304d20a3ea524a8a9a0088e5ab514c71f2bc3a37b74fb910ec3bf9cc9 SHA512 7202b8e9621357dd01d93e260c95df3c006d28648e12158c3e8031d6c23988ea623d10697042c1f0c6887a6af5bbea979faa7afa0ff477a9432aa4c6f56fd288
+AUX quex-0.65.4-gentoo.patch 1255 BLAKE2B b37ffe9069f97ef75737b31e0ebca6d93ab0a25f0168bd746c1651e2ab39e39f4540c1121d55f5fec1b96caa25aa02e8536f69090f406be555c888a58a090380 SHA512 992be8f711482333ce32e0d8ddfa17488e439f822dfd6e20f1fa5788ddcc550d2cb94eac962680e71eb933c3c51229255f06a1e70904b433eee0e3ccb03b4ebb
+AUX quex-0.70.0-gentoo.patch 530 BLAKE2B 93fec6f7a4516c14af50b13314e6cadee8dade71fd471f632e2021979328661efa0bb85de41b67a26f1955f9681345818cfbbfd32fa8283a431115c31e113819 SHA512 6e56e192f84b0de8ccb4c64276b3538a09717e155342ccd583af19dbfc855fef98919eef2acdb7cca459bcb1748f49209a2501c74e018192f3a11e7711cac1d3
+AUX quex-0.71.0-gentoo.patch 533 BLAKE2B 40c189ff1c0cf6dde96351af9aa1d54f98111b23794b616dacf092c779a1ce8993fe87c8a03d486be1eaa819a1efab158bb27cc161a4c5fad1482ce004c75b4d SHA512 6d3fcaecbf45f130ada04bdcbbcd71e81cd623b3ff4ce5c5952285026e1080734f3d07ae4b59302c12787d06457cab561334f58fdd66a1bfed6f3b5cdd7c31d2
+AUX quex-0.71.0-py37.patch 604 BLAKE2B 50115d12bca3e4fa448549b799163944e85b01065a95df71c5dace1a5bb6e1671425758c3011dc80530ac3878cec24267a2506d58dbcb7427fcba7100dfad120 SHA512 92bce2ce2b6d9fa7438c8ff97f815db5ad17f422ca43937921f7b585aebf33f66bae2c385bb37f6a31962924786aee3b1e37e87daebf25e741878c81369ed3ef
+AUX quex.sh 28 BLAKE2B c2ae538107a05055fe883c5327c8c4baf2c45568fe34cae8d616a8145d4bc870c111f90aa6c7e88771ed6f20c4d55751625bdbede97b2b306ea025ca11223fd5 SHA512 97fb88ea8894d618ee133aac6edaf6317c247728801bb39f9a7be9ee30b278073290659a27dc72834d2783156fbf4ab6f1cb3c15da178ac0acf4718e6aa476df
DIST quex-0.65.4.tar.gz 2202154 BLAKE2B 6b273998c9641aeee458291245a4fb956b5fe9b66d8c42f0c1d9b360a4d171c830a1d487bcbab9ccea49d10b7532ed488ce66dc165f31cce9521f97c5a4575f4 SHA512 0b11d7e5c5165674626fbbe7f54853656c579c63b78bd2fef2f5a9b316171dc647812d9a37df4e7c49c05de11a307b6425089f4ab281affb6c03a9cf09e2a035
+DIST quex-0.71.0.zip 4599847 BLAKE2B 37bb5b0c7ec6540563cd94e0fbc277064b69b0c84dcb3da20a02d1b3fa9d8ee5a801a71be41f908c33ed4fe9271c0cea31ece19be4b489228ae0c962d5731b43 SHA512 9d3b75680b9336dc4903e334dc8e1a389e2acee715ba1c5fba26aca1e905172f52098eb9c6a1c3e8b9354ea1cc857d8802a2bea4ac864fd0acb5d879c2524997
EBUILD quex-0.65.4.ebuild 915 BLAKE2B 0499ad6312f5d1d04c9f20a55ec2066aa4bb1da17f127cad6bc99e3a5bc22061213fd34fe77669091259470316b2f3a48bd474138841721ff8f00e9606cb9f83 SHA512 44b9d57618501a952b411da30dd89acd3fb620a7f3840942bde6b8e7b99cb7a8ffbbbe348b3bf1a83d88751aefc32767b31b38b1fbcac4a8a2b76af4d4055fa3
+EBUILD quex-0.71.0-r1.ebuild 1143 BLAKE2B a7b3abf8341f5bc27a9f7f6417189d3ffaf6912ab27423c1a354de7dc2ffeaeec73a0e2a8e6c975a78ffa0c6866e6ecc98eb0da302e5aa877ade989b5c41043e SHA512 8c93a399235e7f9d8593f3e0f0888e6b8faf255bf99d049bb4c31a4f2a8143034414e1eb8d6063986dca59104e3b02afbdf05222885f60cb5f3f0499ccaf8faa
MISC metadata.xml 807 BLAKE2B 778188ed4c2e4c0b626c8e732be918b44583c5b490356f2c28dcd978c1c3b76b45440c45b0175b203f36937d43f4e12aeabcc1f40183f740c1357006d5841dc2 SHA512 37a5d2bd9351e1bd4f20e6b40808a1598b7b46d1d5559210c83ef106d25dd895d2d0fc31bd6671c98129176c36564388d071edbd058a57666aca07f6ff0fb930
diff --git a/dev-python/quex/files/quex-0.65.4-gentoo.patch b/dev-python/quex/files/quex-0.65.4-gentoo.patch
index cbe161a18e11..d870c765f784 100644
--- a/dev-python/quex/files/quex-0.65.4-gentoo.patch
+++ b/dev-python/quex/files/quex-0.65.4-gentoo.patch
@@ -1,5 +1,5 @@
---- quex-0.65.4/quex-exe.py.old 2017-12-13 21:42:48.633280478 +0100
-+++ quex-0.65.4/quex-exe.py 2017-12-13 21:43:02.066040530 +0100
+--- a/quex-exe.py 2017-12-13 21:42:48.633280478 +0100
++++ b/quex-exe.py 2017-12-13 21:43:02.066040530 +0100
@@ -40,11 +40,6 @@
print("error: Please, use Python versions 2.x.")
sys.exit(-1)
@@ -12,17 +12,8 @@
try:
exception_checker.do_on_import(sys.argv)
import quex.DEFINITIONS
---- quex-0.65.4/quex/DEFINITIONS.py.old 2017-12-13 21:48:52.887765325 +0100
-+++ quex-0.65.4/quex/DEFINITIONS.py 2017-12-13 21:52:29.805877359 +0100
-@@ -23,7 +23,7 @@
- QUEX_VERSION = '0.65.4'
-
- try:
-- QUEX_INSTALLATION_DIR = os.environ["QUEX_PATH"]
-+ QUEX_INSTALLATION_DIR = "@PYTHON_SITEDIR@"
- # Note, that windows can also deal with backslashes.
- QUEX_INSTALLATION_DIR = QUEX_INSTALLATION_DIR.replace("\\", "/")
- except:
+--- a/quex/DEFINITIONS.py 2017-12-13 21:48:52.887765325 +0100
++++ b/quex/DEFINITIONS.py 2017-12-13 21:52:29.805877359 +0100
@@ -49,15 +49,14 @@
sys.exit(-1) # sys.exit(-1) is acceptable
diff --git a/dev-python/quex/files/quex-0.70.0-gentoo.patch b/dev-python/quex/files/quex-0.70.0-gentoo.patch
new file mode 100644
index 000000000000..c110c4bdb24d
--- /dev/null
+++ b/dev-python/quex/files/quex-0.70.0-gentoo.patch
@@ -0,0 +1,11 @@
+--- a/quex/DEFINITIONS.py 2017-12-13 21:48:52.887765325 +0100
++++ b/quex/DEFINITIONS.py 2017-12-13 21:52:29.805877359 +0100
+@@ -57,7 +57,7 @@
+ global QUEX_INSTALLATION_DIR
+
+ # -- Try to acces the file 'quex-exe.py' in order to verify
+- if os.access(QUEX_INSTALLATION_DIR + "/quex-exe.py", os.F_OK) == False:
++ if False:
+ print "error: Environment variable 'QUEX_PATH' does not point to"
+ print "error: a valid installation directory of quex."
+ print "error: current setting of 'QUEX_PATH':"
diff --git a/dev-python/quex/files/quex-0.71.0-gentoo.patch b/dev-python/quex/files/quex-0.71.0-gentoo.patch
new file mode 100644
index 000000000000..80eb411f5a0e
--- /dev/null
+++ b/dev-python/quex/files/quex-0.71.0-gentoo.patch
@@ -0,0 +1,11 @@
+--- a/quex/DEFINITIONS.py 2017-12-13 21:48:52.887765325 +0100
++++ b/quex/DEFINITIONS.py 2017-12-13 21:52:29.805877359 +0100
+@@ -57,7 +57,7 @@
+ global QUEX_INSTALLATION_DIR
+
+ # -- Try to acces the file 'quex-exe.py' in order to verify
+- if os.access(QUEX_INSTALLATION_DIR + "/quex-exe.py", os.F_OK) == False:
++ if False:
+ print("error: Environment variable 'QUEX_PATH' does not point to")
+ print("error: a valid installation directory of quex.")
+ print("error: current setting of 'QUEX_PATH':")
diff --git a/dev-python/quex/files/quex-0.71.0-py37.patch b/dev-python/quex/files/quex-0.71.0-py37.patch
new file mode 100644
index 000000000000..9c2ed48d5495
--- /dev/null
+++ b/dev-python/quex/files/quex-0.71.0-py37.patch
@@ -0,0 +1,11 @@
+--- a/quex/input/code/base.py 2020-08-17 11:27:16.948578316 +0200
++++ b/quex/input/code/base.py 2020-08-17 11:27:27.604426654 +0200
+@@ -123,7 +123,7 @@
+ def set_source_reference(self, SourceReference):
+ self.__source_reference = SourceReference
+
+- @typed(Re=re._pattern_type)
++ @typed(Re=re.Pattern)
+ def contains_string(self, Re): return self.__check_code(lambda x: Re.search(x) is not None)
+ def is_empty(self): return not self.__check_code(lambda x: len(x) != 0)
+ def is_whitespace(self): return not self.__check_code(lambda x: len(x.strip()) != 0)
diff --git a/dev-python/quex/files/quex.sh b/dev-python/quex/files/quex.sh
new file mode 100644
index 000000000000..26bd161e969c
--- /dev/null
+++ b/dev-python/quex/files/quex.sh
@@ -0,0 +1 @@
+export QUEX_PATH=/usr/share
diff --git a/dev-python/quex/quex-0.71.0-r1.ebuild b/dev-python/quex/quex-0.71.0-r1.ebuild
new file mode 100644
index 000000000000..7b55297c7f76
--- /dev/null
+++ b/dev-python/quex/quex-0.71.0-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_7 )
+
+inherit python-single-r1
+
+DESCRIPTION="Mode Oriented Directly Coded Lexical Analyser Generator"
+HOMEPAGE="http://quex.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.zip"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}"
+BDEPEND="${RDEPEND}
+ app-arch/unzip"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gentoo.patch
+ "${FILESDIR}"/${P}-py37.patch
+)
+
+src_prepare() {
+ default
+ sed -i \
+ -e "s:@PYTHON_SITEDIR@:$(python_get_sitedir):g" \
+ quex/DEFINITIONS.py || die
+ mkdir -p engine/codec_db/unicode || die
+ mv quex/engine/codec_db/database engine/codec_db/ || die
+ mv quex/engine/codec_db/unicode/database engine/codec_db/unicode/ || die
+ mv quex/code_base . || die
+}
+
+src_install() {
+ default
+ insinto /usr/share/quex/
+ doins -r engine
+ doins -r code_base
+
+ python_domodule quex
+ python_newscript quex-exe.py quex
+ doman manpage/quex.1
+ dodoc -r demo
+ insinto /etc/profile.d/
+ doins "${FILESDIR}"/quex.sh
+}