mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/ocaml-ezxmlm: new aport
https://github.com/mirage/ezxmlm Combinators for parsing and selection of XML structures
This commit is contained in:
parent
0ae49b5c16
commit
a9e0732ce1
80
testing/ocaml-ezxmlm/APKBUILD
Normal file
80
testing/ocaml-ezxmlm/APKBUILD
Normal file
@ -0,0 +1,80 @@
|
||||
# Contributor: Celeste <cielesti@protonmail.com>
|
||||
# Maintainer: Celeste <cielesti@protonmail.com>
|
||||
pkgname=ocaml-ezxmlm
|
||||
pkgver=1.1.0
|
||||
pkgrel=0
|
||||
_pkgreal=ezxmlm
|
||||
pkgdesc="Combinators for parsing and selection of XML structures"
|
||||
url="https://github.com/mirage/ezxmlm"
|
||||
arch="all !riscv64 !loongarch64" # ocaml
|
||||
license="ISC"
|
||||
depends_dev="
|
||||
$pkgname=$pkgver-r$pkgrel
|
||||
ocaml-xmlm-dev
|
||||
"
|
||||
makedepends="
|
||||
$depends_dev
|
||||
dune
|
||||
ocaml
|
||||
"
|
||||
subpackages="$pkgname-dev"
|
||||
source="$_pkgreal-$pkgver.tar.bz2::https://github.com/mirage/ezxmlm/releases/download/v$pkgver/ezxmlm-v$pkgver.tbz"
|
||||
builddir="$srcdir/$_pkgreal-v$pkgver"
|
||||
|
||||
# 32-bit archs
|
||||
case "$CARCH" in
|
||||
arm*|x86) options="$options textrels" ;;
|
||||
esac
|
||||
|
||||
build() {
|
||||
dune build --release --verbose
|
||||
}
|
||||
|
||||
check() {
|
||||
dune runtest --build-dir=.testenv --verbose
|
||||
}
|
||||
|
||||
package() {
|
||||
dune install --destdir="$pkgdir" --docdir=/.omit
|
||||
}
|
||||
|
||||
dev() {
|
||||
default_dev
|
||||
|
||||
cd "$pkgdir"
|
||||
|
||||
local path; find usr/lib/ocaml \( \
|
||||
-name '*.cmt' -o \
|
||||
-name '*.cmti' -o \
|
||||
-name '*.ml' -o \
|
||||
-name '*.mli' \
|
||||
\) | while read -r path
|
||||
do
|
||||
amove "$path"
|
||||
done
|
||||
}
|
||||
|
||||
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="
|
||||
fe2cc062197730f07b62443b068e67c23e53e984dee9e864bea808a2cdd3a2922c892e6f34867620aa1d5a837c8f4f96f2c187c348d1991b7383a2579860c96f ezxmlm-1.1.0.tar.bz2
|
||||
"
|
Loading…
Reference in New Issue
Block a user