testing/ocaml-camomile: fix comments and code-style

This commit is contained in:
Jakub Jirutka 2018-03-13 16:26:15 +01:00
parent 3f18acf64d
commit d6e775b8b8

View File

@ -7,7 +7,6 @@ pkgrel=2
pkgdesc="A Unicode library for OCaml" pkgdesc="A Unicode library for OCaml"
url="https://github.com/yoriyuki/Camomile" url="https://github.com/yoriyuki/Camomile"
# x86, armhf, s390x: limited by ocaml aport # x86, armhf, s390x: limited by ocaml aport
# ppc64le: https://github.com/yoriyuki/Camomile/issues/39. Workaround by setting hard and soft stack limits
arch="all !x86 !armhf !s390x" arch="all !x86 !armhf !s390x"
license="LGPL-2.0-or-later" license="LGPL-2.0-or-later"
depends="$pkgname-data=$pkgver-r$pkgrel ocaml-runtime" depends="$pkgname-data=$pkgver-r$pkgrel ocaml-runtime"
@ -17,11 +16,14 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/yoriyuki/$_pkgname/archive/r
builddir="$srcdir/Camomile-rel-$pkgver" builddir="$srcdir/Camomile-rel-$pkgver"
build() { build() {
if [ "$CARCH" = "ppc64le" ]; then cd "$builddir"
# Workaround for https://github.com/yoriyuki/Camomile/issues/39.
if [ "$CARCH" = ppc64le ]; then
ulimit -Hs unlimited ulimit -Hs unlimited
ulimit -Ss 65536 ulimit -Ss 65536
fi fi
cd "$builddir"
jbuilder build @install jbuilder build @install
} }