View | Details | Raw Unified | Return to bug 257966 | Differences between
and this patch

Collapse All | Expand All

(-)b/devel/re2c/Makefile (-14 / +26 lines)
Lines 1-32 Link Here
1
# Created by: Eivind Eklund <eivind@FreeBSD.org>
1
# Created by: Eivind Eklund <eivind@FreeBSD.org>
2
2
3
PORTNAME=	re2c
3
PORTNAME=	re2c
4
PORTVERSION=	0.14.3
4
DISTVERSION=	2.2
5
CATEGORIES=	devel
5
CATEGORIES=	devel
6
MASTER_SITES=	SF/${PORTNAME}/${PORTVERSION}
6
MASTER_SITES=	https://github.com/skvadrik/${PORTNAME}/releases/download/${DISTVERSION}/
7
7
8
MAINTAINER=	chalpin@cs.wisc.edu
8
MAINTAINER=	chalpin@cs.wisc.edu
9
COMMENT=	Compile regular expression to C (much faster final code than flex)
9
COMMENT=	Lexer generator for C, C++ and Go with a focus on generating fast code
10
10
11
LICENSE=	PD
11
LICENSE=	PD
12
12
13
USES=		cpe
13
TEST_DEPENDS=	bash:shells/bash
14
14
15
OPTIONS_DEFINE=	DOCS EXAMPLES
15
USES=	cpe cmake python:3.6+,test tar:xz
16
16
17
GNU_CONFIGURE=	yes
17
TEST_TARGET=	check
18
TEST_USES=	shebangfix
19
SHEBANG_FILES=	test/posix_captures/.run/__run.sh \
20
		test/posix_captures/.gen/__gen.sh \
21
		test/__run_unicode_tests.sh
18
22
19
PLIST_FILES=	bin/re2c \
23
OPTIONS_DEFINE=		DOCS EXAMPLES LIBRE2C RE2GO
20
		man/man1/re2c.1.gz
24
OPTIONS_DEFAULT=	RE2GO
21
PORTDOCS=	*
25
OPTIONS_SUB=		yes
22
PORTEXAMPLES=	*
26
27
LIBRE2C_DESC=		Build libre2c (Experimental)
28
RE2GO_DESC=		Build RE2GO (identical to re2c --lang go)
29
30
DOCS_BUILD_DEPENDS=	bison:devel/bison \
31
			rst2man:textproc/py-docutils
32
DOCS_CMAKE_BOOL=	RE2C_REBUILD_DOCS
33
LIBRE2C_CMAKE_BOOL=	RE2C_BUILD_LIBS BUILD_SHARED_LIBS
34
RE2GO_CMAKE_BOOL=	RE2C_BUILD_RE2GO
23
35
24
post-install-DOCS-on:
36
post-install-DOCS-on:
25
	@${MKDIR} ${STAGEDIR}${DOCSDIR}/
37
	${MKDIR} ${STAGEDIR}${DOCSDIR}
26
	(cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/)
38
	(cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
27
39
28
post-install-EXAMPLES-on:
40
post-install-EXAMPLES-on:
29
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/
41
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
30
	(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/)
42
	(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
31
43
32
.include <bsd.port.mk>
44
.include <bsd.port.mk>
(-)b/devel/re2c/distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (re2c-0.14.3.tar.gz) = 1c6806df599f3aef0804b576cfdf64bdba5ad590626dfca2d44e473460917e84
1
TIMESTAMP = 1632787083
2
SIZE (re2c-0.14.3.tar.gz) = 2576859
2
SHA256 (re2c-2.2.tar.xz) = 0fc45e4130a8a555d68e230d1795de0216dfe99096b61b28e67c86dfd7d86bda
3
SIZE (re2c-2.2.tar.xz) = 1460740
(-)b/devel/re2c/pkg-descr (-7 / +11 lines)
Lines 1-8 Link Here
1
re2c is a tool for generating C-based recognizers from regular
1
Re2c is a free and open-source lexer generator for C, C++ and Go with a
2
expressions.  re2c-based scanners are efficient:  for programming
2
focus on generating fast code. It compiles regular expression
3
languages, given similar specifications, an re2c-based scanner is
3
specifications to deterministic finite automata and encodes them in the
4
typically almost twice as fast as a flex-based scanner with little or no
4
form of conditional jumps in the target language. This approach is
5
increase in size (possibly a decrease on cisc architectures).  Indeed,
5
generally faster than table-based lexers, and the generated code is easier
6
re2c-based scanners are quite competitive with hand-crafted ones.
6
to debug and understand. A flexible user interface allows one to adapt the
7
generated lexer to a particular environment and input model, avoiding the
8
overhead on unnecessary checks and buffers. Re2c is based on the lookahead
9
TDFA algorithm that allows it to perform fast and lightweight submatch
10
extraction.
7
11
8
WWW: http://re2c.org/
12
WWW: https://re2c.org/
(-)b/devel/re2c/pkg-plist (+152 lines)
Added Link Here
1
bin/re2c
2
%%RE2GO%%bin/re2go
3
%%LIBRE2C%%lib/libre2c.so
4
%%PORTDOCS%%%%DOCSDIR%%/help.rst
5
%%PORTDOCS%%%%DOCSDIR%%/help.rst.in
6
%%PORTDOCS%%%%DOCSDIR%%/manpage.rst.in
7
%%PORTDOCS%%%%DOCSDIR%%/manual/api/interface.rst_
8
%%PORTDOCS%%%%DOCSDIR%%/manual/conditions/conditions.rst_
9
%%PORTDOCS%%%%DOCSDIR%%/manual/configurations/configurations.rst_
10
%%PORTDOCS%%%%DOCSDIR%%/manual/directives/directives.rst_
11
%%PORTDOCS%%%%DOCSDIR%%/manual/dot/dot.rst_
12
%%PORTDOCS%%%%DOCSDIR%%/manual/encodings/encodings.rst_
13
%%PORTDOCS%%%%DOCSDIR%%/manual/eof/01_sentinel.rst_
14
%%PORTDOCS%%%%DOCSDIR%%/manual/eof/02_bounds_checking.rst_
15
%%PORTDOCS%%%%DOCSDIR%%/manual/eof/03_eof_rule.rst_
16
%%PORTDOCS%%%%DOCSDIR%%/manual/eof/04_generic_api.rst_
17
%%PORTDOCS%%%%DOCSDIR%%/manual/eof/eof.rst_
18
%%PORTDOCS%%%%DOCSDIR%%/manual/fill/01_fill.rst_
19
%%PORTDOCS%%%%DOCSDIR%%/manual/fill/02_fill.rst_
20
%%PORTDOCS%%%%DOCSDIR%%/manual/fill/fill.rst_
21
%%PORTDOCS%%%%DOCSDIR%%/manual/headers/headers.rst_
22
%%PORTDOCS%%%%DOCSDIR%%/manual/includes/includes.rst_
23
%%PORTDOCS%%%%DOCSDIR%%/manual/options/debug.rst_
24
%%PORTDOCS%%%%DOCSDIR%%/manual/options/internal.rst_
25
%%PORTDOCS%%%%DOCSDIR%%/manual/options/options.rst_
26
%%PORTDOCS%%%%DOCSDIR%%/manual/regexps/regular_expressions.rst_
27
%%PORTDOCS%%%%DOCSDIR%%/manual/reuse/reuse.rst_
28
%%PORTDOCS%%%%DOCSDIR%%/manual/skeleton/skeleton.rst_
29
%%PORTDOCS%%%%DOCSDIR%%/manual/state/state.rst_
30
%%PORTDOCS%%%%DOCSDIR%%/manual/submatch/submatch.rst_
31
%%PORTDOCS%%%%DOCSDIR%%/manual/submatch/submatch_example_mtags.rst_
32
%%PORTDOCS%%%%DOCSDIR%%/manual/submatch/submatch_example_posix.rst_
33
%%PORTDOCS%%%%DOCSDIR%%/manual/submatch/submatch_example_stags.rst_
34
%%PORTDOCS%%%%DOCSDIR%%/manual/submatch/submatch_example_stags_fill.rst_
35
%%PORTDOCS%%%%DOCSDIR%%/manual/syntax/api1.rst_
36
%%PORTDOCS%%%%DOCSDIR%%/manual/syntax/api2_c.rst_
37
%%PORTDOCS%%%%DOCSDIR%%/manual/syntax/api2_go.rst_
38
%%PORTDOCS%%%%DOCSDIR%%/manual/syntax/api3.rst_
39
%%PORTDOCS%%%%DOCSDIR%%/manual/syntax/syntax.rst_
40
%%PORTDOCS%%%%DOCSDIR%%/manual/warnings/warnings_general.rst_
41
%%PORTDOCS%%%%DOCSDIR%%/manual/warnings/warnings_list.rst_
42
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/01_basic.c
43
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/01_basic.re
44
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/__run_all.sh
45
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/conditions/parse_u32_blocks.c
46
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/conditions/parse_u32_blocks.re
47
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/conditions/parse_u32_conditions.c
48
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/conditions/parse_u32_conditions.re
49
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/encodings/unicode_identifier.c
50
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/encodings/unicode_identifier.re
51
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/eof/01_sentinel.c
52
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/eof/01_sentinel.re
53
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/eof/02_bounds_checking.c
54
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/eof/02_bounds_checking.re
55
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/eof/03_eof_rule.c
56
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/eof/03_eof_rule.re
57
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/eof/04_generic_api_sentinel.c
58
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/eof/04_generic_api_sentinel.re
59
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/eof/05_generic_api_eof_rule.c
60
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/eof/05_generic_api_eof_rule.re
61
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/fill/01_fill.c
62
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/fill/01_fill.re
63
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/fill/02_fill.c
64
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/fill/02_fill.re
65
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/generic_api/ifstream.c
66
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/generic_api/ifstream.re
67
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/headers/header.c
68
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/headers/header.re
69
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/headers/src/lexer/lexer.h
70
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/includes/definitions.h
71
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/includes/extra_rules.re.inc
72
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/includes/include.c
73
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/includes/include.re
74
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/real_world/cxx98.c
75
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/real_world/cxx98.re
76
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/reuse/braille.c
77
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/reuse/braille.re
78
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/reuse/braille.ucs2.txt
79
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/reuse/braille.utf16.txt
80
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/reuse/braille.utf32.txt
81
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/reuse/braille.utf8.txt
82
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/reuse/reuse.c
83
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/reuse/reuse.re
84
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/reuse/usedir.c
85
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/reuse/usedir.re
86
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/state/push.c
87
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/state/push.re
88
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/submatch/01_stags.c
89
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/submatch/01_stags.re
90
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/submatch/01_stags_fill.c
91
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/submatch/01_stags_fill.re
92
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/submatch/02_mtags.c
93
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/submatch/02_mtags.re
94
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/submatch/03_posix.c
95
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/submatch/03_posix.re
96
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/submatch/http_rfc7230.c
97
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/submatch/http_rfc7230.re
98
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/submatch/parse_etc_passwd.c
99
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/submatch/parse_etc_passwd.re
100
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/submatch/parse_options.c
101
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/submatch/parse_options.re
102
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/submatch/parse_records.c
103
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/submatch/parse_records.re
104
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/submatch/uri_rfc3986.c
105
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/c/submatch/uri_rfc3986.re
106
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/01_basic.go
107
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/01_basic.re
108
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/__run_all.sh
109
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/conditions/parse_u32_blocks.go
110
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/conditions/parse_u32_blocks.re
111
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/conditions/parse_u32_conditions.go
112
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/conditions/parse_u32_conditions.re
113
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/encodings/unicode_identifier.go
114
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/encodings/unicode_identifier.re
115
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/eof/01_sentinel.go
116
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/eof/01_sentinel.re
117
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/eof/02_bounds_checking.go
118
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/eof/02_bounds_checking.re
119
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/eof/03_eof_rule.go
120
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/eof/03_eof_rule.re
121
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/eof/04_generic_api_sentinel.go
122
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/eof/04_generic_api_sentinel.re
123
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/eof/05_generic_api_eof_rule.go
124
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/eof/05_generic_api_eof_rule.re
125
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/fill/01_fill.go
126
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/fill/01_fill.re
127
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/fill/02_fill.go
128
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/fill/02_fill.re
129
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/headers/header.go
130
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/headers/header.re
131
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/headers/src/lexer/lexer.go
132
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/includes/definitions.go
133
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/includes/extra_rules.re.inc
134
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/includes/include.go
135
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/includes/include.re
136
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/reuse/reuse.go
137
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/reuse/reuse.re
138
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/reuse/usedir.go
139
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/reuse/usedir.re
140
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/state/push.go
141
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/state/push.re
142
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/submatch/01_stags.go
143
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/submatch/01_stags.re
144
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/submatch/01_stags_fill.go
145
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/submatch/01_stags_fill.re
146
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/submatch/02_mtags.go
147
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/submatch/02_mtags.re
148
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/submatch/03_posix.go
149
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/go/submatch/03_posix.re
150
share/man/man1/re2c.1.gz
151
%%RE2GO%%share/man/man1/re2go.1.gz
152
%%DATADIR%%/stdlib/unicode_categories.re

Return to bug 257966