aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-07-17 11:10:30 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2015-07-17 11:10:35 +0200
commit9452ae5e6991d17b1f7cee798aa658442fde34d9 (patch)
tree04356f42b487e56f430aa095ddc7358f4022719a /main
parent32c84302e80d77154b3f4485b75ae9039e52df71 (diff)
downloadaports-9452ae5e6991d17b1f7cee798aa658442fde34d9.tar.bz2
aports-9452ae5e6991d17b1f7cee798aa658442fde34d9.tar.xz
testing/ninja: move to main
Diffstat (limited to 'main')
-rw-r--r--main/ninja/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/main/ninja/APKBUILD b/main/ninja/APKBUILD
new file mode 100644
index 0000000000..da81225a63
--- /dev/null
+++ b/main/ninja/APKBUILD
@@ -0,0 +1,48 @@
+# Contributor: k0r10n <k0r10n.dev@gmail.com>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=ninja
+pkgver=1.5.1
+pkgrel=0
+pkgdesc="Small build system with a focus on speed"
+url="http://martine.github.io/ninja/"
+arch="all"
+license="Apache"
+depends=""
+depends_dev=""
+makedepends="$depends_dev asciidoc python re2c gtest"
+install=""
+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
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ python2 ./bootstrap.py || return 1
+ asciidoc doc/manual.asciidoc || return 1
+}
+
+package() {
+ cd "$_builddir"
+ install -m755 -D ninja "$pkgdir/usr/bin/ninja" || return 1
+ install -m644 -D doc/manual.asciidoc \
+ "$pkgdir/usr/share/doc/ninja/manual.asciidoc" || return 1
+ install -m644 -D doc/manual.html \
+ "$pkgdir/usr/share/doc/ninja/manual.html" || return 1
+
+ install -m644 -D misc/bash-completion \
+ "$pkgdir/usr/share/bash-completion/completions/ninja" || return 1
+}
+
+md5sums="59f4f1cf5d9bb0d7877a6d5a5afd770a ninja-1.5.1.tar.gz"
+sha256sums="fba77b9ed4b4dd0e86c4513776938dc64bd4508dc2055b04c0c6df68bcfa397d ninja-1.5.1.tar.gz"
+sha512sums="ab82389ee88bd68ec57e720dabb47494371990dca581cf9bb35650177164f04bf41c81ab3e5019a370eeacc7f5f49ae81d41d8b21e1b07cc8abedce37e00da61 ninja-1.5.1.tar.gz"