commit: f332c502504435451dd5da3ff67e20aeac8c075c Author: William Hubbs <williamh <AT> gentoo <DOT> org> AuthorDate: Wed Apr 20 01:42:44 2022 +0000 Commit: William Hubbs <williamh <AT> gentoo <DOT> org> CommitDate: Wed Apr 20 01:44:28 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f332c502
dev-util/github-cli: add 2.8.0 Signed-off-by: William Hubbs <williamh <AT> gentoo.org> dev-util/github-cli/Manifest | 2 + dev-util/github-cli/github-cli-2.8.0.ebuild | 62 +++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/dev-util/github-cli/Manifest b/dev-util/github-cli/Manifest index 5f0f5f64f160..8f13728bda4c 100644 --- a/dev-util/github-cli/Manifest +++ b/dev-util/github-cli/Manifest @@ -50,6 +50,8 @@ DIST dmitri.shuralyov.com%2Fgpu%2Fmtl%2F@v%2Fv0.0.0-20190408044501-666a987793e9. DIST github-cli-2.0.0.tar.gz 548905 BLAKE2B f97d8be57270368999bd62eef1eba3e5ba1a9a7b1f879c3d3f8ef72b2fd68554fc4be37318b43054a7218e81f2984c0b2c2afdc226e81e1b51eb2fb15df72ed8 SHA512 3b0008894690a9a097259410e144e0031dee7c876e0b862e5219009d82a2f50d00ad22e3d92a16c369e9b1f0f51668e868c08d9eeb718dfe8a0337aa00233435 DIST github-cli-2.4.0.tar.gz 637511 BLAKE2B 09576f613bf07b4785619b4a0fa035b37e725aa96657998f7f4c3c05da118f781f85e29e48e8db6c210c284e3e43f482eac5c5f581b56de53c3119f3f47eda12 SHA512 393a09cbd838381627e349b4cd391755794ee71a2e9cf9fee14d155aabb48f1672b7fc100ea6d2782b5e2ca69c85bdc8f99d3aee81ce73e48e1ebc2ae79b91a8 DIST github-cli-2.5.1.tar.gz 659105 BLAKE2B 0dd35ac0b637420bfec007dc2abc0357155ad617b833538bbd9a5781564718bd35326374a7aa7f01d474330f4304b8cb304970480786582fe51bf1af2d6397b3 SHA512 9fcde985114d59f71a6f4bbd52ed603da748225111af745dc211ca750e58552a19e03b723646906d819b9c2e1d3211939de66576a997679c0e8e42ddeeb296de +DIST github-cli-2.8.0-deps.tar.xz 157288896 BLAKE2B 92937cf3c0928c6b8b29e0731d7a94f1df59a59fcbebda9f5a71d9da01963581934fcb112675b648d46398b3b7b522a9c2f5d08103fd31acee77ecec50c79508 SHA512 b0bdc79ca14a5d8309bec336c36e3b95bc0f2aa868ee611fa87f295ac7e5ff24399971ff88109d3d399fedecc311ab10af0f708a812ff0277744c2dae3d80129 +DIST github-cli-2.8.0.tar.gz 700297 BLAKE2B 5a11d89532d57ecbe31a8e526d013f181f82f1c12148914f07f67ae20d6338ad7aa5aa25624136b276eb082f45c969da54744ce0d6398f0c22fe82805d635eab SHA512 c46248a4b2376ff9df07198e9c29bd37dcd6c3a8b50081bfe0686f329b2bec8087506b435a17161af59f06fa26cda630a473c3e9d5470f8cc0c6cf5e25d9cea7 DIST github.com%2F!alec!aivazis%2Fsurvey%2Fv2%2F@v%2Fv2.3.1.mod 708 BLAKE2B e0c08cc53c22f010726a5d7ba629fb11258cfc3cb16987f1ac6b3538383180ac6a6f4fd20d95e022fd8760943c1c51c051bb4a24ce003e70766a972ccdcb32e7 SHA512 667062212128948a6c4ba38da23e92e3e80fd3526f6b0d1b375cc123a0f35461f6586c3c135334bd8d67bb8f1b2fc1c8f3543713a0b7bc29e03ece3b8a21bc80 DIST github.com%2F!alec!aivazis%2Fsurvey%2Fv2%2F@v%2Fv2.3.1.zip 160161 BLAKE2B 5b4515c5ec0982bbb99e949c132605c4df924f89086507990470ccacd0b6c2bbf4212383938cb2bd330872bdd1d0c48a6832724fa875a073caf564e57a7729fa SHA512 575e4d7c8feecc94b8d9f76c8afd10c9bfe90ff21e19c43da1667d0d9374168dea4a031ad3e683d16b8d87288b114f22d31a3f678041b00b2a631292182657b7 DIST github.com%2F!alec!aivazis%2Fsurvey%2Fv2%2F@v%2Fv2.3.2.mod 708 BLAKE2B e0c08cc53c22f010726a5d7ba629fb11258cfc3cb16987f1ac6b3538383180ac6a6f4fd20d95e022fd8760943c1c51c051bb4a24ce003e70766a972ccdcb32e7 SHA512 667062212128948a6c4ba38da23e92e3e80fd3526f6b0d1b375cc123a0f35461f6586c3c135334bd8d67bb8f1b2fc1c8f3543713a0b7bc29e03ece3b8a21bc80 diff --git a/dev-util/github-cli/github-cli-2.8.0.ebuild b/dev-util/github-cli/github-cli-2.8.0.ebuild new file mode 100644 index 000000000000..ec899ad1ea48 --- /dev/null +++ b/dev-util/github-cli/github-cli-2.8.0.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit bash-completion-r1 go-module + +DESCRIPTION="GitHub CLI" +HOMEPAGE="https://github.com/cli/cli" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/cli/cli.git" +else + SRC_URI="https://github.com/cli/cli/archive/v${PV}.tar.gz -> ${P}.tar.gz" + SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz" + KEYWORDS="~amd64 ~riscv" + S="${WORKDIR}/cli-${PV}" +fi + +LICENSE="MIT Apache-2.0 BSD BSD-2 MPL-2.0" +SLOT="0" + +RDEPEND=">=dev-vcs/git-1.7.3" + +RESTRICT="test" + +src_unpack() { + if [[ ${PV} == *9999 ]]; then + git-r3_src_unpack + go-module_live_vendor + else + go-module_src_unpack + fi +} + +src_compile() { + [[ ${PV} == *9999 ]] || export GH_VERSION="v${PV}" + # Go LDFLAGS are not the same as GCC/Binutils LDFLAGS + unset LDFLAGS + # Once we set up cross compiling, this line will need to be adjusted + # to compile for the target. + # Everything else in this function happens on the host. + emake + + einfo "Building man pages" + emake manpages + + einfo "Building completions" + go run ./cmd/gh completion -s bash > gh.bash-completion || die + go run ./cmd/gh completion -s zsh > gh.zsh-completion || die +} + +src_install() { + dobin bin/gh + dodoc README.md + + doman share/man/man?/gh*.? + + newbashcomp gh.bash-completion gh + insinto /usr/share/zsh/site-functions + newins gh.zsh-completion _gh +}