# Template file for 'gn' pkgname=gn version=0.0.20250630 revision=1 _ref=97b68a0bb62b7528bc3491c7949d6804223c2b82 create_wrksrc=yes hostmakedepends="python3 ninja" short_desc="Meta-build system that generates build files for Ninja" maintainer="Duncaen " license="BSD-3-Clause" homepage="https://gn.googlesource.com/gn" distfiles="https://gn.googlesource.com/gn/+archive/${_ref}.tar.gz" checksum=@55d64385feeadc4c8b30f6e212715f552cb478d43347101f1bee2d8865781c9d do_configure() { cat <<-EOF >src/gn/last_commit_position.h #ifndef OUT_LAST_COMMIT_POSITION_H_ #define OUT_LAST_COMMIT_POSITION_H_ #define LAST_COMMIT_POSITION_NUM 0 #define LAST_COMMIT_POSITION "0 (${_ref})" #endif // OUT_LAST_COMMIT_POSITION_H_ EOF ./build/gen.py --no-last-commit-position --no-static-libstdc++ --no-strip --allow-warnings } do_build() { ninja ${makejobs} -C out gn } do_check() { ninja ${makejobs} -C out gn_unittests ./out/gn_unittests } do_install() { vbin out/gn vlicense LICENSE }