aboutsummaryrefslogtreecommitdiffstats
path: root/community/pcre2
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-08-17 13:53:08 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-08-17 13:53:08 +0200
commit6f3690217faee1b47b8355502924353229bf0bb0 (patch)
tree70c9d84737032637a5553c76ee28c1b5fcc55965 /community/pcre2
parentc5651dd2f59a287b5e726123d58d2ca7f26b2949 (diff)
downloadaports-6f3690217faee1b47b8355502924353229bf0bb0.tar.bz2
aports-6f3690217faee1b47b8355502924353229bf0bb0.tar.xz
community/pcre2: moved from testing
Diffstat (limited to 'community/pcre2')
-rw-r--r--community/pcre2/APKBUILD62
1 files changed, 62 insertions, 0 deletions
diff --git a/community/pcre2/APKBUILD b/community/pcre2/APKBUILD
new file mode 100644
index 0000000000..578e9fccbd
--- /dev/null
+++ b/community/pcre2/APKBUILD
@@ -0,0 +1,62 @@
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
+pkgname=pcre2
+pkgver=10.22
+pkgrel=0
+pkgdesc="Perl-compatible regular expression library"
+url="http://pcre.sourceforge.net/"
+arch="all"
+license="BSD"
+depends=""
+depends_dev="libedit-dev zlib-dev"
+makedepends="$depends_dev"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-tools
+ libpcre2-16:_libpcre libpcre2-32:_libpcre"
+source="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/$pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+
+ # Note: Forced -O3 is recommended (needed?) for Julia.
+ ./configure \
+ CFLAGS="$CFLAGS -O3" \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --docdir=/usr/share/doc/$pkgname-$pkgver \
+ --htmldir=/usr/share/doc/$pkgname-$pkgver/html \
+ --enable-pcre2-16 \
+ --enable-pcre2-32 \
+ --enable-jit \
+ --enable-pcre2grep-libz \
+ --enable-pcre2test-libedit \
+ --with-match-limit-recursion=8192 \
+ || return 1
+ make
+}
+
+package() {
+ cd "$builddir"
+
+ make DESTDIR="$pkgdir" install
+}
+
+_libpcre() {
+ local bits="${subpkgname##*-}"
+ pkgdesc="PCRE2 with $bits bit character support"
+
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/libpcre2-$bits.so* "$subpkgdir"/usr/lib/
+}
+
+tools() {
+ pkgdesc="Auxiliary utilities for PCRE2"
+
+ mkdir -p "$subpkgdir"/usr/
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
+}
+
+md5sums="5ad491077f2f725d64b485e9b32f84f5 pcre2-10.22.tar.gz"
+sha256sums="7627f93f2763ee6e11ac58558d8cfbf29e1070757b45571c0ba30ce9e096505c pcre2-10.22.tar.gz"
+sha512sums="d06ed86826410073e0e3d200c06e126193e8cf280251191ffde3c03e382a8f1b2e004a600018054082a1937916b9456c6359d4ac3c4e172ec901165863da2d2c pcre2-10.22.tar.gz"