ninja: update to 1.6.0.
This commit is contained in:
parent
135e8756aa
commit
9fdaf2d2aa
1 changed files with 8 additions and 11 deletions
|
@ -1,26 +1,23 @@
|
||||||
# Template file for 'ninja'
|
# Template file for 'ninja'
|
||||||
pkgname=ninja
|
pkgname=ninja
|
||||||
version=1.5.3
|
version=1.6.0
|
||||||
revision=1
|
revision=1
|
||||||
hostmakedepends="python asciidoc git"
|
hostmakedepends="python asciidoc"
|
||||||
short_desc="Small build system with a focus on speed"
|
short_desc="Small build system with a focus on speed"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
license="Apache-2.0"
|
license="Apache-2.0"
|
||||||
homepage="http://martine.github.io/ninja/"
|
homepage="http://martine.github.io/ninja/"
|
||||||
|
distfiles="https://github.com/martine/ninja/archive/v${version}.tar.gz"
|
||||||
do_fetch() {
|
checksum=b43e88fb068fe4d92a3dfd9eb4d19755dae5c33415db2e9b7b61b4659009cde7
|
||||||
git clone -b v${version} git://github.com/martine/ninja ${pkgname}-${version}
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
do_configure() {
|
||||||
# Skip rebuild with bootstrapped ninja until build phase:
|
# Skip rebuild with bootstrapped ninja until build phase:
|
||||||
sed -e "s|subprocess.check_call('./ninja', shell=True)|pass|" -i configure.py
|
sed -e "s|subprocess.check_call('./ninja%s' % verbose, shell=True)|pass|" -i configure.py
|
||||||
python2 configure.py --bootstrap
|
python2 configure.py --bootstrap
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
HOST_CXXFLAGS="-O2 -fstack-protector-strong"
|
HOST_CXXFLAGS="${BUILD_CFLAGS}"
|
||||||
else
|
else
|
||||||
HOST_CXXFLAGS="${CXXFLAGS}"
|
HOST_CXXFLAGS="${CXXFLAGS}"
|
||||||
fi
|
fi
|
||||||
|
@ -28,8 +25,8 @@ do_build() {
|
||||||
asciidoc doc/manual.asciidoc
|
asciidoc doc/manual.asciidoc
|
||||||
}
|
}
|
||||||
do_install() {
|
do_install() {
|
||||||
vinstall ninja 755 usr/bin
|
vbin ninja
|
||||||
vinstall doc/manual.html 644 usr/share/doc/html/ninja
|
vdoc doc/manual.html
|
||||||
vinstall misc/bash-completion 644 usr/share/bash-completion/completions ninja
|
vinstall misc/bash-completion 644 usr/share/bash-completion/completions ninja
|
||||||
vinstall misc/zsh-completion 644 usr/share/zsh/site-functions _ninja
|
vinstall misc/zsh-completion 644 usr/share/zsh/site-functions _ninja
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue