Files
hakurei/internal/rosa/package/ninja.az
T
cat 3a3d8efb1e internal/rosa/package/python: early bootstrap variant
This avoids pulling in python's insane dependency tree into the bootstrap path.

Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-07-11 21:13:44 +09:00

41 lines
773 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",
];
bin = [ "echo" ];
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 + ` ` + loadFlagE + ` all
`;
check = "./ninja_test";
install = `
mkdir -p /work/system/bin/
cp ninja /work/system/bin/`;
};
inputs = [
python-early,
bash,
];
}