Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/github-cli/
Date: Sun, 31 May 2020 04:18:06
Message-Id: 1590898614.a7181fdca50e66f58ab6bb09d5d8bec30719a086.robbat2@gentoo
1 commit: a7181fdca50e66f58ab6bb09d5d8bec30719a086
2 Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 31 04:16:54 2020 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Sun May 31 04:16:54 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7181fdc
7
8 dev-util/github-cli: sync live ebuild
9
10 Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
11
12 dev-util/github-cli/github-cli-9999.ebuild | 22 ++++++++++++++++++++--
13 1 file changed, 20 insertions(+), 2 deletions(-)
14
15 diff --git a/dev-util/github-cli/github-cli-9999.ebuild b/dev-util/github-cli/github-cli-9999.ebuild
16 index 0cdc3f07d7d..9da2da770a1 100644
17 --- a/dev-util/github-cli/github-cli-9999.ebuild
18 +++ b/dev-util/github-cli/github-cli-9999.ebuild
19 @@ -2,7 +2,7 @@
20 # Distributed under the terms of the GNU General Public License v2
21
22 EAPI=7
23 -inherit go-module
24 +inherit bash-completion-r1 go-module
25
26 DESCRIPTION="GitHub CLI"
27 HOMEPAGE="https://github.com/cli/cli"
28 @@ -277,6 +277,10 @@ BDEPEND=">=dev-lang/go-1.13"
29
30 unset GOBIN GOPATH GOCODE
31
32 +PATCHES=(
33 + "${FILESDIR}/cli-0.9.0-manpage-build-gen-docs.patch"
34 +)
35 +
36 src_unpack() {
37 if [[ ${PV} == *9999 ]]; then
38 git-r3_src_unpack
39 @@ -290,10 +294,24 @@ src_compile() {
40 [[ ${PV} == *9999 ]] || export GH_VERSION="v${PV}"
41 # Golang LDFLAGS are not the same as GCC/Binutils LDFLAGS
42 unset LDFLAGS
43 - emake
44 +
45 + emake bin/gh # default target
46 +
47 + einfo "Building manpage"
48 + emake manpages
49 +
50 + einfo "Building completion"
51 + bin/gh completion -s bash > gh.bash-completion || die
52 + bin/gh completion -s zsh > gh.zsh-completion || die
53 }
54
55 src_install() {
56 dobin bin/gh
57 dodoc README.md
58 +
59 + doman share/man/man?/gh*.?
60 +
61 + newbashcomp gh.bash-completion gh
62 + insinto /usr/share/zsh/site-functions
63 + newins gh.zsh-completion _gh
64 }