aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ocaml-ptmap
diff options
context:
space:
mode:
authorAndy Li <andy@onthewings.net>2019-12-13 21:55:09 +0800
committerRasmus Thomsen <oss@cogitri.dev>2019-12-23 00:43:32 +0100
commite606071a92b095ff6618bdff1106afa5fd43c0a7 (patch)
treed3d684061148086b005223ca68fc6b87e85fc441 /testing/ocaml-ptmap
parentff88a8ffd6a6ba78cb0be82b6cd66b54200d3b31 (diff)
downloadaports-e606071a92b095ff6618bdff1106afa5fd43c0a7.tar.bz2
aports-e606071a92b095ff6618bdff1106afa5fd43c0a7.tar.xz
testing/ocaml-ptmap: new aport
https://github.com/backtracking/ptmap Maps over integers implemented as Patricia trees
Diffstat (limited to 'testing/ocaml-ptmap')
-rw-r--r--testing/ocaml-ptmap/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/ocaml-ptmap/APKBUILD b/testing/ocaml-ptmap/APKBUILD
new file mode 100644
index 0000000000..f131965da5
--- /dev/null
+++ b/testing/ocaml-ptmap/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: Andy Li <andy@onthewings.net>
+# Maintainer: Andy Li <andy@onthewings.net>
+pkgname=ocaml-ptmap
+_pkgname=ptmap
+pkgver=2.0.4
+pkgrel=0
+pkgdesc="Maps over integers implemented as Patricia trees"
+url="https://github.com/backtracking/ptmap"
+arch="all !x86 !armhf !armv7 !s390x" # limited by ocaml aport
+license="LGPL-2.1-or-later WITH OCaml-linking-exception"
+depends="ocaml-runtime"
+depends_dev="$pkgname=$pkgver-r$pkgrel"
+makedepends="ocaml ocaml-findlib ocaml-obuild ocaml-qtest ocaml-qcheck-dev ocaml-ounit-dev"
+subpackages="$pkgname-dev"
+options="!check" # no tests provided
+source="$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+ obuild configure
+ obuild build
+ obuild build lib-ptmap
+}
+
+package() {
+ obuild install --destdir "$pkgdir/usr/lib/ocaml"
+
+ # Remove annotation files and sources.
+ rm \
+ "$pkgdir"/usr/lib/ocaml/ptmap/*.cmt \
+ "$pkgdir"/usr/lib/ocaml/ptmap/*.cmti
+}
+
+dev() {
+ default_dev
+
+ mkdir -p "$subpkgdir"/usr/lib/ocaml/ptmap
+ mv \
+ "$pkgdir"/usr/lib/ocaml/ptmap/*.cmx \
+ "$pkgdir"/usr/lib/ocaml/ptmap/*.cmxa \
+ "$subpkgdir"/usr/lib/ocaml/ptmap/
+}
+
+sha512sums="3f11664f926244a212e2d782d338982826e608463eec22e91cd77350836cbab9d4aed7542fa9c5f3c1df572552a3797a149618ad370d1b47b4e03cf497100356 ocaml-ptmap-2.0.4.tar.gz"