diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-03-06 23:41:35 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-03-07 01:33:55 +0100 |
commit | 787f0a32a96432962c207aabd1f5ed0d0219ae07 (patch) | |
tree | 1f04a30b15133fb40dace9115c909a57834178ab /testing/ocaml-cppo | |
parent | b99eda97846a3e152273942fb1e8f07b02bf62fc (diff) | |
download | aports-787f0a32a96432962c207aabd1f5ed0d0219ae07.tar.bz2 aports-787f0a32a96432962c207aabd1f5ed0d0219ae07.tar.xz |
testing/ocaml-cppo: move ocamlbuild plugin into -ocamlbuild subpkg
Diffstat (limited to 'testing/ocaml-cppo')
-rw-r--r-- | testing/ocaml-cppo/APKBUILD | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/testing/ocaml-cppo/APKBUILD b/testing/ocaml-cppo/APKBUILD index fbeb2cf64c..99910de7d4 100644 --- a/testing/ocaml-cppo/APKBUILD +++ b/testing/ocaml-cppo/APKBUILD @@ -3,7 +3,7 @@ pkgname=ocaml-cppo _pkgname=cppo pkgver=1.6.4 -pkgrel=0 +pkgrel=1 pkgdesc="C-style preprocessor for OCaml" url="https://github.com/mjambon/cppo" # ocaml is not avail for x86, armhf, s390x @@ -11,7 +11,7 @@ url="https://github.com/mjambon/cppo" arch="all !x86 !armhf !s390x !ppc64le" license="BSD-3-Clause" makedepends="dune ocaml ocamlbuild ocaml-findlib opam" -subpackages="$pkgname-dev" +subpackages="$pkgname-dev $pkgname-ocamlbuild" source="$pkgname-$pkgver.tar.gz::https://github.com/mjambon/$_pkgname/archive/v$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" @@ -43,10 +43,19 @@ package() { rm -Rf usr/doc } +ocamlbuild() { + pkgdesc="$pkgdesc (Ocamlbuild plugin)" + depends="ocamlbuild" + + mkdir -p "$subpkgdir"/usr/lib/ocaml + mv "$pkgdir"/usr/lib/ocaml/${_pkgname}_ocamlbuild \ + "$subpkgdir"/usr/lib/ocaml/ +} + dev() { default_dev - depends="$pkgname=$pkgver-r$pkgrel" + depends="$pkgname=$pkgver-r$pkgrel $pkgname-ocamlbuild=$pkgver-r$pkgrel" local sitelib="usr/lib/ocaml/${_pkgname}_ocamlbuild" cd "$pkgdir"/$sitelib |