pantry/projects/pcre.org/package.yml
2023-10-01 20:41:57 -04:00

41 lines
1,022 B
YAML

distributable:
#FIXME certs issue
# url: https://downloads.sourceforge.net/project/pcre/pcre/{{ version.raw }}/pcre-{{ version.raw }}.tar.bz2
url: https://cytranet.dl.sourceforge.net/project/pcre/pcre/{{ version.raw }}/pcre-{{ version.raw }}.tar.bz2
strip-components: 1
# commonly called PCRE2 starts at semver v10
# PCRE (unmaintained) goes up to 8.45
# despite PCRE being unmaintained, most stuff still uses it, lol
versions:
url: https://sourceforge.net/projects/pcre/files/pcre/
match: /pcre\/\d+(\.\d+)+\//
strip:
- /pcre\//
- /\//
dependencies:
sourceware.org/bzip2: 1
zlib.net: 1
build:
script: |
./configure \
--prefix={{ prefix }} \
--enable-pcre2-16 \
--enable-pcre2-32 \
--enable-pcre2grep-libz \
--enable-pcre2grep-libbz2 \
--enable-jit
make --jobs {{ hw.concurrency }}
make install
test:
script: pcregrep "regular expression" {{ prefix }}/share/doc/pcre/README
provides:
- bin/pcre-config
- bin/pcregrep
- bin/pcretest