mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-26 20:55:35 +03:00
Ports: Add port for pcre
This commit is contained in:
parent
f5ccecacc5
commit
97471030e7
Notes:
sideshowbarker
2024-07-18 20:21:24 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/97471030e7b Pull-request: https://github.com/SerenityOS/serenity/pull/6253
@ -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
10
Ports/pcre/package.sh
Executable 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"
|
12
Ports/pcre/patches/fix-autoconf.patch
Normal file
12
Ports/pcre/patches/fix-autoconf.patch
Normal 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*)
|
12
Ports/pcre/patches/fix-rlimit.patch
Normal file
12
Ports/pcre/patches/fix-rlimit.patch
Normal 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
|
Loading…
Reference in New Issue
Block a user