commit:     102fd12a0fadd5666efc6c103002099d17cabb75
Author:     Matt Jolly <kangie <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 19 11:19:07 2026 +0000
Commit:     Matt Jolly <kangie <AT> gentoo <DOT> org>
CommitDate: Wed Jan 21 11:32:23 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=102fd12a

dev-build/gn: add 0.2318

Signed-off-by: Matt Jolly <kangie <AT> gentoo.org>

 dev-build/gn/Manifest         |  1 +
 dev-build/gn/gn-0.2318.ebuild | 66 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+)

diff --git a/dev-build/gn/Manifest b/dev-build/gn/Manifest
index ab4d1d230ed0..7687addcb6fb 100644
--- a/dev-build/gn/Manifest
+++ b/dev-build/gn/Manifest
@@ -3,3 +3,4 @@ DIST gn-0.2217.tar.xz 754264 BLAKE2B 
671cbe6d3767bf108604cd13fa1363339f1688ed9b2
 DIST gn-0.2227.tar.xz 755232 BLAKE2B 
f7430d4175a91d2f2d3991c346477ee06b450e81fd1424019d3b9316da5def5637db312c2ed68eb392e71f3e0279d894f25f7c44e91b6f1e3e919d2bfaef5e19
 SHA512 
807bb74f5c9bb16a3f1d871bb1f31ee5415dd3e1ed16acbd0105438f1d8b562d77d44192bc968dbf5486b26de7a103ccf3c9aad4ad84c596509d1c5495af27b4
 DIST gn-0.2235.tar.xz 755696 BLAKE2B 
a66577a1ce3dc726f4d6b06221428a8fdbced5c9f57bde1cd7538fbc3cef1c81b9a40a386d9f317d24c9400d0a8cca2c593013f4496ba34b6f3a26e49ed6569a
 SHA512 
2acc5937ff684180a6529d80d97ed7b615e43a1e4b58544ae5e00ec6021c51aa99fb9150cb6642c3bebe4545af957f890a32bacc3942948c8b1a47efd30b3db7
 DIST gn-0.2289.tar.xz 762416 BLAKE2B 
cb3c3e6bc28ba40ccd8b1f30cbcabebdf10e65d7f0072b43fc0f06c07f148e9eb4b3ddaf84f8d3f3f3be1e9153aedd40b9be0b7b14711a28cb92b539c671e60d
 SHA512 
0abadf6af9e6c15c9d2586daa3ba1546990b1e32eb40843417a6dc73b57213da5cf9c403d23ed04af47f9ab3986aae91caf68615ff16562fe1e89ee674df289a
+DIST gn-0.2318.tar.xz 773116 BLAKE2B 
67756f7026a050dd2e89efe3985b55f48c6903f258a1807108f3da88c0f3777d6a28783f34a22ec0bdd7a3905f8b97c578a1a3616ad0ac311bbb7a2143a8932b
 SHA512 
6482906411c8a809dd283220301a5f202893cdf292cd9112b0a9bca767637179f7ae6de4497b886af8c1e3c68afdbf8c7d8dc9e70ef6f5bb0bb4c1fd371ce419

diff --git a/dev-build/gn/gn-0.2318.ebuild b/dev-build/gn/gn-0.2318.ebuild
new file mode 100644
index 000000000000..a7fbb7b0a2f7
--- /dev/null
+++ b/dev-build/gn/gn-0.2318.ebuild
@@ -0,0 +1,66 @@
+# Copyright 2018-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+PYTHON_COMPAT=( python3_{11..13} )
+
+inherit edo ninja-utils python-any-r1 toolchain-funcs
+
+DESCRIPTION="GN is a meta-build system that generates build files for Ninja"
+HOMEPAGE="https://gn.googlesource.com/";
+if [[ ${PV} == 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://gn.googlesource.com/gn";
+else
+       # The version number is derived from `git describe HEAD --abbrev=12`
+       SRC_URI="https://deps.gentoo.zip/dev-build/gn/${P}.tar.xz";
+       KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+
+BDEPEND="
+       ${PYTHON_DEPS}
+       app-alternatives/ninja
+"
+
+PATCHES=(
+       "${FILESDIR}"/gn-gen-r8.patch
+)
+
+pkg_setup() {
+       :
+}
+
+src_configure() {
+       python_setup
+       tc-export AR CC CXX
+       unset CFLAGS
+       set -- ${EPYTHON} build/gen.py --no-last-commit-position --no-strip 
--no-static-libstdc++ --allow-warnings
+       edo "$@"
+       cat >out/last_commit_position.h <<-EOF || die
+       #ifndef OUT_LAST_COMMIT_POSITION_H_
+       #define OUT_LAST_COMMIT_POSITION_H_
+       #define LAST_COMMIT_POSITION_NUM ${PV##0.}
+       #define LAST_COMMIT_POSITION "${PV}"
+       #endif  // OUT_LAST_COMMIT_POSITION_H_
+       EOF
+}
+
+src_compile() {
+       eninja -C out gn
+}
+
+src_test() {
+       eninja -C out gn_unittests
+       out/gn_unittests || die
+}
+
+src_install() {
+       dobin out/gn
+       einstalldocs
+
+       insinto /usr/share/vim/vimfiles
+       doins -r misc/vim/{autoload,ftdetect,ftplugin,syntax}
+}

Reply via email to