-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c51eb8a
commit 660cfd2
Showing
2 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |