From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B56A315813A for ; Wed, 08 Jan 2025 19:01:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 02278E0798; Wed, 08 Jan 2025 19:01:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 51656E0798 for ; Wed, 08 Jan 2025 19:01:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 789C2342F65 for ; Wed, 08 Jan 2025 19:01:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CE6801BA2 for ; Wed, 08 Jan 2025 19:01:16 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1736362861.92005f922b965c9e1e59b27b09f22289d28e47bc.williamh@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/github-cli/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/github-cli/github-cli-9999.ebuild X-VCS-Directories: dev-util/github-cli/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 92005f922b965c9e1e59b27b09f22289d28e47bc X-VCS-Branch: master Date: Wed, 08 Jan 2025 19:01:16 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e921eb6b-7f78-4247-8850-15eed9c56b2b X-Archives-Hash: 655ca6d62eaf0c09c7391c72f03a49f4 commit: 92005f922b965c9e1e59b27b09f22289d28e47bc Author: William Hubbs gentoo org> AuthorDate: Wed Jan 8 19:01:01 2025 +0000 Commit: William Hubbs gentoo 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 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 }