public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Robin H. Johnson" <robbat2@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/github-cli/
Date: Sun, 31 May 2020 04:18:01 +0000 (UTC)	[thread overview]
Message-ID: <1590898614.a7181fdca50e66f58ab6bb09d5d8bec30719a086.robbat2@gentoo> (raw)

commit:     a7181fdca50e66f58ab6bb09d5d8bec30719a086
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sun May 31 04:16:54 2020 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> 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 <robbat2 <AT> 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
 }


             reply	other threads:[~2020-05-31  4:18 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-31  4:18 Robin H. Johnson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-08-15 21:18 [gentoo-commits] repo/gentoo:master commit in: dev-util/github-cli/ Sam James
2024-08-15 21:18 Sam James
2024-06-27 16:48 William Hubbs
2024-01-12 22:32 William Hubbs
2023-09-01 18:08 William Hubbs
2023-08-07 19:31 William Hubbs
2023-06-24  2:59 Sam James
2023-06-22 20:39 William Hubbs
2023-06-22 20:38 William Hubbs
2023-04-13 15:02 William Hubbs
2023-01-16 20:11 William Hubbs
2022-12-01 21:16 William Hubbs
2022-12-01 21:13 William Hubbs
2022-10-19 20:42 William Hubbs
2022-10-19 20:42 William Hubbs
2022-08-25  7:07 WANG Xuerui
2022-08-25  7:07 WANG Xuerui
2022-08-05 19:00 William Hubbs
2022-08-04 18:41 Arthur Zamarin
2022-08-04  6:27 Arthur Zamarin
2022-06-22 14:55 William Hubbs
2022-06-22 14:55 William Hubbs
2022-06-01  1:51 Sam James
2022-06-01  1:51 Sam James
2022-06-01  1:51 Sam James
2022-06-01  1:51 Sam James
2022-05-24 15:12 William Hubbs
2022-05-24 15:12 William Hubbs
2022-05-24 15:04 William Hubbs
2022-04-20  1:44 William Hubbs
2022-03-10  2:37 Yixun Lan
2022-02-22 15:25 William Hubbs
2022-02-22 15:10 William Hubbs
2022-01-01 18:05 William Hubbs
2021-08-26 16:09 William Hubbs
2021-08-26 16:07 William Hubbs
2021-08-10 21:02 William Hubbs
2021-08-10 21:02 William Hubbs
2021-05-25 11:12 Joonas Niilola
2021-04-16  6:04 William Hubbs
2021-04-02 17:29 William Hubbs
2021-03-14 17:58 William Hubbs
2021-02-24 19:22 William Hubbs
2021-01-29 16:40 William Hubbs
2021-01-29 16:37 William Hubbs
2021-01-29 15:54 William Hubbs
2020-12-23 17:03 William Hubbs
2020-09-17 14:12 William Hubbs
2020-07-26 17:52 William Hubbs
2020-06-12 21:14 William Hubbs
2020-06-07 18:00 William Hubbs
2020-05-31  4:18 Robin H. Johnson
2020-05-31  4:18 Robin H. Johnson
2020-05-26 20:19 William Hubbs
2020-05-18 15:48 Mike Gilbert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1590898614.a7181fdca50e66f58ab6bb09d5d8bec30719a086.robbat2@gentoo \
    --to=robbat2@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox