aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-03-11 16:07:01 +0100
committerJakub Jirutka <jakub@jirutka.cz>2018-03-11 21:37:43 +0100
commit1e900953c0d5611c1a98cb0c55b4183a2253055b (patch)
tree700526b2fc0957fe5af559966f6db703245fc24e /testing
parent72564b4d6a50dd0aa109202adbf70364d4cb54c5 (diff)
downloadaports-1e900953c0d5611c1a98cb0c55b4183a2253055b.tar.bz2
aports-1e900953c0d5611c1a98cb0c55b4183a2253055b.tar.xz
testing/ocaml-reactivedata: new aport
https://github.com/ocsigen/reactiveData/ FRP with incremental changes in data structures for OCaml
Diffstat (limited to 'testing')
-rw-r--r--testing/ocaml-reactivedata/APKBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/testing/ocaml-reactivedata/APKBUILD b/testing/ocaml-reactivedata/APKBUILD
new file mode 100644
index 0000000000..d113adfc2d
--- /dev/null
+++ b/testing/ocaml-reactivedata/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
+pkgname=ocaml-reactivedata
+_pkgname=reactiveData
+pkgver=0.2.1
+pkgrel=0
+pkgdesc="FRP with incremental changes in data structures for OCaml"
+url="https://github.com/ocsigen/reactiveData/"
+arch="all !x86 !armhf !s390x" # limited by ocaml aport
+license="LGPL-2.1-or-later-WITH-linking-exception"
+depends="ocaml-react ocaml-runtime"
+depends_dev="$pkgname=$pkgver-r$pkgrel"
+makedepends="ocaml ocaml-findlib ocaml-react-dev ocamlbuild opam"
+options="!check" # no tests provided
+subpackages="$pkgname-dev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/ocsigen/$_pkgname/archive/$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+ make
+}
+
+package() {
+ cd "$builddir"
+
+ opam-installer -i \
+ --prefix="$pkgdir/usr" \
+ --libdir="$pkgdir/usr/lib/ocaml" \
+ --docdir="$builddir/.omit" \
+ $_pkgname.install
+
+ # 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="e4dad870fd1f669566394d9c2ab52665a3d27f6b2dd3807dba245d89ca90eda08b98b266fb0795bcfa5cb4ffed7a86aa719f8db5c316b0d920ee3c342493d029 ocaml-reactivedata-0.2.1.tar.gz"