mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-21 16:09:05 -07:00
@@ -2,3 +2,4 @@ DIST gn-0.2122.tar.xz 740444 BLAKE2B df57fb611f26964ed3ac47365080cd043ba42062334
|
||||
DIST gn-0.2217.tar.xz 754264 BLAKE2B 671cbe6d3767bf108604cd13fa1363339f1688ed9b2b59a8470225e077762bcc77d491636ba22e73e00ebeaf5054260cbce4e01f4db8cf30b7bf06ecbcb41151 SHA512 9f9872f35c1e8d7b33996377413c81c1cc9d9873fd0e889155089ceb609e6382eae3d776bb3c0cb83fe7c285997f1eca63c2d1807ff895a716cdb52dfc905366
|
||||
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
|
||||
|
||||
66
dev-build/gn/gn-0.2289.ebuild
Normal file
66
dev-build/gn/gn-0.2289.ebuild
Normal file
@@ -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-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}
|
||||
}
|
||||
Reference in New Issue
Block a user