* [gentoo-commits] repo/gentoo:master commit in: dev-python/quex/files/, dev-python/quex/
@ 2017-12-14 20:55 Alfredo Tupone
0 siblings, 0 replies; 3+ messages in thread
From: Alfredo Tupone @ 2017-12-14 20:55 UTC (permalink / raw
To: gentoo-commits
commit: 60324f1ab1eac2a18f7af728cdccefea8f0331ad
Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 14 20:53:02 2017 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Thu Dec 14 20:53:51 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60324f1a
dev-python/quex: Adding quex - Lexican Analyzer Generator
Package-Manager: Portage-2.3.13, Repoman-2.3.3
dev-python/quex/Manifest | 1 +
dev-python/quex/files/quex-0.65.4-gentoo.patch | 43 +++++++++++++++++++++++++
dev-python/quex/metadata.xml | 24 ++++++++++++++
dev-python/quex/quex-0.65.4.ebuild | 44 ++++++++++++++++++++++++++
4 files changed, 112 insertions(+)
diff --git a/dev-python/quex/Manifest b/dev-python/quex/Manifest
new file mode 100644
index 00000000000..28b6c4074ed
--- /dev/null
+++ b/dev-python/quex/Manifest
@@ -0,0 +1 @@
+DIST quex-0.65.4.tar.gz 2202154 BLAKE2B 6b273998c9641aeee458291245a4fb956b5fe9b66d8c42f0c1d9b360a4d171c830a1d487bcbab9ccea49d10b7532ed488ce66dc165f31cce9521f97c5a4575f4 SHA512 0b11d7e5c5165674626fbbe7f54853656c579c63b78bd2fef2f5a9b316171dc647812d9a37df4e7c49c05de11a307b6425089f4ab281affb6c03a9cf09e2a035
diff --git a/dev-python/quex/files/quex-0.65.4-gentoo.patch b/dev-python/quex/files/quex-0.65.4-gentoo.patch
new file mode 100644
index 00000000000..cbe161a18e1
--- /dev/null
+++ b/dev-python/quex/files/quex-0.65.4-gentoo.patch
@@ -0,0 +1,43 @@
+--- 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
+@@ -40,11 +40,6 @@
+ print("error: Please, use Python versions 2.x.")
+ sys.exit(-1)
+
+-if os.environ.has_key("QUEX_PATH") == False:
+- print("Environment variable QUEX_PATH has not been defined.")
+-else:
+- sys.path.insert(0, os.environ["QUEX_PATH"])
+-
+ 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:
+@@ -49,15 +49,14 @@
+ sys.exit(-1) # sys.exit(-1) is acceptable
+
+ QUEX_PATH = QUEX_INSTALLATION_DIR
+-QUEX_CODEC_DB_PATH = QUEX_PATH + "/quex/engine/codec_db/database"
++QUEX_CODEC_DB_PATH = "/usr/share/quex/database"
+
+-sys.path.insert(0, QUEX_INSTALLATION_DIR)
+
+ def check():
+ 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/metadata.xml b/dev-python/quex/metadata.xml
new file mode 100644
index 00000000000..7500e5f0c48
--- /dev/null
+++ b/dev-python/quex/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ </maintainer>
+ <maintainer type="person">
+ <email>tupone@gentoo.org</email>
+ <name>Tupone Alfredo</name>
+ </maintainer>
+ <longdescription lang="en">
+ It is:
+ a tool to generate lexical analyzers. A lexical analyzer is a program
+ that transforms a stream of characters into a stream of
+ 'atomic chunks of meaning', so called tokens.
+
+ It does:
+ generate directly coded lexical analyzers, rather than table based
+ engines.
+ respond to queries on Unicode properties and regular expressions on the
+ command line.
+ generate state transition graphs of the generated engines.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-python/quex/quex-0.65.4.ebuild b/dev-python/quex/quex-0.65.4.ebuild
new file mode 100644
index 00000000000..0bf833a6419
--- /dev/null
+++ b/dev-python/quex/quex-0.65.4.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-single-r1
+
+DESCRIPTION="Mode Oriented Directly Coded Lexical Analyser Generator"
+HOMEPAGE="http://quex.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+
+src_prepare() {
+ default
+ sed -i \
+ -e "s:@PYTHON_SITEDIR@:$(python_get_sitedir):g" \
+ quex/DEFINITIONS.py || die
+ mv quex/engine/codec_db/database . || die
+}
+
+src_install() {
+ default
+ insinto /usr/share/quex
+ doins -r database
+ dosym $(python_get_sitedir)/quex/code_base /usr/include/quex/code_base
+
+ python_domodule quex
+ python_newexe quex-exe.py quex
+ doman manpage/quex.1
+ dodoc -r demo
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/quex/files/, dev-python/quex/
@ 2020-08-10 20:45 Alfredo Tupone
0 siblings, 0 replies; 3+ messages in thread
From: Alfredo Tupone @ 2020-08-10 20:45 UTC (permalink / raw
To: gentoo-commits
commit: c81e2b01fcd52a8016ae039f6c3c834887252fdd
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 10 20:45:04 2020 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Mon Aug 10 20:45:04 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c81e2b01
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 <AT> gentoo.org>
dev-python/quex/Manifest | 1 +
dev-python/quex/files/quex-0.71.0-gentoo.patch | 11 ++++++
dev-python/quex/quex-0.71.0.ebuild | 51 ++++++++++++++++++++++++++
3 files changed, 63 insertions(+)
diff --git a/dev-python/quex/Manifest b/dev-python/quex/Manifest
index f082def745c..1700cc98d7f 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 00000000000..80eb411f5a0
--- /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 00000000000..c6e93eab42f
--- /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
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/quex/files/, dev-python/quex/
@ 2021-05-31 20:42 Michał Górny
0 siblings, 0 replies; 3+ messages in thread
From: Michał Górny @ 2021-05-31 20:42 UTC (permalink / raw
To: gentoo-commits
commit: ab0e2e3ec0a2fadd4d00f362fb55445e6488c408
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon May 31 20:32:32 2021 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon May 31 20:32:48 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab0e2e3e
dev-python/quex: Remove old
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/quex/Manifest | 1 -
dev-python/quex/files/quex-0.71.0-py37.patch | 11 ------
dev-python/quex/quex-0.71.0-r1.ebuild | 54 ----------------------------
3 files changed, 66 deletions(-)
diff --git a/dev-python/quex/Manifest b/dev-python/quex/Manifest
index 8c0d578976f..1357b40e79d 100644
--- a/dev-python/quex/Manifest
+++ b/dev-python/quex/Manifest
@@ -1,2 +1 @@
-DIST quex-0.71.0.zip 4599847 BLAKE2B 37bb5b0c7ec6540563cd94e0fbc277064b69b0c84dcb3da20a02d1b3fa9d8ee5a801a71be41f908c33ed4fe9271c0cea31ece19be4b489228ae0c962d5731b43 SHA512 9d3b75680b9336dc4903e334dc8e1a389e2acee715ba1c5fba26aca1e905172f52098eb9c6a1c3e8b9354ea1cc857d8802a2bea4ac864fd0acb5d879c2524997
DIST quex-0.71.2.zip 4466070 BLAKE2B 3c9db64174c9a56a8b07b64b7140e8d65b2352f93f6eb67e2ee34b595db05ffe1b73d0668d668268423d457e15bb365509de9abc0335af7d017496b814ca9cae SHA512 5065495ba568e38f384447cdbd7ef02f8d38cf5cd9425a9ec523e8e72d4ed52f3a02dec945961e568a4d759ab1e45d717cbc55a3b38a9e4dde9eb75524a1eb5b
diff --git a/dev-python/quex/files/quex-0.71.0-py37.patch b/dev-python/quex/files/quex-0.71.0-py37.patch
deleted file mode 100644
index 9c2ed48d549..00000000000
--- a/dev-python/quex/files/quex-0.71.0-py37.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- 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/quex-0.71.0-r1.ebuild b/dev-python/quex/quex-0.71.0-r1.ebuild
deleted file mode 100644
index 9f658bedc38..00000000000
--- a/dev-python/quex/quex-0.71.0-r1.ebuild
+++ /dev/null
@@ -1,54 +0,0 @@
-# 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
-}
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-05-31 20:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-10 20:45 [gentoo-commits] repo/gentoo:master commit in: dev-python/quex/files/, dev-python/quex/ Alfredo Tupone
-- strict thread matches above, loose matches on Subject: below --
2021-05-31 20:42 Michał Górny
2017-12-14 20:55 Alfredo Tupone
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox