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

testing/ocaml-charinfo_width: new aport, needed by ocaml-zed

parent d8ac7a7a
No related branches found
No related tags found
1 merge request!34358testing/ocaml-*: bring the rest of the OCaml aports up to date, and bring utop back from unmaintained
# Contributor: rubicon <rubicon@mailo.com>
# Maintainer:
pkgname=ocaml-charinfo_width
_pkgname=charInfo_width
pkgver=1.1.0
pkgrel=0
pkgdesc="Determine column width for a character in OCaml"
url="https://github.com/kandu/charinfo_width/"
arch="all !riscv64" # restricted by ocaml
license="MIT"
depends="ocaml-runtime"
depends_dev="$pkgname=$pkgver-r$pkgrel"
makedepends="
dune
ocaml
ocaml-camomile-dev
ocaml-ocamlbuild-dev
ocaml-result-dev
"
options="!check" # needs ocaml-ppx_expect-dev
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/kandu/charInfo_width/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 --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="
c8dac9eb6f520213de69b23433e2f0d6a21578c70ae69fb682065e707363968959395a6ddc6c88893e08372a138287318634b52a8b4fb70ac988b4ad4a18b140 ocaml-charinfo_width-1.1.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