Skip to content
Snippets Groups Projects
Commit 3ddba342 authored by rubicon's avatar rubicon Committed by alice
Browse files

testing/ocaml-pcre: new aport

needed by ocamlnet and ocaml-mikmatch
parent f3d98911
No related branches found
No related tags found
1 merge request!34403testing/ocaml-*: upgrade Reason ML, add OCamlnet and LablGtk3
# Contributor: rubicon <rubicon@mailo.com>
# Maintainer:
pkgname=ocaml-pcre
_pkgname=pcre
pkgver=7.5.0
pkgrel=0
pkgdesc="OCaml bindings to the Perl Compatibility Regular Expressions (PCRE) library"
url="https://mmottl.github.io/pcre-ocaml"
arch="all !riscv64" # restricted by ocaml
license="LGPL-2.1-or-later-WITH-linking-exception"
depends="ocaml-runtime"
depends_dev="$pkgname=$pkgver-r$pkgrel"
makedepends="dune dune-configurator-dev ocaml ocaml-csexp-dev pcre-dev"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.bz2::https://github.com/mmottl/pcre-ocaml/releases/download/$pkgver/pcre-$pkgver.tbz"
builddir="$srcdir/$_pkgname-$pkgver"
# 32-bit archs
case "$CARCH" in
arm*|x86) options="$options textrels" ;;
esac
build() {
export OCAMLPATH=/usr/lib/ocaml
dune build --root . @install --no-buffer --verbose
}
check() {
dune runtest --no-buffer --verbose
}
package() {
dune install \
--destdir="$pkgdir" \
--prefix=/usr \
--libdir=/usr/lib/ocaml
rm -Rf "$pkgdir"/usr/doc
}
dev() {
default_dev
cd "$pkgdir"
local path; for path in $(find usr/lib/ocaml \( \
-name '*.cmt' -o \
-name '*.cmti' -o \
-name '*.cmx' -o \
-name '*.cmxa' -o \
-name '*.ml' -o \
-name '*.mli' \
\))
do
amove "$path"
done
}
sha512sums="
be60f13ddb6bbfe20e30ca5d92434d85e1d1371479e1e2c725588af83fcc9366ed0435021b6a800c20336ac521f2134c767420136438684656a44ac1f9924be4 ocaml-pcre-7.5.0.tar.bz2
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment