diff options
author | Joey Smith <joeysmith@gmail.com> | 2019-04-26 12:10:07 -0600 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-05-27 20:05:25 +0000 |
commit | 9b66908680f8af2a07d51f961b9b362de77017b3 (patch) | |
tree | 834fd46b0f71e359231fb99891be527db7164a62 /main/ninja | |
parent | 446f14996174242394b31b2d61631fe053e602b3 (diff) | |
download | aports-9b66908680f8af2a07d51f961b9b362de77017b3.tar.bz2 aports-9b66908680f8af2a07d51f961b9b362de77017b3.tar.xz |
main/ninja: install ninja_syntax.py
* main/ninja: install ninja_syntax.py
* main/ninja: rev pkgrel, find proper python sitelib
* main/ninja: use sysconfig instead of site to find platform lib path
Diffstat (limited to 'main/ninja')
-rw-r--r-- | main/ninja/APKBUILD | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/main/ninja/APKBUILD b/main/ninja/APKBUILD index d71952aa96..f494e40711 100644 --- a/main/ninja/APKBUILD +++ b/main/ninja/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=ninja pkgver=1.9.0 -pkgrel=0 +pkgrel=1 pkgdesc="Small build system with a focus on speed" url="https://ninja-build.org/" arch="all" @@ -16,6 +16,10 @@ source=" " builddir="$srcdir"/${pkgname}-${pkgver} +_py3_sitelib() { + python3 -c 'import sysconfig; print(sysconfig.get_path("platlib"))' +} + build() { cd "$builddir" python3 ./configure.py --bootstrap @@ -39,6 +43,9 @@ package() { install -m644 -D misc/bash-completion \ "$pkgdir/usr/share/bash-completion/completions/ninja" + + install -m644 -D misc/ninja_syntax.py \ + "${pkgdir}$(_py3_sitelib)/ninja_syntax.py" } sha512sums="a8b5ad00b60bddbdb8439a6092c91a65d093f9bcd6241f69088eb35bea2847efe673c3107a130dc754c747c7712b839d8f88e88d8389520cf7143668ee053feb ninja-1.9.0.tar.gz |