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

Collapse All | Expand All

(-)b/devel/pcre2/Makefile (-33 / +36 lines)
Lines 1-8 Link Here
1
PORTNAME=	pcre2
1
PORTNAME=	pcre2
2
DISTVERSION=	10.43
2
DISTVERSION=	10.44
3
CATEGORIES=	devel
3
CATEGORIES=	devel
4
MASTER_SITES=	https://github.com/PCRE2Project/${PORTNAME}/releases/download/${PORTNAME}-${DISTVERSION}/
4
MASTER_SITES=	https://github.com/PCRE2Project/${PORTNAME}/releases/download/${PORTNAME}-${DISTVERSION}/
5
5
6
PATCH_SITES=	https://github.com/PCRE2Project/pcre2/commit/
7
PATCHFILES=	fba4a6a5e8a7895db7e0efcbcdb7087a04a00322.patch:-p1
8
6
MAINTAINER=	krion@FreeBSD.org
9
MAINTAINER=	krion@FreeBSD.org
7
COMMENT=	Perl Compatible Regular Expressions library, version 2
10
COMMENT=	Perl Compatible Regular Expressions library, version 2
8
WWW=		https://www.pcre.org/
11
WWW=		https://www.pcre.org/
Lines 10-46 WWW= https://www.pcre.org/ Link Here
10
LICENSE=	BSD3CLAUSE
13
LICENSE=	BSD3CLAUSE
11
LICENSE_FILE=	${WRKSRC}/LICENCE
14
LICENSE_FILE=	${WRKSRC}/LICENCE
12
15
13
USES=		autoreconf cpe libtool pkgconfig tar:bz2
16
USES=		cmake:testing cpe pathfix pkgconfig tar:bz2
14
CPE_VENDOR=	pcre
17
CPE_VENDOR=	pcre
15
18
16
USE_LDCONFIG=	yes
19
USE_LDCONFIG=	yes
17
20
18
GNU_CONFIGURE=			yes
21
CMAKE_TESTING_ON=	PCRE2_BUILD_TESTS
19
GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share
22
CMAKE_OFF=		PCRE2_BUILD_TESTS
20
CONFIGURE_ARGS=			--enable-pcre2-16 \
23
CMAKE_ON=		BUILD_SHARED_LIBS \
21
				--enable-pcre2-32
24
			PCRE2_BUILD_PCRE2_16 \
22
INSTALL_TARGET=			install-strip
25
			PCRE2_BUILD_PCRE2_32
23
26
24
OPTIONS_DEFINE=		DOCS LIBBZ2 LIBZ
27
OPTIONS_DEFINE=		DOCS LIBBZ2 LIBZ STATIC
25
OPTIONS_RADIO=		CLI
28
OPTIONS_RADIO=		CLI
26
OPTIONS_RADIO_CLI=	LIBEDIT READLINE
29
OPTIONS_RADIO_CLI=	LIBEDIT READLINE
30
OPTIONS_SUB=		yes
27
31
28
LIBBZ2_DESC=	Using pcre2grep with .bz2 files
32
LIBBZ2_DESC=	Using pcre2grep with .bz2 files
29
LIBZ_DESC=	Using pcre2grep with .gz files
33
LIBZ_DESC=	Using pcre2grep with .gz files
30
34
31
LIBBZ2_CONFIGURE_ON=		--enable-pcre2grep-libbz2
35
LIBBZ2_CMAKE_OFF=	-DCMAKE_DISABLE_FIND_PACKAGE_BZip2:BOOL=True
32
LIBEDIT_USES=			libedit
36
33
LIBEDIT_CONFIGURE_ENABLE=	pcre2test-libedit
37
LIBEDIT_USES=		libedit
34
LIBZ_CONFIGURE_ON=		--enable-pcre2grep-libz
38
LIBEDIT_CMAKE_OFF=	-DCMAKE_DISABLE_FIND_PACKAGE_Editline:BOOL=True
35
READLINE_USES=			readline
39
36
READLINE_CONFIGURE_ENABLE=	pcre2test-libreadline
40
LIBZ_CMAKE_OFF=		-DCMAKE_DISABLE_FIND_PACKAGE_ZLIB:BOOL=True
41
42
READLINE_USES=		readline
43
READLINE_CMAKE_OFF=	-DCMAKE_DISABLE_FIND_PACKAGE_Readline:BOOL=True
44
45
STATIC_CMAKE_BOOL=	BUILD_STATIC_LIBS
37
46
38
.include <bsd.port.options.mk>
47
.include <bsd.port.options.mk>
39
48
40
.if ${ARCH:Mmips64*} == "" && ${ARCH:Mriscv64*} == ""
49
.if ${ARCH:Mmips64*} == "" && ${ARCH:Mriscv64*} == ""
41
CONFIGURE_ARGS+=	--enable-jit
50
CMAKE_ON+=	PCRE2_SUPPORT_JIT
42
.else
51
.else
43
CONFIGURE_ARGS+=	--disable-jit
52
CMAKE_OFF+=	PCRE2_SUPPORT_JIT
44
.endif
53
.endif
45
54
46
.if ${PORT_OPTIONS:MDOCS}
55
.if ${PORT_OPTIONS:MDOCS}
Lines 53-85 PORTDOCS= * Link Here
53
# libraries, at the expense of longer load times (possible values:
62
# libraries, at the expense of longer load times (possible values:
54
# 2 (default), 3, and 4):
63
# 2 (default), 3, and 4):
55
.if defined(WITH_LINK_SIZE)
64
.if defined(WITH_LINK_SIZE)
56
CONFIGURE_ARGS+=	--with-link-size=${WITH_LINK_SIZE}
65
CMAKE_ARGS+=	-DPCRE2_LINK_SIZE:STRING=${WITH_LINK_SIZE}
57
.endif
66
.endif
58
67
59
# Control PCRE resource use by limiting the default number of times pcre_exec()
68
# Control PCRE resource use by limiting the default number of times pcre_exec()
60
# can call match() during a single operation (default: 10 million):
69
# can call match() during a single operation (default: 10 million):
61
.if defined(WITH_MATCH_LIMIT)
70
.if defined(WITH_MATCH_LIMIT)
62
CONFIGURE_ARGS+=	--with-match-limit=${WITH_MATCH_LIMIT}
71
CMAKE_ARGS+=	-DPCRE2_MATCH_LIMIT:STRING=${WITH_MATCH_LIMIT}
72
.endif
73
74
# This limit applies to all backtracks, whether or not they are nested. In
75
# some environments it is desirable to limit the nesting of backtracking (that
76
# is, the depth of tree that is searched) more strictly, in order to restrict
77
# the maximum amount of heap memory that is used (default: 10 million):
78
.if defined(WITH_MATCH_LIMIT_DEPTH)
79
CMAKE_ARGS+=	-DPCRE2_MATCH_LIMIT_DEPTH:STRING=${WITH_MATCH_LIMIT_DEPTH}
63
.endif
80
.endif
64
81
65
# Control PCRE resource use by limiting the nesting depth of parentheses in
82
# Control PCRE resource use by limiting the nesting depth of parentheses in
66
# patterns compiled with pcre_compile() (default: 250):
83
# patterns compiled with pcre_compile() (default: 250):
67
.if defined(WITH_PARENS_NEST_LIMIT)
84
.if defined(WITH_PARENS_NEST_LIMIT)
68
CONFIGURE_ARGS+=	--with-parens-nest-limit=${WITH_PARENS_NEST_LIMIT}
85
CMAKE_ARGS+=	-DPCRE2_PARENS_NEST_LIMIT:STRING=${WITH_PARENS_NEST_LIMIT}
69
.endif
70
71
#prevent regression test coredumps from causing failures on the
72
#package-building cluster:
73
.ifndef (MAINTAINER_MODE)
74
CORELIMIT?=	/usr/bin/limits -Sc 0
75
.endif
86
.endif
76
TESTLOGS?=	RunGrepTest RunTest pcre_jit_test pcre_scanner_unittest \
77
		pcre_stringpiece_unittest pcrecpp_unittest
78
79
do-test:
80
	@cd ${WRKSRC} ; \
81
	${SETENV} ${MAKE_ENV} ${CORELIMIT} ${MAKE_CMD} ${MAKE_ARGS} check ; \
82
	for _l in ${TESTLOGS} ; do if ${TEST} -f $${_l}.log ; then \
83
	${PRINTF} "\n\n$${_l}.log\n\n\n" ; ${CAT} $${_l}.log ; fi ; done
84
87
85
.include <bsd.port.mk>
88
.include <bsd.port.mk>
(-)b/devel/pcre2/distinfo (-3 / +5 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1708425567
1
TIMESTAMP = 1717777964
2
SHA256 (pcre2-10.43.tar.bz2) = e2a53984ff0b07dfdb5ae4486bbb9b21cca8e7df2434096cc9bf1b728c350bcb
2
SHA256 (pcre2-10.44.tar.bz2) = d34f02e113cf7193a1ebf2770d3ac527088d485d4e047ed10e5d217c6ef5de96
3
SIZE (pcre2-10.43.tar.bz2) = 1905255
3
SIZE (pcre2-10.44.tar.bz2) = 1928086
4
SHA256 (fba4a6a5e8a7895db7e0efcbcdb7087a04a00322.patch) = e31e16744f7e0e9294ba0d91dc1722085e61f995c34d79ac1580de69edf861bd
5
SIZE (fba4a6a5e8a7895db7e0efcbcdb7087a04a00322.patch) = 1141
(-)a/devel/pcre2/files/patch-Makefile.am (-11 lines)
Removed Link Here
1
--- Makefile.am.orig	2015-08-25 16:56:39 UTC
2
+++ Makefile.am
3
@@ -646,7 +646,7 @@ EXTRA_DIST += src/pcre2demo.c
4
 
5
 # We have .pc files for pkg-config users.
6
 
7
-pkgconfigdir = $(libdir)/pkgconfig
8
+pkgconfigdir = $(libdir)data/pkgconfig
9
 pkgconfig_DATA =
10
 
11
 if WITH_PCRE2_8
(-)b/devel/pcre2/pkg-plist (-8 / +10 lines)
Lines 1-21 Link Here
1
bin/pcre2-config
1
bin/pcre2-config
2
bin/pcre2grep
2
bin/pcre2grep
3
bin/pcre2test
4
include/pcre2.h
3
include/pcre2.h
5
include/pcre2posix.h
4
include/pcre2posix.h
6
lib/libpcre2-16.a
5
lib/cmake/pcre2/pcre2-config-version.cmake
6
lib/cmake/pcre2/pcre2-config.cmake
7
%%STATIC%%lib/libpcre2-16.a
7
lib/libpcre2-16.so
8
lib/libpcre2-16.so
8
lib/libpcre2-16.so.0
9
lib/libpcre2-16.so.0
9
lib/libpcre2-16.so.0.12.0
10
lib/libpcre2-16.so.0.13.0
10
lib/libpcre2-32.a
11
%%STATIC%%lib/libpcre2-32.a
11
lib/libpcre2-32.so
12
lib/libpcre2-32.so
12
lib/libpcre2-32.so.0
13
lib/libpcre2-32.so.0
13
lib/libpcre2-32.so.0.12.0
14
lib/libpcre2-32.so.0.13.0
14
lib/libpcre2-8.a
15
%%STATIC%%lib/libpcre2-8.a
15
lib/libpcre2-8.so
16
lib/libpcre2-8.so
16
lib/libpcre2-8.so.0
17
lib/libpcre2-8.so.0
17
lib/libpcre2-8.so.0.12.0
18
lib/libpcre2-8.so.0.13.0
18
lib/libpcre2-posix.a
19
%%STATIC%%lib/libpcre2-posix.a
19
lib/libpcre2-posix.so
20
lib/libpcre2-posix.so
20
lib/libpcre2-posix.so.3
21
lib/libpcre2-posix.so.3
21
lib/libpcre2-posix.so.3.0.5
22
lib/libpcre2-posix.so.3.0.5
Lines 82-87 share/man/man3/pcre2_set_glob_escape.3.gz Link Here
82
share/man/man3/pcre2_set_glob_separator.3.gz
83
share/man/man3/pcre2_set_glob_separator.3.gz
83
share/man/man3/pcre2_set_heap_limit.3.gz
84
share/man/man3/pcre2_set_heap_limit.3.gz
84
share/man/man3/pcre2_set_match_limit.3.gz
85
share/man/man3/pcre2_set_match_limit.3.gz
86
share/man/man3/pcre2_set_max_pattern_compiled_length.3.gz
85
share/man/man3/pcre2_set_max_pattern_length.3.gz
87
share/man/man3/pcre2_set_max_pattern_length.3.gz
86
share/man/man3/pcre2_set_max_varlookbehind.3.gz
88
share/man/man3/pcre2_set_max_varlookbehind.3.gz
87
share/man/man3/pcre2_set_newline.3.gz
89
share/man/man3/pcre2_set_newline.3.gz

Return to bug 251642