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

testing/ocaml-zed: move back from unmaintained as depends for ocaml-lambda-term

parent 83ec9144
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: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer:
pkgname=ocaml-zed
_pkgname=zed
pkgver=3.1.0
pkgrel=0
pkgdesc="Abstract engine for text edition in OCaml"
url="https://github.com/ocaml-community/zed"
arch="all !riscv64" # restricted by ocaml aport
license="BSD-3-Clause"
depends="ocaml-runtime"
depends_dev="$pkgname=$pkgver-r$pkgrel"
makedepends="
dune
ocaml
ocaml-camomile-dev
ocaml-charinfo_width-dev
ocaml-compiler-libs
ocaml-findlib
ocaml-react-dev
ocaml-result-dev
"
options="!check" # no tests provided
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/ocaml-community/zed/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
}
package() {
dune install \
--destdir="$pkgdir" \
--prefix=/usr \
--libdir=/usr/lib/ocaml
# There's just a readme and changelog.
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="
d4457af15f970adb7b1ed543017e590fa0ecc47171d6dd520a1397f21ce0219caa30a9db7bedb76c0602d4f6d0f0684012cc33feafe18b848d3261a460dea10a ocaml-zed-3.1.0.tar.gz
"
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer:
pkgname=ocaml-zed
_pkgname=zed
pkgver=1.6
pkgrel=3
pkgdesc="Abstract engine for text edition in OCaml"
url="https://github.com/diml/zed"
# x86, armhf, s390x, mips, mips64: limited by ocaml aport
arch="all !x86 !armhf !armv7 !s390x !mips !mips64"
license="BSD-3-Clause"
depends="ocaml-runtime"
makedepends="dune ocaml ocaml-compiler-libs ocaml-camomile-dev ocaml-findlib
ocaml-react-dev opam"
options="!check" # no tests provided
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.bz2::https://github.com/diml/$_pkgname/releases/download/$pkgver/$_pkgname-$pkgver.tbz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
jbuilder build @install
}
package() {
cd "$builddir"
mkdir -p "$pkgdir"/usr/lib/ocaml
jbuilder install \
--destdir="$pkgdir/usr" \
--libdir="$pkgdir/usr/lib/ocaml"
cd "$pkgdir"
# There's just a readme and changelog.
rm -Rf usr/doc
# Remove annotation files and sources.
rm -Rf usr/lib/ocaml/$_pkgname/*.cmt*
rm -Rf usr/lib/ocaml/$_pkgname/*.ml
}
dev() {
default_dev
depends="$pkgname=$pkgver-r$pkgrel"
local sitelib="usr/lib/ocaml/$_pkgname"
cd "$pkgdir"/$sitelib
mkdir -p "$subpkgdir"/$sitelib
mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/
}
sha512sums="e2fa279697a4d01431a7108c07bcbfcebb50ec175da2da5f460ce5d5241f6695e868b49dcdb2c7c944c3a38be891e1f9a97477384cb3663d5615b9a71de357dd ocaml-zed-1.6.tar.bz2"
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