diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-01-17 20:06:58 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-01-17 20:06:58 +0000 |
commit | 08c5e4df7a4b66ba8dbb827ca2e3a973d4f19ab0 (patch) | |
tree | 347af25df153363454776e1fe95fc4e8100a7e7d /dev-build/gn/gn-0.2088.ebuild | |
parent | fc6e577018dec28e18904f9ad5c1417976e3c728 (diff) |
gentoo auto-resync : 17:01:2024 - 20:06:58
Diffstat (limited to 'dev-build/gn/gn-0.2088.ebuild')
-rw-r--r-- | dev-build/gn/gn-0.2088.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/dev-build/gn/gn-0.2088.ebuild b/dev-build/gn/gn-0.2088.ebuild new file mode 100644 index 000000000000..fe4a275e1a0e --- /dev/null +++ b/dev-build/gn/gn-0.2088.ebuild @@ -0,0 +1,61 @@ +# Copyright 2018-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{10..11} ) + +inherit 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/" +SRC_URI="https://dev.gentoo.org/~sultan/distfiles/dev-build/gn/${P}.tar.xz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86" + +BDEPEND=" + ${PYTHON_DEPS} + app-alternatives/ninja +" + +PATCHES=( + "${FILESDIR}"/gn-gen-r5.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 + echo "$@" >&2 + "$@" || die + 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} +} |