mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 18:26:39 +02:00
leaving the Maintainer comment there for better visual cues, syntax highlighting, and easy conversion to a Contributor comment since Contributor comments are not being removed, just treat my Maintainer comments like Contributor ones, as a normal comment
72 lines
1.6 KiB
Text
72 lines
1.6 KiB
Text
# Contributor: rubicon <rubicon@mailo.com>
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=dune-deps
|
|
pkgver=1.3.0
|
|
pkgrel=2
|
|
pkgdesc="Show dependency graph of a multi-component dune project"
|
|
url="https://github.com/mjambon/dune-deps"
|
|
arch="all !riscv64 !loongarch64" # ocaml
|
|
license="BSD-3-Clause"
|
|
depends="graphviz"
|
|
makedepends="
|
|
dune
|
|
ocaml
|
|
ocaml-base-dev
|
|
ocaml-cmdliner-dev
|
|
ocaml-compiler-libs
|
|
ocaml-csexp-dev
|
|
ocaml-num-dev
|
|
ocaml-parsexp-dev
|
|
ocaml-sexplib-dev
|
|
ocaml-sexplib0-dev
|
|
"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/mjambon/dune-deps/archive/v$pkgver.tar.gz"
|
|
|
|
# 32-bit archs
|
|
case "$CARCH" in
|
|
arm*|x86) options="$options textrels" ;;
|
|
esac
|
|
|
|
build() {
|
|
export OCAMLPATH=/usr/lib/ocaml
|
|
dune build -p dune-deps @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
|
|
}
|
|
|
|
prepare_py_provides() {
|
|
local datadir="${subpkgdir:-$pkgdir}"
|
|
local pkgbasedir=${pkgbasedir:-"$startdir/pkg"}
|
|
local controldir="$pkgbasedir"/.control.${subpkgname:-$pkgname}
|
|
|
|
options_has "!tracedeps" && return 0
|
|
|
|
ocaml4-abuild-find provides \
|
|
"$datadir"/usr/lib/ocaml \
|
|
"$controldir" \
|
|
"$pkgver-r$pkgrel"
|
|
}
|
|
|
|
scan_python3_dependency() {
|
|
local controldir="$2" datadir="$3"
|
|
|
|
ocaml4-abuild-find requires \
|
|
"$datadir"/usr/lib/ocaml \
|
|
"$controldir"
|
|
}
|
|
|
|
sha512sums="
|
|
f58e9f312667ff79d019e54abc2623ac974ede330a20e71ea56121e34cf0382ed0dc0a3921449b6e969f3eaee2631b14e4ba5e3ba0f13237690c4b9313b92df7 dune-deps-1.3.0.tar.gz
|
|
"
|