void-packages/srcpkgs/ninja/template
Lugubris d78cb0d201 Drop maintainership of orphaned packages
some packages were dropped but their maintainer= was not updated in template.
this will help new maintainers adopt these packages.

-> https://github.com/void-linux/void-packages/pull/13930#issuecomment-524610652
2019-08-25 21:16:43 +02:00

39 lines
1.1 KiB
Bash

# Template file for 'ninja'
pkgname=ninja
version=1.9.0
revision=1
hostmakedepends="python asciidoc"
short_desc="Small build system with a focus on speed"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0"
homepage="https://ninja-build.org/"
distfiles="https://github.com/martine/ninja/archive/v${version}.tar.gz"
checksum=5d7ec75828f8d3fd1a0c2f31b5b0cea780cdfe1031359228c428c1a48bfcd5b9
do_configure() {
# Skip rebuild with bootstrapped ninja until build phase:
vsed -e "s|subprocess.check_call(rebuild_args)|pass|" -i configure.py
python2 configure.py --bootstrap
}
do_build() {
if [ "$CROSS_BUILD" ]; then
HOST_CXXFLAGS="${BUILD_CFLAGS}"
else
HOST_CXXFLAGS="${CXXFLAGS}"
fi
CXXFLAGS="$HOST_CXXFLAGS" python2 configure.py
asciidoc doc/manual.asciidoc
}
do_check() {
./ninja ninja_test &&
./ninja_test --gtest_filter=-SubprocessTest.SetWithLots
}
do_install() {
vbin ninja
vdoc doc/manual.html
vinstall misc/bash-completion 644 usr/share/bash-completion/completions ninja
vinstall misc/zsh-completion 644 usr/share/zsh/site-functions _ninja
}