diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-03-11 22:55:55 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-03-11 22:56:28 +0100 |
commit | eb133104cbb09b83153f2c311385ca78c15e5409 (patch) | |
tree | 22e5bd0016b6b87351bed79fd09d853c66cf917e | |
parent | 8f2ab23616dd5627c1bb6ceae9646a13d8b1eeb3 (diff) | |
download | aports-eb133104cbb09b83153f2c311385ca78c15e5409.tar.bz2 aports-eb133104cbb09b83153f2c311385ca78c15e5409.tar.xz |
testing/merlin: new aport
https://ocaml.github.io/merlin/
Context sensitive completion for OCaml
-rw-r--r-- | testing/merlin/APKBUILD | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/testing/merlin/APKBUILD b/testing/merlin/APKBUILD new file mode 100644 index 0000000000..f9a2a4e360 --- /dev/null +++ b/testing/merlin/APKBUILD @@ -0,0 +1,62 @@ +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +pkgname=merlin +pkgver=3.0.5 +pkgrel=0 +pkgdesc="Context sensitive completion for OCaml" +url="https://ocaml.github.io/merlin/" +arch="all !x86 !armhf !s390x" # limited by ocaml aport +license="MIT" +depends="ocaml ocaml-findlib" +makedepends=" + ocaml + ocaml-biniou-dev + ocaml-easy-format-dev + ocaml-findlib-dev + ocaml-yojson-dev + " +options="!check" # XXX: tests are broken, see https://github.com/ocaml/merlin/issues/766 +subpackages="$pkgname-emacs::noarch $pkgname-vim::noarch" +source="$pkgname-$pkgver.tar.gz::https://github.com/ocaml/$pkgname/archive/v$pkgver.tar.gz" +builddir="$srcdir/$pkgname-$pkgver" + +build() { + cd "$builddir" + ./configure --prefix /usr + make +} + +check() { + cd "$builddir" + make test +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +emacs() { + pkgdesc="$pkgdesc in Emacs" + depends="$pkgname=$pkgver-r$pkgrel" + install_if="$pkgname=$pkgver-r$pkgrel emacs" + + _submv usr/share/emacs +} + +vim() { + pkgdesc="$pkgdesc in vim" + depends="$pkgname=$pkgver-r$pkgrel" + install_if="$pkgname=$pkgver-r$pkgrel vim" + + _submv usr/share/ocamlmerlin/vim +} + +_submv() { + local path="$1" + mkdir -p "$subpkgdir"/${path%/*} + mv "$pkgdir"/$path "$subpkgdir"/${path%/*}/ + rmdir -p "$pkgdir"/${path%/*} 2>/dev/null || true +} + +sha512sums="bc9790d72caaec2824fe66c3ed439961a00285cd3f7e59cea8f16283a4f489a89d8ac231d2d0da1000e0f03fa6f7b52c04fa4aff6459df5bd17322693493088d merlin-3.0.5.tar.gz" |