diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-03-10 20:34:13 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-03-11 21:37:43 +0100 |
commit | 4659d0887b2c4ac60f310b4d7d033faf611dd5c7 (patch) | |
tree | ae4d1dd1a9d12c8cda297681eed82c4848c1d493 /testing/ocaml-ppx_tools | |
parent | 9d718c898d87f7e490603409c712164f4803ebfc (diff) | |
download | aports-4659d0887b2c4ac60f310b4d7d033faf611dd5c7.tar.bz2 aports-4659d0887b2c4ac60f310b4d7d033faf611dd5c7.tar.xz |
testing/ocaml-ppx_tools: new aport
https://github.com/ocaml-ppx/ppx_tools
Tools for authors of ppx rewriters
Diffstat (limited to 'testing/ocaml-ppx_tools')
-rw-r--r-- | testing/ocaml-ppx_tools/APKBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/testing/ocaml-ppx_tools/APKBUILD b/testing/ocaml-ppx_tools/APKBUILD new file mode 100644 index 0000000000..d79648f5a8 --- /dev/null +++ b/testing/ocaml-ppx_tools/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +pkgname=ocaml-ppx_tools +_pkgname=ppx_tools +pkgver=5.1 +pkgrel=0 +_ocamlver=4.06 +_pkgver="$pkgver+$_ocamlver.0" +pkgdesc="Tools for authors of ppx rewriters" +url="https://github.com/ocaml-ppx/ppx_tools" +arch="all !x86 !armhf !s390x" # limited by ocaml aport +license="MIT" +depends="ocaml-findlib ocaml-runtime" +depends_dev="$pkgname=$pkgver-r$pkgrel" +makedepends="ocaml=~$_ocamlver ocaml-compiler-libs=~$_ocamlver" +options="!check" # no tests provided +subpackages="$pkgname-dev" +source="$pkgname-$pkgver.tar.gz::https://github.com/ocaml-ppx/$_pkgname/archive/$_pkgver.tar.gz" +builddir="$srcdir/$_pkgname-${_pkgver/+/-}" + +build() { + cd "$builddir" + make -j1 +} + +package() { + cd "$builddir" + + mkdir -p "$pkgdir/usr/lib/ocaml" + OCAMLFIND_DESTDIR="$pkgdir/usr/lib/ocaml" \ + make 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="9adab758f2e68f155775559ed6568b1c3338d03291a27108b7e47a4fc5bbe65c6451c9bb90fc3270b62148213dfcc30b709b6a95e99d218884f915b48ecda9ff ocaml-ppx_tools-5.1.tar.gz" |