New package: ninja-1.4.0.

This commit is contained in:
Juan RP 2014-05-21 09:52:39 +02:00
parent 6c6d397a83
commit b11aac4f9c
1 changed files with 29 additions and 0 deletions

29
srcpkgs/ninja/template Normal file
View File

@ -0,0 +1,29 @@
# Template file for 'ninja'
pkgname=ninja
version=1.4.0
revision=1
hostmakedepends="python asciidoc"
short_desc="Small build system with a focus on speed"
maintainer="Juan RP <xtraeme@gmail.com>"
license="Apache-2.0"
homepage="http://martine.github.io/ninja/"
do_fetch() {
git clone -b v${version} git://github.com/martine/ninja ${pkgname}-${version}
}
do_build() {
if [ "$CROSS_BUILD" ]; then
HOST_CXXFLAGS="-O2 -fstack-protector-strong"
else
HOST_CXXFLAGS="${CXXFLAGS}"
fi
sed -e 's,CXX,HOST_CXX,g;s,CFLAGS,HOST_CXXFLAGS,g' -i bootstrap.py
HOST_CXX=g++ HOST_CXXFLAGS="$HOST_CXXFLAGS" python2 ./bootstrap.py --verbose
asciidoc doc/manual.asciidoc
}
do_install() {
vinstall ninja 755 usr/bin
vinstall doc/manual.html 644 usr/share/doc/html/ninja
vinstall misc/bash-completion 644 usr/share/bash-completion/completions ninja
vinstall misc/zsh-completion 644 usr/share/zsh/site-functions _ninja
}