aboutsummaryrefslogtreecommitdiffstats
path: root/main/ninja
diff options
context:
space:
mode:
authorAndré Klitzing <aklitzing@gmail.com>2017-09-12 08:35:27 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2017-09-14 09:48:38 +0000
commit07de6e557beb42d815c3e2c61c940b820912abda (patch)
tree16e015bc0634fe8fb52c6923f2949f4cc87958d2 /main/ninja
parentdefb997a43eb8e4851a763ff4ab7716a8b035139 (diff)
downloadaports-07de6e557beb42d815c3e2c61c940b820912abda.tar.bz2
aports-07de6e557beb42d815c3e2c61c940b820912abda.tar.xz
main/ninja: upgrade to 1.8.2 and modernize abuild
Diffstat (limited to 'main/ninja')
-rw-r--r--main/ninja/APKBUILD38
1 files changed, 15 insertions, 23 deletions
diff --git a/main/ninja/APKBUILD b/main/ninja/APKBUILD
index 45f496eaba..018e7ce103 100644
--- a/main/ninja/APKBUILD
+++ b/main/ninja/APKBUILD
@@ -1,48 +1,40 @@
# Contributor: k0r10n <k0r10n.dev@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ninja
-pkgver=1.7.2
+pkgver=1.8.2
pkgrel=0
pkgdesc="Small build system with a focus on speed"
url="https://ninja-build.org/"
arch="all"
license="Apache"
-depends=""
-depends_dev=""
-makedepends="$depends_dev asciidoc python2 re2c gtest"
-install=""
+makedepends="asciidoc python2 re2c gtest"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/martine/ninja/archive/v$pkgver.tar.gz"
-
builddir="$srcdir"/${pkgname}-${pkgver}
-prepare() {
- local i
+
+build() {
cd "$builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
+ python2 ./configure.py --bootstrap
+ asciidoc doc/manual.asciidoc
}
-build() {
+check() {
cd "$builddir"
- python2 ./configure.py --bootstrap || return 1
- asciidoc doc/manual.asciidoc || return 1
+
+ ./ninja ninja_test
+ ./ninja_test --gtest_filter=-SubprocessTest.SetWithLots
}
package() {
cd "$builddir"
- install -m755 -D ninja "$pkgdir/usr/bin/ninja" || return 1
+ install -m755 -D ninja "$pkgdir/usr/bin/ninja"
install -m644 -D doc/manual.asciidoc \
- "$pkgdir/usr/share/doc/ninja/manual.asciidoc" || return 1
+ "$pkgdir/usr/share/doc/ninja/manual.asciidoc"
install -m644 -D doc/manual.html \
- "$pkgdir/usr/share/doc/ninja/manual.html" || return 1
+ "$pkgdir/usr/share/doc/ninja/manual.html"
install -m644 -D misc/bash-completion \
- "$pkgdir/usr/share/bash-completion/completions/ninja" || return 1
+ "$pkgdir/usr/share/bash-completion/completions/ninja"
}
-md5sums="7b482218757acbaeac4d4d54a3cd94e1 ninja-1.7.2.tar.gz"
-sha256sums="2edda0a5421ace3cf428309211270772dd35a91af60c96f93f90df6bc41b16d9 ninja-1.7.2.tar.gz"
-sha512sums="29900d07364d87ad8b9614b82bc1b0afda5ca6522563ab73fb228f206ed6b29b70cf034a3caf5a9b2c0b105d1e076c6b425d93b5d14aa3ca3730d75611212a64 ninja-1.7.2.tar.gz"
+sha512sums="1650bf9e3eddeb0b0fbb415c2b8e0a7c094421e991fa8139fd77fae0f6ee7ee980b7cf5e98d883c3a884f99abcb06fa26e3980af3a3a5bb6dd655124755782c2 ninja-1.8.2.tar.gz"