aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ocaml-cmdliner/APKBUILD
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-03-10 18:57:30 +0100
committerJakub Jirutka <jakub@jirutka.cz>2018-03-11 21:37:43 +0100
commit5e3b7b170f4478bd6d19dc53464a0fdc58bb3ae4 (patch)
treea2d00a1be5a6ac9fa6a4d793483e1e8c63e45904 /testing/ocaml-cmdliner/APKBUILD
parentbfc3a673b716ec562b9ea539728580c94b2305bb (diff)
downloadaports-5e3b7b170f4478bd6d19dc53464a0fdc58bb3ae4.tar.bz2
aports-5e3b7b170f4478bd6d19dc53464a0fdc58bb3ae4.tar.xz
testing/ocaml-cmdliner: new aport
http://erratique.ch/software/cmdliner Declarative definition of command line interfaces for OCaml
Diffstat (limited to 'testing/ocaml-cmdliner/APKBUILD')
-rw-r--r--testing/ocaml-cmdliner/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/testing/ocaml-cmdliner/APKBUILD b/testing/ocaml-cmdliner/APKBUILD
new file mode 100644
index 0000000000..5964d8f78c
--- /dev/null
+++ b/testing/ocaml-cmdliner/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
+pkgname=ocaml-cmdliner
+_pkgname=cmdliner
+pkgver=1.0.2
+pkgrel=0
+pkgdesc="Declarative definition of command line interfaces for OCaml"
+url="http://erratique.ch/software/cmdliner"
+arch="all !x86 !armhf !s390x" # limited by ocaml aport
+license="ISC"
+depends="ocaml-result ocaml-runtime"
+depends_dev="$pkgname=$pkgver-r$pkgrel"
+makedepends="ocaml ocaml-findlib ocaml-result-dev ocamlbuild"
+options="!check" # no tests provided
+subpackages="$pkgname-dev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/dbuenzli/$_pkgname/archive/v$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+ make -j1
+}
+
+package() {
+ cd "$builddir"
+
+ make install DESTDIR="$pkgdir" PREFIX=/usr
+
+ # Remove annotation files.
+ rm -Rf "$pkgdir"/usr/lib/ocaml/$_pkgname/*.cmt*
+}
+
+dev() {
+ local sitelib="usr/lib/ocaml/$_pkgname"
+ default_dev
+
+ cd "$pkgdir"/$sitelib
+
+ mkdir -p "$subpkgdir"/$sitelib
+ mv *.cmx *.cmxa *.mli "$subpkgdir"/$sitelib/
+}
+
+sha512sums="942c56729eea6be8ad0c61ffb50ce8f2520b60daf20360f08a8456b3e3e1712adf76a937674c4691107d6885ad0fab0b2bd58341487f509c08690e2c69c555f3 ocaml-cmdliner-1.0.2.tar.gz"