diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-07-18 13:00:52 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-07-18 13:00:52 +0100 |
commit | e0722f6145f1e8db6281ff135d83442091b31620 (patch) | |
tree | e12d701878d995460a24779bd4e1d7689acbeb78 /dev-util/gn/gn-0.2114.ebuild | |
parent | dcb9c4187a31b8b770600503289d2ad39745e782 (diff) |
gentoo auto-resync : 18:07:2023 - 13:00:52
Diffstat (limited to 'dev-util/gn/gn-0.2114.ebuild')
-rw-r--r-- | dev-util/gn/gn-0.2114.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/dev-util/gn/gn-0.2114.ebuild b/dev-util/gn/gn-0.2114.ebuild new file mode 100644 index 000000000000..a68b570ed9b3 --- /dev/null +++ b/dev-util/gn/gn-0.2114.ebuild @@ -0,0 +1,61 @@ +# Copyright 2018-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{9..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-util/gn/${P}.tar.xz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86" + +BDEPEND=" + ${PYTHON_DEPS} + dev-util/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} +} |