diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2020-08-10 22:45:04 +0200 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2020-08-10 22:45:04 +0200 |
commit | c81e2b01fcd52a8016ae039f6c3c834887252fdd (patch) | |
tree | c0c6ccde1618535db2760d6fc370e9017f1c9d3f /dev-python/quex | |
parent | media-gfx/imagemagick: drop 7.0.10-26 (diff) | |
download | gentoo-c81e2b01fcd52a8016ae039f6c3c834887252fdd.tar.gz gentoo-c81e2b01fcd52a8016ae039f6c3c834887252fdd.tar.bz2 gentoo-c81e2b01fcd52a8016ae039f6c3c834887252fdd.zip |
dev-python/quex: bump to 0.71.0
Closes: https://bugs.gentoo.org/735612
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-python/quex')
-rw-r--r-- | dev-python/quex/Manifest | 1 | ||||
-rw-r--r-- | dev-python/quex/files/quex-0.71.0-gentoo.patch | 11 | ||||
-rw-r--r-- | dev-python/quex/quex-0.71.0.ebuild | 51 |
3 files changed, 63 insertions, 0 deletions
diff --git a/dev-python/quex/Manifest b/dev-python/quex/Manifest index f082def745cb..1700cc98d7fa 100644 --- a/dev-python/quex/Manifest +++ b/dev-python/quex/Manifest @@ -1,2 +1,3 @@ DIST quex-0.65.4.tar.gz 2202154 BLAKE2B 6b273998c9641aeee458291245a4fb956b5fe9b66d8c42f0c1d9b360a4d171c830a1d487bcbab9ccea49d10b7532ed488ce66dc165f31cce9521f97c5a4575f4 SHA512 0b11d7e5c5165674626fbbe7f54853656c579c63b78bd2fef2f5a9b316171dc647812d9a37df4e7c49c05de11a307b6425089f4ab281affb6c03a9cf09e2a035 DIST quex-0.70.0.7z 2002636 BLAKE2B 16082ed6fc96e63917bcd221fc0902194900a55dcf4778661c159f1fc89282d8e5b7bc0125ebf90419bfd7c671be87cf485e6db29b8159d9f382e61996a9a16e SHA512 8c1687e33c31b3f0910e74146dcd0a0413250357240c1ee28d0df6d7fca918d4577dbab4f78cecdd82133475226e795a66fbcdccedf086aaf88cd225bfbbd935 +DIST quex-0.71.0.zip 4599847 BLAKE2B 37bb5b0c7ec6540563cd94e0fbc277064b69b0c84dcb3da20a02d1b3fa9d8ee5a801a71be41f908c33ed4fe9271c0cea31ece19be4b489228ae0c962d5731b43 SHA512 9d3b75680b9336dc4903e334dc8e1a389e2acee715ba1c5fba26aca1e905172f52098eb9c6a1c3e8b9354ea1cc857d8802a2bea4ac864fd0acb5d879c2524997 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/quex-0.71.0.ebuild b/dev-python/quex/quex-0.71.0.ebuild new file mode 100644 index 000000000000..c6e93eab42f6 --- /dev/null +++ b/dev-python/quex/quex-0.71.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_6 ) + +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 ) + +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 +} |