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

testing/ocaml-bisect_ppx: new aport

needed by ocaml-markup
parent fd004484
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-bisect_ppx
_pkgname=bisect_ppx
pkgver=2.8.1
pkgrel=0
pkgdesc="Code coverage for OCaml"
url="https://github.com/aantron/bisect_ppx"
arch="all !riscv64" # restricted by ocaml
license="MIT"
depends="ocaml-runtime"
depends_dev="$pkgname=$pkgver-r$pkgrel"
makedepends="
dune
ocaml
ocaml-cmdliner-dev
ocaml-compiler-libs
ocaml-compiler-libs-repackaged-dev
ocaml-ppx_derivers-dev
ocaml-ppxlib-dev
ocaml-sexplib0-dev
ocaml-stdlib-shims
"
options="!check" # needs ocamlformat
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/aantron/bisect_ppx/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
# 32-bit archs
case "$CARCH" in
arm*|x86) options="$options textrels" ;;
esac
build() {
export OCAMLPATH=/usr/lib/ocaml
dune build -p bisect_ppx @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="
6becffb012bcd02cf8042e3f21cc0f1b6ae18984077951c8213f31ae931b0ba69d4b04ae0b1976d59919fd378e5197b49310a6c80ef3a6e06fb48275ed79c149 ocaml-bisect_ppx-2.8.1.tar.gz
"
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