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

testing/ocaml-merlin-extend: move from unmaintained

as depends for testing/reason
parent b36fb19d
No related branches found
No related tags found
1 merge request!34403testing/ocaml-*: upgrade Reason ML, add OCamlnet and LablGtk3
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer:
pkgname=ocaml-merlin-extend
_pkgname=merlin-extend
pkgver=0.6.1
pkgrel=0
pkgdesc="SDK to extend Merlin"
url="https://github.com/let-def/merlin-extend"
arch="all !riscv64" # limited by ocaml aport
license="MIT"
depends="ocaml-runtime"
depends_dev="$pkgname=$pkgver-r$pkgrel"
makedepends="dune ocaml ocaml-compiler-libs ocaml-cppo-dev ocaml-findlib"
options="!check" # no tests provided
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.bz2::https://github.com/let-def/merlin-extend/releases/download/v$pkgver/merlin-extend-$pkgver.tbz"
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="
631fc96aab2f35e12a078c9b4907ca7b0db9f1e3a4026040e6c23b82e0171c256a89fb5d4c887f1d156eb9e3152783cdf7a546b2496051007a1bcf5777417396 ocaml-merlin-extend-0.6.1.tar.bz2
"
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer:
pkgname=ocaml-merlin-extend
_pkgname=merlin-extend
pkgver=0.3
pkgrel=3
pkgdesc="SDK to extend Merlin"
url="https://github.com/let-def/merlin-extend"
arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport
license="MIT"
depends="ocaml-runtime"
makedepends="ocaml ocaml-compiler-libs ocaml-cppo ocaml-findlib"
options="!check" # no tests provided
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/let-def/$_pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
make
}
package() {
cd "$builddir"
export OCAMLFIND_DESTDIR="$pkgdir/usr/lib/ocaml"
mkdir -p "$OCAMLFIND_DESTDIR"
make install
}
dev() {
default_dev
depends="$pkgname=$pkgver-r$pkgrel"
local sitelib="usr/lib/ocaml/${_pkgname/-/_}"
cd "$pkgdir"/$sitelib
mkdir -p "$subpkgdir"/$sitelib
mv *.cmxa *.ml *.mli "$subpkgdir"/$sitelib/
}
sha512sums="1e6436299b38c7fa57ae5b681a1409795545bc6f5956d6b1c37cbfdbdabfd90da476c030067fe2e016c823d60d1e5498c4536c869bf58425e1a6ff78295efba4 ocaml-merlin-extend-0.3.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