commit:     4a2d0c8ddbed8e801842b63565712656c1d6ceb3
Author:     Matt Jolly <kangie <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 18 01:45:35 2025 +0000
Commit:     Matt Jolly <kangie <AT> gentoo <DOT> org>
CommitDate: Sun Jan 19 01:35:43 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a2d0c8d

dev-build/gn: add 0.2207

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

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

diff --git a/dev-build/gn/Manifest b/dev-build/gn/Manifest
index d5f7e87682bf..c9bdcd5d07e9 100644
--- a/dev-build/gn/Manifest
+++ b/dev-build/gn/Manifest
@@ -4,3 +4,4 @@ DIST gn-0.2154.tar.xz 746968 BLAKE2B 
2d1b29e183d7ebb37bee322b3dff367a019c03ef9a7
 DIST gn-0.2157.tar.xz 747636 BLAKE2B 
85080f87ef42416d242034ae68276263d9a0d5020fd78471fe1f8c41fd092cb66df23725062465fa54de019acf846660a4527a0e3759b55136450d1de8a2f65d
 SHA512 
f51621dff061c5c265c997d4326d6429f3a5763ffa50f4644fb7b9e1fa9b787497f21209449413b97fe589ee3e5a90253938ed63a987c311028666ce89500fdc
 DIST gn-0.2165.tar.xz 748624 BLAKE2B 
6c966fa5791c069bfd790926db7c986a8831f29819e8d7121fe9a30d4f870897064900479ecd620134f2549f30d888efc748da87b7246f12905c3c53ac4a0b7a
 SHA512 
6d99c92e951595f6e0168fea20765d31605485dea4aeec1a0c5d225223f809da2b025f8e09523d5f4a607ffb9f30118503ee4d990cc31d174c6edf6bce384f87
 DIST gn-0.2200.tar.xz 753048 BLAKE2B 
9c57e21a5cab2a5df92aee78baacb8260de0793689a3ac743428d16e5b48cdd48de0a81fa137947ed1be0b54e1751748777488d2ca68377baa1a0d02f27e9819
 SHA512 
bef69e706078617a4ec45cba978a4ba01a2a9b6ddc0bd91697fca2712529f030febf2d12dbb26a432c6ec43af249b708ec0800d01e059bc6ebc26069e0ef8a56
+DIST gn-0.2207.tar.xz 753460 BLAKE2B 
2c3cbaf9fb80c1bef15601d7ef0470446e7343b3037bd43a1ae205fe99183664a5ea45585b3591d5fb16f42ba85b922219da1949cc5663f1862341833d6b4216
 SHA512 
fc45508f6f6a50f21951b107177b284859dccc846a57bb40a54da0039ca2698dc30bf3d36d8d6de57755c3e38d970a8acbefef8c09dd118d1172d62feb1d3673

diff --git a/dev-build/gn/gn-0.2207.ebuild b/dev-build/gn/gn-0.2207.ebuild
new file mode 100644
index 000000000000..bfa62d9e4b6e
--- /dev/null
+++ b/dev-build/gn/gn-0.2207.ebuild
@@ -0,0 +1,66 @@
+# Copyright 2018-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+PYTHON_COMPAT=( python3_{10..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-r7.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