ninja: update to 1.12.1.
This commit is contained in:
parent
1e4368f092
commit
15e902cccb
|
@ -1,14 +1,19 @@
|
|||
# Template file for 'ninja'
|
||||
pkgname=ninja
|
||||
version=1.11.1
|
||||
revision=4
|
||||
hostmakedepends="python3 asciidoc"
|
||||
version=1.12.1
|
||||
revision=1
|
||||
build_style=cmake
|
||||
make_cmd=make
|
||||
hostmakedepends="asciidoc"
|
||||
checkdepends="gtest-devel"
|
||||
short_desc="Small build system with a focus on speed"
|
||||
maintainer="Duncaen <duncaen@voidlinux.org>"
|
||||
license="Apache-2.0"
|
||||
homepage="https://ninja-build.org/"
|
||||
distfiles="https://github.com/ninja-build/ninja/archive/v${version}.tar.gz"
|
||||
checksum=31747ae633213f1eda3842686f83c2aa1412e0f5691d1c14dbbcc67fe7400cea
|
||||
checksum=821bdff48a3f683bc4bb3b6f0b5fe7b2d647cf65d52aeb63328c91a6c6df285a
|
||||
|
||||
export CMAKE_GENERATOR="Unix Makefiles"
|
||||
|
||||
if [ "$XBPS_WORDSIZE" = 32 ]; then
|
||||
BUILD_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
|
||||
|
@ -20,33 +25,22 @@ if [ "$XBPS_TARGET_WORDSIZE" = 32 ]; then
|
|||
CXXFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
|
||||
fi
|
||||
|
||||
do_configure() {
|
||||
# Skip rebuild with bootstrapped ninja until build phase:
|
||||
vsed -e "s|subprocess.check_call(rebuild_args)|pass|" -i configure.py
|
||||
python3 configure.py --bootstrap
|
||||
}
|
||||
if [ "$XBPS_CHECK_PKGS" ]; then
|
||||
configure_args+=" -DBUILD_TESTING=ON"
|
||||
else
|
||||
configure_args+=" -DBUILD_TESTING=OFF"
|
||||
fi
|
||||
|
||||
do_build() {
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
HOST_CXXFLAGS="${BUILD_CFLAGS}"
|
||||
else
|
||||
HOST_CXXFLAGS="${CXXFLAGS}"
|
||||
fi
|
||||
CXXFLAGS="$HOST_CXXFLAGS" python3 configure.py
|
||||
|
||||
post_build() {
|
||||
asciidoc doc/manual.asciidoc
|
||||
}
|
||||
|
||||
do_check() {
|
||||
./ninja ninja_test &&
|
||||
./ninja_test --gtest_filter=-SubprocessTest.SetWithLots
|
||||
}
|
||||
|
||||
do_install() {
|
||||
vbin ninja
|
||||
post_install() {
|
||||
vdoc doc/manual.html
|
||||
vdoc doc/manual.asciidoc
|
||||
vinstall misc/bash-completion 644 usr/share/bash-completion/completions ninja
|
||||
vinstall misc/zsh-completion 644 usr/share/zsh/site-functions _ninja
|
||||
vcompletion misc/bash-completion bash ninja
|
||||
vcompletion misc/zsh-completion zsh ninja
|
||||
vinstall misc/ninja-mode.el 644 usr/share/emacs/site-lisp
|
||||
vinstall misc/ninja.vim 644 usr/share/vim/vimfiles/syntax
|
||||
vinstall misc/ninja_syntax.py 644 "${py3_sitelib}"
|
||||
|
|
Loading…
Reference in New Issue