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

testing/ocaml-sexplib0: new aport

needed by ocaml-ppxlib and ocaml-parsexp
parent 5115a614
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-sexplib0
_pkgname=sexplib0
pkgver=0.15.0
pkgrel=0
pkgdesc="Library containing the definition of S-expressions and some base converters"
url="https://github.com/janestreet/sexplib0"
arch="all !riscv64" # restricted by ocaml
license="MIT"
depends="ocaml-runtime"
depends_dev="$pkgname=$pkgver-r$pkgrel"
makedepends="dune ocaml"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://ocaml.janestreet.com/ocaml-core/v0.15/files/sexplib0-v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-v$pkgver"
# 32-bit archs
case "$CARCH" in
arm*|x86) options="$options textrels" ;;
esac
build() {
export OCAMLPATH=/usr/lib/ocaml
dune build -p sexplib0 @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="
6f8b11422ce066a3c48338deea6aedfc44d365de6128bf926b0da3a51e9c0d839d84f92388b0a84c25ef875ea9d48e521e3cba53d8db85be30d67ad78e7ff450 ocaml-sexplib0-0.15.0.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