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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EC1AA13835A for ; Sun, 31 May 2020 04:18:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 86272E0870; Sun, 31 May 2020 04:18:05 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6555EE086D for ; Sun, 31 May 2020 04:18:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DD79634F00C for ; Sun, 31 May 2020 04:18:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D1E9F276 for ; Sun, 31 May 2020 04:18:01 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1590898614.a7181fdca50e66f58ab6bb09d5d8bec30719a086.robbat2@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: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: a7181fdca50e66f58ab6bb09d5d8bec30719a086 X-VCS-Branch: master Date: Sun, 31 May 2020 04:18:01 +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: d13b0d3a-9b10-45d6-b8c2-44576a2d44d9 X-Archives-Hash: f534cd35328c94404c1a7309b151bab0 commit: a7181fdca50e66f58ab6bb09d5d8bec30719a086 Author: Robin H. Johnson gentoo org> AuthorDate: Sun May 31 04:16:54 2020 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Sun May 31 04:16:54 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7181fdc dev-util/github-cli: sync live ebuild Signed-off-by: Robin H. Johnson gentoo.org> dev-util/github-cli/github-cli-9999.ebuild | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/dev-util/github-cli/github-cli-9999.ebuild b/dev-util/github-cli/github-cli-9999.ebuild index 0cdc3f07d7d..9da2da770a1 100644 --- a/dev-util/github-cli/github-cli-9999.ebuild +++ b/dev-util/github-cli/github-cli-9999.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit go-module +inherit bash-completion-r1 go-module DESCRIPTION="GitHub CLI" HOMEPAGE="https://github.com/cli/cli" @@ -277,6 +277,10 @@ BDEPEND=">=dev-lang/go-1.13" unset GOBIN GOPATH GOCODE +PATCHES=( + "${FILESDIR}/cli-0.9.0-manpage-build-gen-docs.patch" +) + src_unpack() { if [[ ${PV} == *9999 ]]; then git-r3_src_unpack @@ -290,10 +294,24 @@ src_compile() { [[ ${PV} == *9999 ]] || export GH_VERSION="v${PV}" # Golang LDFLAGS are not the same as GCC/Binutils LDFLAGS unset LDFLAGS - emake + + emake bin/gh # default target + + einfo "Building manpage" + emake manpages + + einfo "Building completion" + bin/gh completion -s bash > gh.bash-completion || die + bin/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 }