1 |
commit: 14f27d0d83dbcb6b2aaddbd62c5394054b159967 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 1 09:48:14 2021 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 1 09:48:14 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14f27d0d |
7 |
|
8 |
dev-util/re2c: bump up to 2.2 |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
12 |
|
13 |
dev-util/re2c/Manifest | 1 + |
14 |
dev-util/re2c/re2c-2.2.ebuild | 40 ++++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 41 insertions(+) |
16 |
|
17 |
diff --git a/dev-util/re2c/Manifest b/dev-util/re2c/Manifest |
18 |
index 5b03f7a2db8..705c45b9de4 100644 |
19 |
--- a/dev-util/re2c/Manifest |
20 |
+++ b/dev-util/re2c/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST re2c-2.1.1.tar.xz 1340740 BLAKE2B e0e3cdb7ea78324467a8fe3161fe9b0cc1eb44baf9a554b892e1f7f8b8d089e8dca58da347527c595881e1119344858694c133ba0f1676424914f6518adbf4f4 SHA512 13edbe961e0482677aff52ada93129500c10e134b579365f1d0cd180a898251f3060f1fe0597fc6c900c0ea29b1eb28fc2519b0ebfa2ed496a777bf7e138feae |
23 |
+DIST re2c-2.2.tar.xz 1460740 BLAKE2B f9e5920cb31c7ae8fa9f880be30513eee33ad23bcc7d44b24bbcb93376e13b092f6d0bee3304e49f87430be54b868c43115592a2accfdd94cda0d789b234f43b SHA512 8c4f18fa9a2ef6b0b5c03b73b8b7deafcbd7b17baf72e0008c9344296fcb0abeee6024d4a78ccb15b090e37ae67ddd6f2a68b4932331096328530612112ee37a |
24 |
|
25 |
diff --git a/dev-util/re2c/re2c-2.2.ebuild b/dev-util/re2c/re2c-2.2.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..2c4d64c1931 |
28 |
--- /dev/null |
29 |
+++ b/dev-util/re2c/re2c-2.2.ebuild |
30 |
@@ -0,0 +1,40 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{8,9,10} ) |
37 |
+ |
38 |
+inherit autotools python-any-r1 |
39 |
+ |
40 |
+DESCRIPTION="tool for generating C-based recognizers from regular expressions" |
41 |
+HOMEPAGE="http://re2c.org/" |
42 |
+SRC_URI="https://github.com/skvadrik/re2c/releases/download/${PV}/${P}.tar.xz" |
43 |
+ |
44 |
+LICENSE="public-domain" |
45 |
+SLOT="0" |
46 |
+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 ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
47 |
+IUSE="debug test" |
48 |
+ |
49 |
+RESTRICT="!test? ( test )" |
50 |
+ |
51 |
+# python is used only as a test driver |
52 |
+BDEPEND="test? ( ${PYTHON_DEPS} )" |
53 |
+ |
54 |
+pkg_setup() { |
55 |
+ use test && python-any-r1_pkg_setup |
56 |
+} |
57 |
+ |
58 |
+src_configure() { |
59 |
+ econf \ |
60 |
+ --enable-golang \ |
61 |
+ ac_cv_path_BISON="no" \ |
62 |
+ $(use_enable debug) |
63 |
+} |
64 |
+ |
65 |
+src_install() { |
66 |
+ default |
67 |
+ |
68 |
+ docompress -x /usr/share/doc/${PF}/examples |
69 |
+ dodoc -r README.md CHANGELOG examples |
70 |
+} |