aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-03-11 16:04:01 +0100
committerJakub Jirutka <jakub@jirutka.cz>2018-03-11 21:37:43 +0100
commit2c4ceb843827eeb107b90db555f8d06a4b82c3ef (patch)
treeffe6fda43758e8cae5d1b7502fba19a4ec5de57d /testing
parentf8753eee6924f65582182601adf1b44fd73c57f8 (diff)
downloadaports-2c4ceb843827eeb107b90db555f8d06a4b82c3ef.tar.bz2
aports-2c4ceb843827eeb107b90db555f8d06a4b82c3ef.tar.xz
testing/ocaml-uutf: new aport
https://github.com/dbuenzli/uutf Non-blocking streaming Unicode codec for OCaml
Diffstat (limited to 'testing')
-rw-r--r--testing/ocaml-uutf/APKBUILD57
1 files changed, 57 insertions, 0 deletions
diff --git a/testing/ocaml-uutf/APKBUILD b/testing/ocaml-uutf/APKBUILD
new file mode 100644
index 0000000000..5ccc3a0689
--- /dev/null
+++ b/testing/ocaml-uutf/APKBUILD
@@ -0,0 +1,57 @@
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
+pkgname=ocaml-uutf
+_pkgname=uutf
+pkgver=1.0.1
+pkgrel=0
+pkgdesc="Non-blocking streaming Unicode codec for OCaml"
+url="https://github.com/dbuenzli/uutf"
+arch="all !x86 !armhf !s390x" # limited by ocaml aport
+license="ISC"
+depends="ocaml-uchar"
+depends_dev="$pkgname=$pkgver-r$pkgrel"
+makedepends="
+ ocaml
+ ocaml-compiler-libs
+ ocaml-cmdliner-dev
+ ocaml-findlib
+ ocaml-result-dev
+ ocaml-topkg-dev
+ ocaml-uchar-dev
+ ocamlbuild
+ opam
+ "
+options="!check" # FXIME: needs ocaml-topkg-care
+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"
+ ocaml pkg/pkg.ml build
+}
+
+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="803ea3306f977bbe937233b02b86f5dbd80b031e32b627be038b5caa60ed84df26efb896910025d7cc0addbff9a3d33b0ccce76fe3ebc5aaabf34f99c2637937 ocaml-uutf-1.0.1.tar.gz"