1DOLLY 72PACKAGE pcre23REQUIRES HOST runtime@045# PCRE2's 8-bit library from upstream's release, unchanged, built by the6# Makefile below from its generic configuration, as projects that vendor it7# do: Unicode properties, no JIT (a Dolly program generates no code). GLib's8# regular expressions are PCRE2's.9FROM /v0.1.4/demos/tools/Dollyfile-tools-build 81e1c1bc8b06c83b1daead6c8f09bc8b1382e8fe165f896a98109396b58bb3051011REQUIRES HEADER libc12REQUIRES TOOL   ar13REQUIRES TOOL   cat14REQUIRES TOOL   cc15REQUIRES TOOL   cp16REQUIRES TOOL   gzip17REQUIRES TOOL   make18REQUIRES TOOL   mkdir19REQUIRES TOOL   tar2021SOURCE /v0.1.4/dist/static/gtk/pcre2-10.49.tar.gz 929f0b20e62879252a15886b06c89f1edef61a363cbd5826fb041080a5e557ae /tmp/pcre2.tar.gz22SLOP CWD /tmp gzip -dc pcre2.tar.gz | tar -xf -23FILE /tmp/pcre2.mk24    .RECIPEPREFIX := >25    .DELETE_ON_ERROR:26    MAKEFLAGS += -r27    P := /tmp/pcre2-10.4928    B := /tmp/pcre2-build29    NAMES := auto_possess chartables chkdint compile compile_cgroup compile_class config context \30      convert dfa_match error extuni find_bracket jit_compile maketables match match_data \31      match_next newline ord2utf pattern_info script_run serialize string_utils study substitute \32      substring tables ucd valid_utf xclass33    OBJECTS := $(addprefix $(B)/,$(addsuffix .o,$(NAMES)))34    CFLAGS := -O2 -DHAVE_CONFIG_H -DPCRE2_CODE_UNIT_WIDTH=8 -I$(B) -I$(P)/src35    all: /usr/lib/libpcre2-8.a /usr/include/pcre2.h36    $(B)/config.h: $(P)/src/config.h.generic37    >mkdir -p $(B)38    >printf '#define HAVE_STDINT_H 1\n#define HAVE_INTTYPES_H 1\n#define HAVE_LIMITS_H 1\n#define HAVE_UNISTD_H 1\n#define HAVE_MEMMOVE 1\n#define HAVE_STRERROR 1\n#define SUPPORT_PCRE2_8 1\n#define SUPPORT_UNICODE 1\n#define PCRE2_STATIC 1\n' > $@39    >cat $< >> $@40    $(B)/pcre2.h: $(P)/src/pcre2.h.generic41    >mkdir -p $(B)42    >cp $< $@43    $(B)/chartables.o: $(P)/src/pcre2_chartables.c.dist $(B)/config.h $(B)/pcre2.h44    >cp $< $(B)/pcre2_chartables.c45    >cc $(CFLAGS) -c $(B)/pcre2_chartables.c -o $@46    $(B)/%.o: $(P)/src/pcre2_%.c $(B)/config.h $(B)/pcre2.h47    >cc $(CFLAGS) -c $< -o $@48    /usr/lib/libpcre2-8.a: $(OBJECTS)49    >ar rcs $@ $^50    /usr/include/pcre2.h: $(B)/pcre2.h51    >cp $< $@52SLOP make -j4 -f /tmp/pcre2.mk53FILE /usr/lib/pkgconfig/libpcre2-8.pc54    prefix=/usr55    libdir=/usr/lib56    includedir=/usr/include57    58    Name: libpcre2-859    Description: PCRE2 with 8-bit character support60    Version: 10.4961    Libs: -L${libdir} -lpcre2-862    Cflags: -I${includedir} -DPCRE2_STATIC6364# A pattern compiled and matched.65FILE /tmp/pcre2-check.c66    #define PCRE2_CODE_UNIT_WIDTH 867    #define PCRE2_STATIC68    #include <pcre2.h>69    #include <stdio.h>70    int main(void) {71      int error;72      PCRE2_SIZE offset;73      pcre2_code *code = pcre2_compile((PCRE2_SPTR)"(\\p{L}+)-(\\d+)", PCRE2_ZERO_TERMINATED, PCRE2_UTF, &error, &offset, NULL);74      pcre2_match_data *data = code ? pcre2_match_data_create_from_pattern(code, NULL) : NULL;75      if (!data || pcre2_match(code, (PCRE2_SPTR)"café-42", PCRE2_ZERO_TERMINATED, 0, 0, data, NULL) != 3) return 1;76      return puts("PCRE2-OK") < 0;77    }78SLOP cc -O1 /tmp/pcre2-check.c -lpcre2-8 -o /tmp/pcre2-check && /tmp/pcre2-check | grep -qx PCRE2-OK7980EXPORTS LIB    pcre2-8 /usr/lib/libpcre2-8.a81EXPORTS HEADER pcre2   /usr/include/pcre2.h82EXPORTS FILE   pcre2-pkgconfig /usr/lib/pkgconfig/libpcre2-8.pc83SLOP mkdir -p /usr/share/licenses/pcre2 && cp /tmp/pcre2-10.49/LICENCE.md /usr/share/licenses/pcre2/84FILE /usr/share/licenses/pcre2/LICENCE.md85