diff options
Diffstat (limited to 'dev-util/gn')
-rw-r--r-- | dev-util/gn/Manifest | 3 | ||||
-rw-r--r-- | dev-util/gn/gn-0.2122.ebuild | 66 | ||||
-rw-r--r-- | dev-util/gn/gn-9999.ebuild | 66 |
3 files changed, 135 insertions, 0 deletions
diff --git a/dev-util/gn/Manifest b/dev-util/gn/Manifest index a2160310869e..c7b58051bed7 100644 --- a/dev-util/gn/Manifest +++ b/dev-util/gn/Manifest @@ -3,8 +3,11 @@ DIST gn-0.2049.tar.xz 727960 BLAKE2B fe93d09c1fa5b6267a4d26f37ec42e629b36645ef58 DIST gn-0.2077.tar.xz 735596 BLAKE2B 48da6c1b08746d364974c94a8395708ba44f4fb88a4bd6142d8ce3935608538b3e3d316c1b3934b124bb2af8549e0bc355b4f0990ab0b794adca025a4c3db7c5 SHA512 361fa1d71f4c4ed12fec8136fb79ee8d30cd8c9b93f2d9972222e028a8b74326045f000431863c6d7ab598b1d7b06c00c95793830da48f52e623a1246bcc8bc4 DIST gn-0.2088.tar.xz 736408 BLAKE2B 23cb932c6fa1711472e0369b5c9271dd28b1d1a8eee40366295ea576fb0d913f3e01dd802df718d6d55ad27b566b0fae5da0cb03167e38df46bbda284b26f99c SHA512 be1d0a0095a7de9fc130935d45c610ab77dd9451822b33c344ac79d096828752bab04b81183eaa35b654abbb76748ce13751c04d44968d08643b6cd89f3fe8f7 DIST gn-0.2114.tar.xz 740080 BLAKE2B 51c6d373ed7a33673e76fe8bb40f727193c6e1172fba328916fd2229d1e350cea5c51da734edf6dbf4c0b7bed61a590424484d4150e7cd4c890abba7f43251c7 SHA512 f5370e45bc2a079b79e4bcfc802fbc6cf67f7674a11311f849699f54775593e75def15323843ef887231891cb06b043863c79c5168e565319a4b73fcffa13738 +DIST gn-0.2122.tar.xz 740444 BLAKE2B df57fb611f26964ed3ac47365080cd043ba4206233450bb39699e78e35b8acff918e94efe4e7cea957199dd2f441dfcf31566e7d64ad10aace9d2c1d538ed6ac SHA512 80c330eac876fc0d6f46038b96eefd19bc1b6e5e89515489c1d02f82675213174fba394398ffc1bdd1405ddcd11b60c2870f3076296390976da74012867faf39 EBUILD gn-0.2049.ebuild 1314 BLAKE2B 0f18a123a6ea07c2bf9fbaaa854679f12db7ba38ae154a7dd5124f963891e10a1653dac8f582ba0549f7dc7feb9c84cc16e4d2069b980ee7a221ae14eb8c0d82 SHA512 674a875512675c60a0ddd8576b47ffd927db2ed8fa76665dd7941cb38661b7317c6927f6c0410a01cd3d90b6300d155a78d0b87c7c036ed767b3abc88c87c4e9 EBUILD gn-0.2077.ebuild 1316 BLAKE2B 29c222f0435a87914dbd0f9837aecb94e401fcee0bb2c48945491652b4c81ef03a67e2cc8e3a38c985f7b943c2eb85540ec29d3db52c13dd2e08e08c6b91cb2a SHA512 0a389b3bd5102321311b4ba5bb102079248930c47f929bdeeaf2014e7a7007ba60e9dae757023f1e4fce0ae737167814750c174dc76c1242f0dc5d41185b2144 EBUILD gn-0.2088.ebuild 1270 BLAKE2B dcf621b8d70e5a691429145a81568d4fab14fa0b32ef52c5f333e1a8d96c89946c09b44bd2cbf3f97d4a35d56042a025866b29bbb383db033b3d2edd7e7369aa SHA512 29bb1d08567edb941f08f9deea01316769031252e7cc74fd3dbf66a526fc837c58732dc976f85909d59f99a3747b48a5da43a250e73c87c60c638dd3fcb753cc EBUILD gn-0.2114.ebuild 1268 BLAKE2B bb31d67fd388dfeb69363aa53e88efea68af5beaa826b26ac26500436c47f4282efaab7923f6a0251d9131df0d4925f300e6b80e75ac5644dc14207a4f30b1ff SHA512 ca43d1fc8248f2f8922d889d44179d72a0e1fd73a2437e1fd713e71ad6d210b08f0af27222a21f8bcde08c7544c4e7d57e03e234639c57ccb0a848499e25cc44 +EBUILD gn-0.2122.ebuild 1413 BLAKE2B e7dc0e1a109545798341c72e42ad57635bb8dab8a25db65adfb24849a9b9e8fc8ae03c89402b68b439aa5961fff9f00f3604d5f6abec5175d9d2175002e26a6e SHA512 080283706d031f3d77f79bc02b8131b579099eddbe0678d5de272f4be2560ef2c73eb221213e66865f339e702d11b7ce961bce5f6a027a9b440a0a9b32b717b1 +EBUILD gn-9999.ebuild 1413 BLAKE2B e7dc0e1a109545798341c72e42ad57635bb8dab8a25db65adfb24849a9b9e8fc8ae03c89402b68b439aa5961fff9f00f3604d5f6abec5175d9d2175002e26a6e SHA512 080283706d031f3d77f79bc02b8131b579099eddbe0678d5de272f4be2560ef2c73eb221213e66865f339e702d11b7ce961bce5f6a027a9b440a0a9b32b717b1 MISC metadata.xml 221 BLAKE2B ce7615d8eda5f58e7729bf86156010821052ae580769c3be3922f1270f1211bc5cf297afc5c68db67a46c1c01450c08751fc3cda0995d62bbe60da64d21802d6 SHA512 6ffee27f859f923795e8ded3a5544a82473f72568e96475374b937adbf0963f81d46fbcf4752a9d4eef3f071cadd3dedf141f43802b58c6a788243c7f05114cf diff --git a/dev-util/gn/gn-0.2122.ebuild b/dev-util/gn/gn-0.2122.ebuild new file mode 100644 index 000000000000..399b5b73b12b --- /dev/null +++ b/dev-util/gn/gn-0.2122.ebuild @@ -0,0 +1,66 @@ +# Copyright 2018-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{10..12} ) + +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-util/gn/${P}.tar.xz" + KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86" +fi + +LICENSE="BSD" +SLOT="0" + +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 + 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} +} diff --git a/dev-util/gn/gn-9999.ebuild b/dev-util/gn/gn-9999.ebuild new file mode 100644 index 000000000000..399b5b73b12b --- /dev/null +++ b/dev-util/gn/gn-9999.ebuild @@ -0,0 +1,66 @@ +# Copyright 2018-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{10..12} ) + +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-util/gn/${P}.tar.xz" + KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86" +fi + +LICENSE="BSD" +SLOT="0" + +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 + 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} +} |