1
0
forked from rosa/hakurei
Files
hakurei/internal/rosa/package/ninja.az
T
cat b5445573a8 internal/rosa/package/ninja: work around test suite bug
The test suite hard codes /bin/echo.

Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-06-08 18:43:42 +09:00

42 lines
776 B
Go

package ninja {
description = "a small build system with a focus on speed";
website = "https://ninja-build.org";
anitya = 2089;
version# = "1.13.2";
source = remoteGitHub {
suffix = "ninja-build/ninja";
tag = "v"+version;
checksum = "ygKWMa0YV2lWKiFro5hnL-vcKbc_-RACZuPu0Io8qDvgQlZ0dxv7hPNSFkt4214v";
};
extra = [ googletest ];
env = [
"CFLAGS=-std=c++17",
];
exec = generic {
build = `
python3 /usr/src/ninja/configure.py \
--verbose \
--bootstrap
python3 /usr/src/ninja/configure.py \
--gtest-source-dir=/usr/src/extra/googletest
./ninja ` + jobsFlagE + ` all`;
check = `
chmod +w /bin/
ln -s ../system/bin/echo /bin/
./ninja_test`;
install = `
mkdir -p /work/system/bin/
cp ninja /work/system/bin/`;
};
inputs = [
python,
bash,
];
}