Commit 69df8109 authored by rubicon's avatar rubicon
Browse files

testing/ocaml5-angstrom: new aport

parent a9cc4436
# Contributor:
# Maintainer:
pkgname=ocaml5-angstrom
_pkgname=${pkgname#ocaml5-}
pkgver=0.15.0
pkgrel=0
pkgdesc="Parser combinators built for speed and memory-efficiency"
url="https://github.com/inhabitedtype/angstrom"
arch="x86_64 aarch64" # limited by ocaml5 compiler
license="BSD-3-Clause"
depends="ocaml5 ocaml5-bigstringaf"
makedepends="ocaml5-dune ocaml5-lwt"
checkdepends="ocaml5-alcotest ocaml5-ppx_let"
options="!check"
subpackages="$pkgname-lwt"
source="ocaml-$_pkgname-$pkgver.tar.gz::https://github.com/inhabitedtype/angstrom/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
_ocamlbin=usr/libexec/ocaml5
_ocamllib=usr/lib/ocaml5
prepare() {
default_prepare
export PATH="/$_ocamlbin:$PATH"
}
build() {
dune build \
-p angstrom,angstrom-unix,angstrom-lwt-unix \
--verbose
}
check() {
dune runtest --verbose
}
package() {
dune install \
--destdir="$pkgdir" \
angstrom angstrom-unix angstrom-lwt-unix
}
lwt() {
pkgdesc="$pkgdesc (Lwt interface)"
depends="$pkgname=$pkgver-r$pkgrel ocaml5-lwt"
amove "$_ocamllib"/angstrom-lwt-unix
}
sha512sums="
307040a6174f9d3c45a9a3bd3c9d1f4e026aef4a3360bd8d171e2e147306fe0d00ee4cb42019bb2abe8101d25c4a2b5887e466537345eb35246bc34d285ffddf ocaml-angstrom-0.15.0.tar.gz
"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment