Ports: Add port for pcre

This commit is contained in:
Gunnar Beutner 2021-04-12 01:38:56 +02:00 committed by Andreas Kling
parent f5ccecacc5
commit 97471030e7
Notes: sideshowbarker 2024-07-18 20:21:24 +09:00
4 changed files with 35 additions and 0 deletions

View File

@ -81,6 +81,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^
| [`openssl`](openssl/) | OpenSSL | 1.0.2 | https://www.openssl.org/ |
| [`oksh`](oksh/) | oksh | 6.8.1 | https://github.com/ibara/oksh |
| [`patch`](patch/) | patch (OpenBSD) | 6.6 | https://github.com/ibara/libpuffy |
| [`pcre`](pcre/) | Perl-compatible Regular Expressions (PCRE) | 8.44 | https://www.pcre.org/ |
| [`pcre2`](pcre2/) | Perl-compatible Regular Expressions (PCRE2) | 10.34 | https://www.pcre.org/ |
| [`pkgconf`](pkgconf/) | pkgconf | 1.7.3 | https://github.com/pkgconf/pkgconf |
| [`SDLPoP`](SDLPoP/) | Prince of Persia game | | https://github.com/NagyD/SDLPoP |

10
Ports/pcre/package.sh Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=pcre
version=8.44
useconfigure=true
files="https://ftp.pcre.org/pub/pcre/pcre-${version}.tar.gz pcre-${version}.tar.gz
https://ftp.pcre.org/pub/pcre/pcre-${version}.tar.gz.sig pcre-${version}.tar.gz.sig"
auth_type="sig"
auth_import_key="45F68D54BBE23FB3039B46E59766E084FB0F43D8"
auth_opts="pcre-${version}.tar.gz.sig"

View File

@ -0,0 +1,12 @@
diff -Naur pcre-8.44/config.sub pcre-8.44.serenity/config.sub
--- pcre-8.44/config.sub 2020-02-12 18:17:31.000000000 +0100
+++ pcre-8.44.serenity/config.sub 2021-04-12 01:21:59.467797075 +0200
@@ -1390,7 +1390,7 @@
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
| -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
| -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \
- | -midnightbsd*)
+ | -midnightbsd* | -serenity*)
# Remember, each alternative MUST END IN *, to match a version number.
;;
-qnx*)

View File

@ -0,0 +1,12 @@
diff -Naur pcre-8.44/pcretest.c pcre-8.44.serenity/pcretest.c
--- pcre-8.44/pcretest.c 2020-02-11 18:28:46.000000000 +0100
+++ pcre-8.44.serenity/pcretest.c 2021-04-12 01:23:25.182873375 +0200
@@ -3168,7 +3168,7 @@
((stack_size = get_value((pcre_uint8 *)argv[op+1], &endptr)),
*endptr == 0))
{
-#if defined(_WIN32) || defined(WIN32) || defined(__minix) || defined(NATIVE_ZOS) || defined(__VMS)
+#if defined(_WIN32) || defined(WIN32) || defined(__minix) || defined(NATIVE_ZOS) || defined(__VMS) || defined(__serenity__)
printf("PCRE: -S not supported on this OS\n");
exit(1);
#else