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

testing/ocaml-ppx_derivers: move from unmaintained

as depends for testing/reason and testing/ocaml-ppxlib
parent 5e28ddd4
No related branches found
No related tags found
1 merge request!34403testing/ocaml-*: upgrade Reason ML, add OCamlnet and LablGtk3
...@@ -2,49 +2,62 @@ ...@@ -2,49 +2,62 @@
# Maintainer: # Maintainer:
pkgname=ocaml-ppx_derivers pkgname=ocaml-ppx_derivers
_pkgname=ppx_derivers _pkgname=ppx_derivers
pkgver=1.2 pkgver=1.2.1
pkgrel=2 pkgrel=0
pkgdesc="Shared [@@deriving] plugins registry" pkgdesc="Shared [@@deriving] plugins registry"
url="https://github.com/ocaml-ppx/ppx_derivers" url="https://github.com/ocaml-ppx/ppx_derivers"
arch="all !x86 !armhf !armv7 !s390x !mips !mips64" # limited by ocaml aport arch="all !riscv64" # restricted by ocaml
license="BSD-3-Clause" license="BSD-3-Clause"
depends="ocaml-runtime" depends="ocaml-runtime"
depends_dev="$pkgname=$pkgver-r$pkgrel" depends_dev="$pkgname=$pkgver-r$pkgrel"
makedepends="dune ocaml ocaml-findlib opam" makedepends="dune ocaml ocaml-findlib"
options="!check" # no tests provided options="!check" # no tests provided
subpackages="$pkgname-dev" subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/ocaml-ppx/$_pkgname/archive/$pkgver.tar.gz" source="$pkgname-$pkgver.tar.gz::https://github.com/ocaml-ppx/ppx_derivers/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver" builddir="$srcdir/$_pkgname-$pkgver"
# 32-bit archs
case "$CARCH" in
arm*|x86) options="$options textrels" ;;
esac
build() { build() {
cd "$builddir" export OCAMLPATH=/usr/lib/ocaml
jbuilder build @install dune build --root . @install --no-buffer --verbose
} }
package() { check() {
cd "$builddir" dune runtest --no-buffer --verbose
}
mkdir -p "$pkgdir"/usr/lib/ocaml package() {
jbuilder install \ dune install \
--destdir="$pkgdir/usr" \ --destdir="$pkgdir" \
--libdir="$pkgdir/usr/lib/ocaml" --prefix=/usr \
--libdir=/usr/lib/ocaml
# There's just a readme and changelog. # There's just a readme and changelog.
rm -Rf "$pkgdir"/usr/doc rm -Rf "$pkgdir"/usr/doc
# Remove annotation files and sources.
cd "$pkgdir"/usr/lib/ocaml/$_pkgname
rm -f *.cmt* *.ml
} }
dev() { dev() {
local sitelib="usr/lib/ocaml/$_pkgname"
default_dev default_dev
cd "$pkgdir"/$sitelib cd "$pkgdir"
mkdir -p "$subpkgdir"/$sitelib local path; for path in $(find usr/lib/ocaml \( \
mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/ -name '*.cmt' -o \
-name '*.cmti' -o \
-name '*.cmx' -o \
-name '*.cmxa' -o \
-name '*.ml' -o \
-name '*.mli' \
\))
do
amove "$path"
done
} }
sha512sums="68e8773cec2ee3c0feb08b7cc8e1b6ce226add4ed6d2ced0e77fe485e48b04570f7049c5bde2ce917a4965d114bbc44400b409c2d76d928913ef4f76c6591a8e ocaml-ppx_derivers-1.2.tar.gz" sha512sums="
ef0796fe2592e653d34ba01d206d4b507429882a2aaadcb89c7f807c33a417f2871b0c94ade5c92aefd9487daa582e19d88ad5a5eaa631e8162ae12f4a0756c6 ocaml-ppx_derivers-1.2.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