Commit: 29e0ea38cd4cb6815656e1f33c5d58d305bac851
Parent: 5db2b4afa442ef3233f5ff7b9cd6c73c88a5ed76
Author: Randy Palamar
Date: Sun, 8 Oct 2023 11:19:20 -0600
add pcre from oasis
Diffstat:
8 files changed, 143 insertions(+), 0 deletions(-)
diff --git a/pkg/libs/gen.lua b/pkg/libs/gen.lua
@@ -4,4 +4,5 @@ subgen('libtermkey')
subgen('libtls-bearssl')
subgen('lpeg')
subgen('netbsd-curses')
+subgen('pcre')
subgen('zlib')
diff --git a/pkg/libs/pcre/.gitignore b/pkg/libs/pcre/.gitignore
@@ -0,0 +1,2 @@
+/pcre-8.45.tar.gz
+/src
diff --git a/pkg/libs/pcre/README.md b/pkg/libs/pcre/README.md
@@ -0,0 +1,11 @@
+# pcre
+
+## config.h
+Generated with
+
+ ./configure \
+ --disable-cpp \
+ --disable-shared \
+ --enable-jit \
+ --enable-utf8 \
+ --enable-unicode-properties
diff --git a/pkg/libs/pcre/config.h b/pkg/libs/pcre/config.h
@@ -0,0 +1,83 @@
+/* #undef BSR_ANYCRLF */
+/* #undef EBCDIC */
+/* #undef EBCDIC_NL25 */
+#define HAVE_BCOPY 1
+/* #undef HAVE_BITS_TYPE_TRAITS_H */
+/* #undef HAVE_BZLIB_H */
+#define HAVE_DIRENT_H 1
+#define HAVE_DLFCN_H 1
+/* #undef HAVE_EDITLINE_READLINE_H */
+/* #undef HAVE_EDIT_READLINE_READLINE_H */
+#define HAVE_INTTYPES_H 1
+#define HAVE_LIMITS_H 1
+/* #undef HAVE_LONG_LONG */
+#define HAVE_MEMMOVE 1
+#define HAVE_PTHREAD 1
+#define HAVE_PTHREAD_PRIO_INHERIT 1
+/* #undef HAVE_READLINE_HISTORY_H */
+/* #undef HAVE_READLINE_READLINE_H */
+#define HAVE_STDINT_H 1
+#define HAVE_STDIO_H 1
+#define HAVE_STDLIB_H 1
+#define HAVE_STRERROR 1
+/* #undef HAVE_STRING */
+#define HAVE_STRINGS_H 1
+#define HAVE_STRING_H 1
+/* #undef HAVE_STRTOIMAX */
+/* #undef HAVE_STRTOLL */
+/* #undef HAVE_STRTOQ */
+#define HAVE_SYS_STAT_H 1
+#define HAVE_SYS_TYPES_H 1
+/* #undef HAVE_TYPE_TRAITS_H */
+#define HAVE_UNISTD_H 1
+/* #undef HAVE_UNSIGNED_LONG_LONG */
+#define HAVE_VISIBILITY 1
+/* #undef HAVE_WINDOWS_H */
+/* #undef HAVE_ZLIB_H */
+/* #undef HAVE__STRTOI64 */
+#define LINK_SIZE 2
+#define LT_OBJDIR ".libs/"
+#define MATCH_LIMIT 10000000
+#define MATCH_LIMIT_RECURSION MATCH_LIMIT
+#define MAX_NAME_COUNT 10000
+#define MAX_NAME_SIZE 32
+#define NEWLINE 10
+/* #undef NO_RECURSE */
+#define PACKAGE "pcre"
+#define PACKAGE_BUGREPORT ""
+#define PACKAGE_NAME "PCRE"
+#define PACKAGE_STRING "PCRE 8.45"
+#define PACKAGE_TARNAME "pcre"
+#define PACKAGE_URL ""
+#define PACKAGE_VERSION "8.45"
+#define PARENS_NEST_LIMIT 250
+#define PCRECPP_EXP_DECL extern __attribute__ ((visibility ("default")))
+#define PCRECPP_EXP_DEFN __attribute__ ((visibility ("default")))
+#define PCREGREP_BUFSIZE 20480
+#define PCREPOSIX_EXP_DECL extern __attribute__ ((visibility ("default")))
+#define PCREPOSIX_EXP_DEFN extern __attribute__ ((visibility ("default")))
+#define PCRE_EXP_DATA_DEFN __attribute__ ((visibility ("default")))
+#define PCRE_EXP_DECL extern __attribute__ ((visibility ("default")))
+#define PCRE_EXP_DEFN __attribute__ ((visibility ("default")))
+#define PCRE_STATIC 1
+#define POSIX_MALLOC_THRESHOLD 10
+/* #undef PTHREAD_CREATE_JOINABLE */
+#define STDC_HEADERS 1
+#ifdef __GNUC__
+#define SUPPORT_JIT /**/
+#endif
+/* #undef SUPPORT_LIBBZ2 */
+/* #undef SUPPORT_LIBEDIT */
+/* #undef SUPPORT_LIBREADLINE */
+/* #undef SUPPORT_LIBZ */
+/* #undef SUPPORT_PCRE16 */
+/* #undef SUPPORT_PCRE32 */
+#define SUPPORT_PCRE8 /**/
+#define SUPPORT_PCREGREP_JIT /**/
+#define SUPPORT_UCP /**/
+#define SUPPORT_UTF /**/
+/* #undef SUPPORT_VALGRIND */
+#define VERSION "8.45"
+/* #undef const */
+/* #undef int64_t */
+/* #undef size_t */
diff --git a/pkg/libs/pcre/gen.lua b/pkg/libs/pcre/gen.lua
@@ -0,0 +1,43 @@
+cflags({
+ '-D HAVE_CONFIG_H',
+ '-I $dir',
+ '-I $srcdir',
+ '-I $outdir/include',
+})
+
+build('sed', '$outdir/include/pcre.h', '$srcdir/pcre.h.in', {
+ expr={
+ '-e s,@PCRE_MAJOR@,8,',
+ '-e s,@PCRE_MINOR@,43,',
+ '-e s,@PCRE_PRERELEASE@,,',
+ '-e s,@PCRE_DATE@,2019-02-23,',
+ },
+})
+pkg.hdrs = {'$outdir/include/pcre.h'}
+
+build('copy', '$outdir/pcre_chartables.c', '$srcdir/pcre_chartables.c.dist')
+lib('libpcre.a', {
+ 'pcre_byte_order.c',
+ 'pcre_compile.c',
+ 'pcre_config.c',
+ 'pcre_dfa_exec.c',
+ 'pcre_exec.c',
+ 'pcre_fullinfo.c',
+ 'pcre_get.c',
+ 'pcre_globals.c',
+ 'pcre_jit_compile.c',
+ 'pcre_maketables.c',
+ 'pcre_newline.c',
+ 'pcre_ord2utf8.c',
+ 'pcre_refcount.c',
+ 'pcre_string_utils.c',
+ 'pcre_study.c',
+ 'pcre_tables.c',
+ 'pcre_ucd.c',
+ 'pcre_valid_utf8.c',
+ 'pcre_version.c',
+ 'pcre_xclass.c',
+ '$outdir/pcre_chartables.c',
+}, {'$gendir/headers'})
+
+fetch('curl')
diff --git a/pkg/libs/pcre/sha256 b/pkg/libs/pcre/sha256
@@ -0,0 +1 @@
+4e6ce03e0336e8b4a3d6c2b70b1c5e18590a5673a98186da90d4f33c23defc09 pcre-8.45.tar.gz
diff --git a/pkg/libs/pcre/url b/pkg/libs/pcre/url
@@ -0,0 +1 @@
+url = "https://sourceforge.net/projects/pcre/files/pcre/8.45/pcre-8.45.tar.gz"
diff --git a/pkg/libs/pcre/ver b/pkg/libs/pcre/ver
@@ -0,0 +1 @@
+8.45 r0