public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-util/re2c/, dev-util/re2c/files/
@ 2018-08-28 19:23 Sergei Trofimovich
  0 siblings, 0 replies; 3+ messages in thread
From: Sergei Trofimovich @ 2018-08-28 19:23 UTC (permalink / raw
  To: gentoo-commits

commit:     26cd98b3b63437489b1b30a6948f30a6978e0abc
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 28 19:23:28 2018 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Tue Aug 28 19:23:28 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26cd98b3

dev-util/re2c: fix -V option handling, bug #664752

Patch by Mike Gilbert \o/

Repored-by: Thomas Deutschmann
Closes: https://bugs.gentoo.org/664752
Bug: https://github.com/skvadrik/re2c/issues/211
Fixed-by: Mike Gilbert
Package-Manager: Portage-2.3.48, Repoman-2.3.10

 dev-util/re2c/files/re2c-1.1-dash-V.patch          | 49 ++++++++++++++++++++++
 .../re2c/{re2c-1.1.ebuild => re2c-1.1-r1.ebuild}   |  4 ++
 2 files changed, 53 insertions(+)

diff --git a/dev-util/re2c/files/re2c-1.1-dash-V.patch b/dev-util/re2c/files/re2c-1.1-dash-V.patch
new file mode 100644
index 00000000000..77c3d80dd12
--- /dev/null
+++ b/dev-util/re2c/files/re2c-1.1-dash-V.patch
@@ -0,0 +1,49 @@
+From 84a7bf8585c500572a8ad19f9458f31d34abbcdc Mon Sep 17 00:00:00 2001
+From: Mike Gilbert <floppym@gentoo.org>
+Date: Tue, 28 Aug 2018 12:01:07 -0400
+Subject: [PATCH] Rewrite vernum function
+
+Fixes: https://github.com/skvadrik/re2c/issues/211
+---
+ re2c/src/conf/msg.cc | 27 +++++++++++++--------------
+ 1 file changed, 13 insertions(+), 14 deletions(-)
+
+--- a/src/conf/msg.cc
++++ b/src/conf/msg.cc
+@@ -102,23 +102,22 @@ void usage()
+ void vernum ()
+ {
+     std::string vernum (PACKAGE_VERSION);
+-    if (vernum[1] == '.')
+-    {
+-        vernum.insert(0, "0");
+-    }
+-    vernum.erase(2, 1);
+-    if (vernum[3] == '.')
+-    {
+-        vernum.insert(2, "0");
+-    }
+-    vernum.erase(4, 1);
+-    if (vernum.length() < 6 || vernum[5] < '0' || vernum[5] > '9')
++    std::string parts[3];
++    unsigned p = 0;
++
++    for (unsigned i = 0; p < 3 && i < vernum.length (); i++)
+     {
+-        vernum.insert(4, "0");
++        if (vernum[i] == '.')
++            p++;
++        else
++            parts[p].push_back (vernum[i]);
+     }
+-    vernum.resize(6, '0');
+ 
+-    printf ("%s\n", vernum.c_str ());
++    for (p = 0; p < 3; p++)
++        while (parts[p].length () < 2)
++            parts[p].insert (0, 1, '0');
++
++    printf ("%s%s%s\n", parts[0].c_str (), parts[1].c_str (), parts[2].c_str ());
+ }
+ 
+ void version ()

diff --git a/dev-util/re2c/re2c-1.1.ebuild b/dev-util/re2c/re2c-1.1-r1.ebuild
similarity index 94%
rename from dev-util/re2c/re2c-1.1.ebuild
rename to dev-util/re2c/re2c-1.1-r1.ebuild
index bd4ecbe5865..0599306ecfc 100644
--- a/dev-util/re2c/re2c-1.1.ebuild
+++ b/dev-util/re2c/re2c-1.1-r1.ebuild
@@ -13,6 +13,10 @@ LICENSE="public-domain"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
 
+PATCHES=(
+	"${FILESDIR}"/${P}-dash-V.patch
+)
+
 src_prepare() {
 	default
 	export ac_cv_path_BISON="no"


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

* [gentoo-commits] repo/gentoo:master commit in: dev-util/re2c/, dev-util/re2c/files/
@ 2019-05-03  9:14 Sergei Trofimovich
  0 siblings, 0 replies; 3+ messages in thread
From: Sergei Trofimovich @ 2019-05-03  9:14 UTC (permalink / raw
  To: gentoo-commits

commit:     c666873c32c13cef5e378e62d91e880a74d57f67
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Fri May  3 09:09:01 2019 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Fri May  3 09:14:41 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c666873c

dev-util/re2c: drop old

Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 dev-util/re2c/Manifest                    |  6 ----
 dev-util/re2c/files/re2c-1.1-dash-V.patch | 49 -------------------------------
 dev-util/re2c/re2c-0.13.5-r1.ebuild       | 29 ------------------
 dev-util/re2c/re2c-0.16.ebuild            | 28 ------------------
 dev-util/re2c/re2c-1.0.1.ebuild           | 28 ------------------
 dev-util/re2c/re2c-1.0.2.ebuild           | 28 ------------------
 dev-util/re2c/re2c-1.0.3.ebuild           | 28 ------------------
 dev-util/re2c/re2c-1.1-r1.ebuild          | 32 --------------------
 8 files changed, 228 deletions(-)

diff --git a/dev-util/re2c/Manifest b/dev-util/re2c/Manifest
index a253d12700d..a0ecb1f0961 100644
--- a/dev-util/re2c/Manifest
+++ b/dev-util/re2c/Manifest
@@ -1,7 +1 @@
-DIST re2c-0.13.5.tar.gz 782725 BLAKE2B 569ded397a2139c76e1c97c73f52628e6723c5c8e2dc9fd46ddda6fb30c9dae8454460b5e457c4a5319ccf4e2fd0f45a7ebc28406881d9d44dc45bed106769c9 SHA512 56101bf01aea6f0c082b85382be34acada51d70036252581cd76ac4b2bdbc144633b97c63a94bfdba434ffb80884e11299a38853e2d805dc7ce6cf9d452c81c8
-DIST re2c-0.16.tar.gz 4892417 BLAKE2B e1160d3f6ebd63d42a22c112d83a31fcd7bb0d5ab239b7be569f603752794048685776602aae754d8b4e47cb6ae3540ce0977b0824e6bf3104e58a8fb0428f9b SHA512 d4fb8078d9566a1fa177331b649cac79e2e45cc9558a22a2212503f6c77c9e6b4238aa01c85c66b86fa4831cdc669cedf8b430d395be6a0c6cfabfb7c61cf8a3
-DIST re2c-1.0.1.tar.gz 5758988 BLAKE2B e02d8ce5f82441d33ec055d582e797d33a4b1a5244d37477b5c93117c735790a6a24e1b9e1456a6d4182c3282b59955838b625216cf47abfcc8c4fb5eacc953e SHA512 ab3b652d8f97b0d1be4c7561ce65e28870ab8976f8a31d74a6629b43d2057bfa608c7f393d5e5d59d26f991552a60e6274f554ef58752bdfcfeba330578f1299
-DIST re2c-1.0.2.tar.gz 5805526 BLAKE2B 931e7b00f57cf8c3e49e540496906208e5a5b73f87427c095e9f5744594007b5d536bf8a2920c3fb509f57bc0ba608ca80a6780ae8af033fdfe7bb3c26292007 SHA512 9d85933ae874cb9240175ce7210d3808173bafe246c67b9c333578846239b7bcef074287f26040b5a048bcd98db8d0393035c417918b80db1f74098695a77176
-DIST re2c-1.0.3.tar.gz 5806555 BLAKE2B 98664998a52e9f3198ac6d19e8c8af8db716414e42aa89b05750cb8a2054d53d0b13fa499ca004eecc294cef2756554c3e08c8167055d38d266be86f0684b83d SHA512 7b2a43828da872a957af88fb0a226e1936a45c8a1020ba1f6544b588aaa61dff8df40e84f9053c30ac8e17c41164e70627d57f5d3721a34b2aba7b1dbf25b6ae
 DIST re2c-1.1.1.tar.gz 5907416 BLAKE2B da2544573de0dbca94db8a8e2112de5549ffbbad91bdba187e95c9d8dd36537e099dbc2871b54d62630d91928cdaf384ab069e5e1624f8ff749c2e2743cff766 SHA512 a6fe73611103588043748340976f0e6d07169a6546cb80627c0ccd2ceac83f362dbbf371530361d893537fd95deb19503b2c73c41ed40efe7787210d6c757397
-DIST re2c-1.1.tar.gz 5901198 BLAKE2B eacfbd19a6b32c1779d0d0bf45ed7b4159e0ebb000817911ac3daf4595a841efb2fe7810aaede404e95a85af9df66568be1845f96e229d66e381d0ff6f1e2d89 SHA512 a39a42977f271cbd4f245c5252cba52636519c052d61e080c607556f778e0a35709f832466c2be0467af09b1623faab25616ffc957e90c0f1f6af78decb97209

diff --git a/dev-util/re2c/files/re2c-1.1-dash-V.patch b/dev-util/re2c/files/re2c-1.1-dash-V.patch
deleted file mode 100644
index 77c3d80dd12..00000000000
--- a/dev-util/re2c/files/re2c-1.1-dash-V.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-From 84a7bf8585c500572a8ad19f9458f31d34abbcdc Mon Sep 17 00:00:00 2001
-From: Mike Gilbert <floppym@gentoo.org>
-Date: Tue, 28 Aug 2018 12:01:07 -0400
-Subject: [PATCH] Rewrite vernum function
-
-Fixes: https://github.com/skvadrik/re2c/issues/211
----
- re2c/src/conf/msg.cc | 27 +++++++++++++--------------
- 1 file changed, 13 insertions(+), 14 deletions(-)
-
---- a/src/conf/msg.cc
-+++ b/src/conf/msg.cc
-@@ -102,23 +102,22 @@ void usage()
- void vernum ()
- {
-     std::string vernum (PACKAGE_VERSION);
--    if (vernum[1] == '.')
--    {
--        vernum.insert(0, "0");
--    }
--    vernum.erase(2, 1);
--    if (vernum[3] == '.')
--    {
--        vernum.insert(2, "0");
--    }
--    vernum.erase(4, 1);
--    if (vernum.length() < 6 || vernum[5] < '0' || vernum[5] > '9')
-+    std::string parts[3];
-+    unsigned p = 0;
-+
-+    for (unsigned i = 0; p < 3 && i < vernum.length (); i++)
-     {
--        vernum.insert(4, "0");
-+        if (vernum[i] == '.')
-+            p++;
-+        else
-+            parts[p].push_back (vernum[i]);
-     }
--    vernum.resize(6, '0');
- 
--    printf ("%s\n", vernum.c_str ());
-+    for (p = 0; p < 3; p++)
-+        while (parts[p].length () < 2)
-+            parts[p].insert (0, 1, '0');
-+
-+    printf ("%s%s%s\n", parts[0].c_str (), parts[1].c_str (), parts[2].c_str ());
- }
- 
- void version ()

diff --git a/dev-util/re2c/re2c-0.13.5-r1.ebuild b/dev-util/re2c/re2c-0.13.5-r1.ebuild
deleted file mode 100644
index d04be68e9eb..00000000000
--- a/dev-util/re2c/re2c-0.13.5-r1.ebuild
+++ /dev/null
@@ -1,29 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=4
-
-inherit eutils
-
-DESCRIPTION="tool for generating C-based recognizers from regular expressions"
-HOMEPAGE="http://re2c.sourceforge.net/"
-MY_PV="${PV/_/.}"
-MY_P="${PN}-${MY_PV}"
-SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
-
-LICENSE="public-domain"
-SLOT="0"
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
-IUSE=""
-
-RDEPEND=""
-DEPEND="${RDEPEND}"
-S="${WORKDIR}/${MY_P}"
-
-src_install() {
-	dobin re2c
-	doman re2c.1
-	dodoc README CHANGELOG doc/*
-	docinto examples
-	dodoc examples/*.c examples/*.re
-}

diff --git a/dev-util/re2c/re2c-0.16.ebuild b/dev-util/re2c/re2c-0.16.ebuild
deleted file mode 100644
index 072d5819929..00000000000
--- a/dev-util/re2c/re2c-0.16.ebuild
+++ /dev/null
@@ -1,28 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit eutils
-
-DESCRIPTION="tool for generating C-based recognizers from regular expressions"
-HOMEPAGE="http://re2c.org/"
-SRC_URI="https://github.com/skvadrik/re2c/releases/download/${PV}/${P}.tar.gz"
-
-LICENSE="public-domain"
-SLOT="0"
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
-
-src_prepare() {
-	epatch_user
-	export ac_cv_path_BISON="no"
-}
-
-src_install() {
-	default
-
-	docompress -x /usr/share/doc/${PF}/{examples,paper}
-	dodoc -r README CHANGELOG examples
-	docinto paper
-	dodoc doc/loplas.ps doc/sample.bib
-}

diff --git a/dev-util/re2c/re2c-1.0.1.ebuild b/dev-util/re2c/re2c-1.0.1.ebuild
deleted file mode 100644
index f81eb657511..00000000000
--- a/dev-util/re2c/re2c-1.0.1.ebuild
+++ /dev/null
@@ -1,28 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit eutils
-
-DESCRIPTION="tool for generating C-based recognizers from regular expressions"
-HOMEPAGE="http://re2c.org/"
-SRC_URI="https://github.com/skvadrik/re2c/releases/download/${PV}/${P}.tar.gz"
-
-LICENSE="public-domain"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
-
-src_prepare() {
-	default
-	export ac_cv_path_BISON="no"
-}
-
-src_install() {
-	default
-
-	docompress -x /usr/share/doc/${PF}/{examples,paper}
-	dodoc -r README CHANGELOG examples
-	docinto paper
-	dodoc doc/loplas.ps doc/tdfa/tdfa.pdf
-}

diff --git a/dev-util/re2c/re2c-1.0.2.ebuild b/dev-util/re2c/re2c-1.0.2.ebuild
deleted file mode 100644
index bce28d1d081..00000000000
--- a/dev-util/re2c/re2c-1.0.2.ebuild
+++ /dev/null
@@ -1,28 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit eutils
-
-DESCRIPTION="tool for generating C-based recognizers from regular expressions"
-HOMEPAGE="http://re2c.org/"
-SRC_URI="https://github.com/skvadrik/re2c/releases/download/${PV}/${P}.tar.gz"
-
-LICENSE="public-domain"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
-
-src_prepare() {
-	default
-	export ac_cv_path_BISON="no"
-}
-
-src_install() {
-	default
-
-	docompress -x /usr/share/doc/${PF}/{examples,paper}
-	dodoc -r README CHANGELOG examples
-	docinto paper
-	dodoc doc/loplas.ps doc/tdfa/tdfa.pdf
-}

diff --git a/dev-util/re2c/re2c-1.0.3.ebuild b/dev-util/re2c/re2c-1.0.3.ebuild
deleted file mode 100644
index d24154a9111..00000000000
--- a/dev-util/re2c/re2c-1.0.3.ebuild
+++ /dev/null
@@ -1,28 +0,0 @@
-# Copyright 1999-2018 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit eutils
-
-DESCRIPTION="tool for generating C-based recognizers from regular expressions"
-HOMEPAGE="http://re2c.org/"
-SRC_URI="https://github.com/skvadrik/re2c/releases/download/${PV}/${P}.tar.gz"
-
-LICENSE="public-domain"
-SLOT="0"
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
-
-src_prepare() {
-	default
-	export ac_cv_path_BISON="no"
-}
-
-src_install() {
-	default
-
-	docompress -x /usr/share/doc/${PF}/{examples,paper}
-	dodoc -r README CHANGELOG examples
-	docinto paper
-	dodoc doc/loplas.ps doc/tdfa/tdfa.pdf
-}

diff --git a/dev-util/re2c/re2c-1.1-r1.ebuild b/dev-util/re2c/re2c-1.1-r1.ebuild
deleted file mode 100644
index 0599306ecfc..00000000000
--- a/dev-util/re2c/re2c-1.1-r1.ebuild
+++ /dev/null
@@ -1,32 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit eutils
-
-DESCRIPTION="tool for generating C-based recognizers from regular expressions"
-HOMEPAGE="http://re2c.org/"
-SRC_URI="https://github.com/skvadrik/re2c/releases/download/${PV}/${P}.tar.gz"
-
-LICENSE="public-domain"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
-
-PATCHES=(
-	"${FILESDIR}"/${P}-dash-V.patch
-)
-
-src_prepare() {
-	default
-	export ac_cv_path_BISON="no"
-}
-
-src_install() {
-	default
-
-	docompress -x /usr/share/doc/${PF}/{examples,paper}
-	dodoc -r README CHANGELOG examples
-	docinto paper
-	dodoc doc/loplas.ps doc/tdfa/tdfa.pdf
-}


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

* [gentoo-commits] repo/gentoo:master commit in: dev-util/re2c/, dev-util/re2c/files/
@ 2020-04-19 19:11 Sergei Trofimovich
  0 siblings, 0 replies; 3+ messages in thread
From: Sergei Trofimovich @ 2020-04-19 19:11 UTC (permalink / raw
  To: gentoo-commits

commit:     9f09c916426f9ad39d29f800db74c0ced7c8f252
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 19 19:11:05 2020 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sun Apr 19 19:11:25 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f09c916

dev-util/re2c: fix lexer overflow, bug #718350

Direct backport of c4603ba5ce229db ("Fix crash in lexer
refill (reported by Agostino Sarubbo).")

Reported-by: Agostino Sarubbo
Bug: https://bugs.gentoo.org/718350
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 dev-util/re2c/files/re2c-1.3-lexer-overflow.patch | 40 +++++++++++++++++++++++
 dev-util/re2c/re2c-1.3-r1.ebuild                  | 28 ++++++++++++++++
 2 files changed, 68 insertions(+)

diff --git a/dev-util/re2c/files/re2c-1.3-lexer-overflow.patch b/dev-util/re2c/files/re2c-1.3-lexer-overflow.patch
new file mode 100644
index 00000000000..4222ef430c3
--- /dev/null
+++ b/dev-util/re2c/files/re2c-1.3-lexer-overflow.patch
@@ -0,0 +1,40 @@
+https://bugs.gentoo.org/718350
+
+From c4603ba5ce229db83a2a4fb93e6d4b4e3ec3776a Mon Sep 17 00:00:00 2001
+From: Ulya Trofimovich <skvadrik@gmail.com>
+Date: Fri, 17 Apr 2020 22:47:14 +0100
+Subject: [PATCH] Fix crash in lexer refill (reported by Agostino Sarubbo).
+
+The crash happened in a rare case of a very long lexeme that doen't fit
+into the buffer, forcing buffer reallocation.
+
+The crash was caused by an incorrect calculation of the shift offset
+(it was smaller than necessary). As a consequence, the data from buffer
+start and up to the beginning of the current lexeme was not discarded
+(as it should have been), resulting in less free space for new data than
+expected.
+---
+ src/parse/scanner.cc | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+--- a/src/parse/scanner.cc
++++ b/src/parse/scanner.cc
+@@ -155,13 +155,14 @@ bool Scanner::fill(size_t need)
+         if (!buf) fatal("out of memory");
+ 
+         memmove(buf, tok, copy);
+-        shift_ptrs_and_fpos(buf - bot);
++        shift_ptrs_and_fpos(buf - tok);
+         delete [] bot;
+         bot = buf;
+ 
+         free = BSIZE - copy;
+     }
+ 
++    DASSERT(lim + free <= bot + BSIZE);
+     if (!read(free)) {
+         eof = lim;
+         memset(lim, 0, YYMAXFILL);
+-- 
+2.26.1
+

diff --git a/dev-util/re2c/re2c-1.3-r1.ebuild b/dev-util/re2c/re2c-1.3-r1.ebuild
new file mode 100644
index 00000000000..61a196db4c9
--- /dev/null
+++ b/dev-util/re2c/re2c-1.3-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="tool for generating C-based recognizers from regular expressions"
+HOMEPAGE="http://re2c.org/"
+SRC_URI="https://github.com/skvadrik/re2c/releases/download/${PV}/${P}.tar.xz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+IUSE="debug"
+
+PATCHES=("${FILESDIR}"/${P}-lexer-overflow.patch)
+
+src_configure() {
+	econf \
+		ac_cv_path_BISON="no" \
+		$(use_enable debug)
+}
+
+src_install() {
+	default
+
+	docompress -x /usr/share/doc/${PF}/examples
+	dodoc -r README.md CHANGELOG examples
+}


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

end of thread, other threads:[~2020-04-19 19:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-28 19:23 [gentoo-commits] repo/gentoo:master commit in: dev-util/re2c/, dev-util/re2c/files/ Sergei Trofimovich
  -- strict thread matches above, loose matches on Subject: below --
2019-05-03  9:14 Sergei Trofimovich
2020-04-19 19:11 Sergei Trofimovich

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