commit:     92005f922b965c9e1e59b27b09f22289d28e47bc
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Wed Jan  8 19:01:01 2025 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Wed Jan  8 19:01:01 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92005f92

dev-util/github-cli: sync live

Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 dev-util/github-cli/github-cli-9999.ebuild | 28 ++++++----------------------
 1 file changed, 6 insertions(+), 22 deletions(-)

diff --git a/dev-util/github-cli/github-cli-9999.ebuild 
b/dev-util/github-cli/github-cli-9999.ebuild
index 2ec1463144a6..cd54bf0e7d58 100644
--- a/dev-util/github-cli/github-cli-9999.ebuild
+++ b/dev-util/github-cli/github-cli-9999.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
-inherit bash-completion-r1 go-module
+inherit go-module
 
 DESCRIPTION="GitHub CLI"
 HOMEPAGE="https://github.com/cli/cli";
@@ -13,7 +13,7 @@ if [[ ${PV} == *9999 ]]; then
 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 ~loong ~riscv"
+       KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv"
        S="${WORKDIR}/cli-${PV}"
 fi
 
@@ -34,27 +34,11 @@ src_unpack() {
 }
 
 src_compile() {
-       [[ ${PV} == *9999 ]] || export GH_VERSION="v${PV}"
-       # 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
+       [[ ${PV} != 9999 ]] && export GH_VERSION="v${PV}"
+       emake prefix=/usr bin/gh manpages completions
 }
 
 src_install() {
-       dobin bin/gh
+       emake prefix=/usr DESTDIR="${D}" install
        dodoc README.md
-
-       doman share/man/man?/gh*.?
-
-       newbashcomp gh.bash-completion gh
-       insinto /usr/share/zsh/site-functions
-       newins gh.zsh-completion _gh
 }

Reply via email to