public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/quex/, dev-python/quex/files/
@ 2020-08-09 11:34 Alfredo Tupone
  0 siblings, 0 replies; 3+ messages in thread
From: Alfredo Tupone @ 2020-08-09 11:34 UTC (permalink / raw
  To: gentoo-commits

commit:     850ec7729eef9ad9dbbe37be3d6f90f38e4c9754
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Sun Aug  9 11:33:37 2020 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sun Aug  9 11:33:37 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=850ec772

dev-python/quex: EAPI 7

Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-python/quex/files/quex-0.65.4-gentoo.patch | 17 +++------
 dev-python/quex/files/quex.sh                  |  1 +
 dev-python/quex/quex-0.65.4-r1.ebuild          | 48 ++++++++++++++++++++++++++
 3 files changed, 53 insertions(+), 13 deletions(-)

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 cbe161a18e1..d870c765f78 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.sh b/dev-python/quex/files/quex.sh
new file mode 100644
index 00000000000..26bd161e969
--- /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.65.4-r1.ebuild b/dev-python/quex/quex-0.65.4-r1.ebuild
new file mode 100644
index 00000000000..ad2be6628c0
--- /dev/null
+++ b/dev-python/quex/quex-0.65.4-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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}"
+
+RDEPEND="${PYTHON_DEPS}"
+BDEPEND="${RDEPEND}"
+DEPEND="${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
+	mv quex/code_base . || die
+}
+
+src_install() {
+	default
+	insinto /usr/share/quex
+	doins -r database
+	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/, dev-python/quex/files/
@ 2020-08-10  9:46 Alfredo Tupone
  0 siblings, 0 replies; 3+ messages in thread
From: Alfredo Tupone @ 2020-08-10  9:46 UTC (permalink / raw
  To: gentoo-commits

commit:     cb8dc18680f64045986e4fd4436653a5d6aacba6
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 10 09:46:35 2020 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Mon Aug 10 09:46:35 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb8dc186

dev-python/quex: version bump to 0.70.0

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.70.0-gentoo.patch | 11 ++++++
 dev-python/quex/quex-0.70.0.ebuild             | 50 ++++++++++++++++++++++++++
 3 files changed, 62 insertions(+)

diff --git a/dev-python/quex/Manifest b/dev-python/quex/Manifest
index 28b6c4074ed..f082def745c 100644
--- a/dev-python/quex/Manifest
+++ b/dev-python/quex/Manifest
@@ -1 +1,2 @@
 DIST quex-0.65.4.tar.gz 2202154 BLAKE2B 6b273998c9641aeee458291245a4fb956b5fe9b66d8c42f0c1d9b360a4d171c830a1d487bcbab9ccea49d10b7532ed488ce66dc165f31cce9521f97c5a4575f4 SHA512 0b11d7e5c5165674626fbbe7f54853656c579c63b78bd2fef2f5a9b316171dc647812d9a37df4e7c49c05de11a307b6425089f4ab281affb6c03a9cf09e2a035
+DIST quex-0.70.0.7z 2002636 BLAKE2B 16082ed6fc96e63917bcd221fc0902194900a55dcf4778661c159f1fc89282d8e5b7bc0125ebf90419bfd7c671be87cf485e6db29b8159d9f382e61996a9a16e SHA512 8c1687e33c31b3f0910e74146dcd0a0413250357240c1ee28d0df6d7fca918d4577dbab4f78cecdd82133475226e795a66fbcdccedf086aaf88cd225bfbbd935

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 00000000000..c110c4bdb24
--- /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/quex-0.70.0.ebuild b/dev-python/quex/quex-0.70.0.ebuild
new file mode 100644
index 00000000000..5237166e0f5
--- /dev/null
+++ b/dev-python/quex/quex-0.70.0.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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}.7z"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}"
+BDEPEND="${RDEPEND}"
+DEPEND="${DEPEND}"
+
+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/, dev-python/quex/files/
@ 2020-08-17  9:39 Alfredo Tupone
  0 siblings, 0 replies; 3+ messages in thread
From: Alfredo Tupone @ 2020-08-17  9:39 UTC (permalink / raw
  To: gentoo-commits

commit:     8e08a861062b4f9e123271767574e29133d07359
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 17 09:38:58 2020 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Mon Aug 17 09:38:58 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e08a861

dev-python/quex: fix build for python3.7

Bug: https://bugs.gentoo.org/737374
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-python/quex/files/quex-0.71.0-py37.patch | 11 ++++++
 dev-python/quex/quex-0.71.0-r1.ebuild        | 54 ++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+)

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 00000000000..9c2ed48d549
--- /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/quex-0.71.0-r1.ebuild b/dev-python/quex/quex-0.71.0-r1.ebuild
new file mode 100644
index 00000000000..7b55297c7f7
--- /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
+}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-08-17  9:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-10  9:46 [gentoo-commits] repo/gentoo:master commit in: dev-python/quex/, dev-python/quex/files/ Alfredo Tupone
  -- strict thread matches above, loose matches on Subject: below --
2020-08-17  9:39 Alfredo Tupone
2020-08-09 11:34 Alfredo Tupone

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox