Skip to content

Commit

Permalink
Add pcre2 (#1041)
Browse files Browse the repository at this point in the history
  • Loading branch information
IsabelParedes authored May 17, 2024
1 parent c51eb8a commit 660cfd2
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
15 changes: 15 additions & 0 deletions recipes/recipes_emscripten/pcre2/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

./autogen.sh
emconfigure ./configure \
--prefix=$PREFIX \
--host=$HOST \
--disable-shared \
--enable-pcre2-16 \
--enable-pcre2-32

make -j${CPU_COUNT}
make install

# Install wasm files as well
cp ./pcre2*.wasm $PREFIX/bin
52 changes: 52 additions & 0 deletions recipes/recipes_emscripten/pcre2/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
context:
name: "pcre2"
version: 10.43

package:
name: ${{ name }}
version: ${{ version }}

source:
url: https://github.com/PCRE2Project/pcre2/archive/refs/tags/${{ name }}-${{ version }}.tar.gz
sha256: f0048e26b02bdfaf43b8cec75030a9c2fe28552bf5caa693d3ccbf4d886fa930

build:
number: 0

requirements:
build:
- ${{ compiler('c') }}
- cmake
- ninja
host:
- bzip2
- zlib

tests:
- script:
- test -f $PREFIX/lib/libpcre2-8.a
- test -f $PREFIX/lib/libpcre2-16.a
- test -f $PREFIX/lib/libpcre2-32.a
- test -f $PREFIX/lib/libpcre2-posix.a
- node ${PREFIX}/bin/pcre2grep --version
- node ${PREFIX}/bin/pcre2test --version
requirements:
build:
- nodejs

about:
homepage: http://www.pcre.org/
license: BSD-3-Clause
license_family: BSD
license_file: LICENCE
summary: Regular expression pattern matching using Perl 5 syntax and semantics.
description: |
The PCRE library is a set of functions that implement regular expression pattern matching
using the same syntax and semantics as Perl 5. PCRE has its own native API, as well as a set of
wrapper functions that correspond to the POSIX regular expression API. The PCRE library is
free, even for building proprietary software.
documentation: http://www.pcre.org/current/doc/html/

extra:
recipe-maintainers:
- IsabelParedes

0 comments on commit 660cfd2

Please sign in to comment.