Commit f0947c71 authored by rubicon's avatar rubicon
Browse files

testing/ocaml5-angstrom: new aport

parent a534fb2e
Pipeline #130146 passed with stages
in 23 minutes and 27 seconds
# Contributor: rubicon <rubicon@mailo.com>
# Maintainer: rubicon <rubicon@mailo.com>
pkgname=ocaml5-angstrom
_pkgname=${pkgname#ocaml5-}
_ocaml_compiler=ocaml5
_ocaml_apkbuild="$startdir"/../../*/$_ocaml_compiler/APKBUILD
pkgver=0.15.0
pkgrel=0
pkgdesc="Parser combinators built for speed and memory-efficiency"
url="https://github.com/inhabitedtype/angstrom"
arch="$( . $_ocaml_apkbuild ; echo "$arch" )"
license="BSD-3-Clause"
depends="$_ocaml_compiler 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="$( . $_ocaml_apkbuild ; echo "$_ocamlbin" )"
_ocamllib="$( . $_ocaml_apkbuild ; echo "$_ocamllib" )"
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