summaryrefslogtreecommitdiff
path: root/dev-util/github-cli
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-06-13 10:39:22 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-06-13 10:39:22 +0100
commit9452a6e87b6c2c70513bc47a2470bf9f1168920e (patch)
tree8ac67e26b45f34d71c5aab3621813b100a0d5f00 /dev-util/github-cli
parentf516638b7fe9592837389826a6152a7e1b251c54 (diff)
gentoo resync : 13.06.2020
Diffstat (limited to 'dev-util/github-cli')
-rw-r--r--dev-util/github-cli/Manifest6
-rw-r--r--dev-util/github-cli/github-cli-0.8.0.ebuild2
-rw-r--r--dev-util/github-cli/github-cli-0.9.0-r1.ebuild (renamed from dev-util/github-cli/github-cli-0.9.0.ebuild)21
-rw-r--r--dev-util/github-cli/github-cli-9999.ebuild21
4 files changed, 41 insertions, 9 deletions
diff --git a/dev-util/github-cli/Manifest b/dev-util/github-cli/Manifest
index 2b7b8fcc36d9..44bc6154ac63 100644
--- a/dev-util/github-cli/Manifest
+++ b/dev-util/github-cli/Manifest
@@ -249,7 +249,7 @@ DIST gopkg.in%2Fyaml.v2%2F@v%2Fv2.2.8.zip 80666 BLAKE2B ff3645b71cedd41b9fef6e5d
DIST gopkg.in%2Fyaml.v3%2F@v%2Fv3.0.0-20200121175148-a6ecf24a6d71.mod 95 BLAKE2B fbb87f0644ec9da5d4386358d23cdb15b0d23e8212e712f16f338455a3a0ad19fbfd63e92c955c359237ddfa8bb76d6d08280eead24d321668431891eca1e8ab SHA512 307ca9123efc577ca04828996ee9d8edbb51794ccb4b8d9f169ba689e7276aa5f6ae106a04b22b7fab853ffacfebcbf74468b64eaefd57445864c1fbc77fad9d
DIST gopkg.in%2Fyaml.v3%2F@v%2Fv3.0.0-20200121175148-a6ecf24a6d71.zip 101288 BLAKE2B e67aaf35537a57e2fd73a0ebf74e6a15924c43ad58ad5cdb7acb67b82031ea86b79eec9a11548c08a08664f6812bc9066fcffa918496591c1f0ddd15a05a4a29 SHA512 e89999a0ccf811c36b476a131197084fd1ad30f2c801cbcf3e9184adac69587ddbc9df2650e8be47bf1a1e1b89422a62484076c3d124470f8013e72a379b0740
DIST honnef.co%2Fgo%2Ftools%2F@v%2Fv0.0.0-20190102054323-c2f93a96b099.mod 26 BLAKE2B db6cc87a17bed88b955e6b36a17568930239c94a969211b02c2d5acc70386fbea63ac44365a0d3241e900125bd64644d698d8f1bdcabc3e6cf99c47259c63df5 SHA512 d00ae74b24e7fb3ff351ff68b88e59636153bbcf92b36e81e91556e3e75a7ccfb08ce471f757f92fd7612378944de3d7309c73923812e2df6a26b74e999ca9ce
-EBUILD github-cli-0.8.0.ebuild 13949 BLAKE2B 7da8405980fc41f06f61ea63290900f1c80cc7458088e1afa1ff8b72369e2d75e2648aad048c922e858aa130e425b1f0e94bb7029bbfd3ec8f13cebf02bb4f9a SHA512 c17c31e16639001e73f7be294c0cfc9f493ac93cb255c742cd90c743c1a9932d379dcc754aed0c319083ef2a3fa67e0c98799c6bf90b2bf01c34a434db8d8142
-EBUILD github-cli-0.9.0.ebuild 13949 BLAKE2B 7da8405980fc41f06f61ea63290900f1c80cc7458088e1afa1ff8b72369e2d75e2648aad048c922e858aa130e425b1f0e94bb7029bbfd3ec8f13cebf02bb4f9a SHA512 c17c31e16639001e73f7be294c0cfc9f493ac93cb255c742cd90c743c1a9932d379dcc754aed0c319083ef2a3fa67e0c98799c6bf90b2bf01c34a434db8d8142
-EBUILD github-cli-9999.ebuild 13949 BLAKE2B 7da8405980fc41f06f61ea63290900f1c80cc7458088e1afa1ff8b72369e2d75e2648aad048c922e858aa130e425b1f0e94bb7029bbfd3ec8f13cebf02bb4f9a SHA512 c17c31e16639001e73f7be294c0cfc9f493ac93cb255c742cd90c743c1a9932d379dcc754aed0c319083ef2a3fa67e0c98799c6bf90b2bf01c34a434db8d8142
+EBUILD github-cli-0.8.0.ebuild 13976 BLAKE2B 4f07e3c272f93aaaec21d91e87d6e9dcc5a4727f98e3d37f1aeab73082b653debe44274d54a9bc9a71065f260c1eaa32aa0e0be76846237b4f06255d730287da SHA512 daf47d0f292f8f8bcfc1137cba8cf67df3677daa99f08d7bf2d4c2db080e581c7a7c5cc398ad223a0126e72a31407eaa135deeca3c5b71651af7ae51dbbc4d76
+EBUILD github-cli-0.9.0-r1.ebuild 14428 BLAKE2B f50d76ca95adf375bef2be3a8e514b1839c1dc1778ae29cf9b851dacfa127ea71bd8a639c65d63e326a21436acb0ec23bbdf6e7ab3f4efc1154bd4e24ee5241c SHA512 e2fbaca1d718798501aabc8362b1f62c7eab0b4d48314d2650b5fa203927618237ea51b583c38b70ed5afae5ce7ed090e89a98dcd4ffa3e6b468d201c7e24798
+EBUILD github-cli-9999.ebuild 14428 BLAKE2B f50d76ca95adf375bef2be3a8e514b1839c1dc1778ae29cf9b851dacfa127ea71bd8a639c65d63e326a21436acb0ec23bbdf6e7ab3f4efc1154bd4e24ee5241c SHA512 e2fbaca1d718798501aabc8362b1f62c7eab0b4d48314d2650b5fa203927618237ea51b583c38b70ed5afae5ce7ed090e89a98dcd4ffa3e6b468d201c7e24798
MISC metadata.xml 332 BLAKE2B 54306af02dde121faa49501abda73a96982f0e2aa0c34b1bc3698594d558b52aa4f98cf2c966a5d3cc2df698cade7461d99de437a92edc41958d0057c8cfd339 SHA512 f3aec1ccc8b69282598c560f63162fae9fadb47e784725e0d05631d2b4686bfd001f6b0a899dab39c977a9da5788b5c38f796723653f80be2b65525ea5e7f930
diff --git a/dev-util/github-cli/github-cli-0.8.0.ebuild b/dev-util/github-cli/github-cli-0.8.0.ebuild
index 61c48d3dee4c..0cdc3f07d7d5 100644
--- a/dev-util/github-cli/github-cli-0.8.0.ebuild
+++ b/dev-util/github-cli/github-cli-0.8.0.ebuild
@@ -275,6 +275,8 @@ SLOT="0"
RDEPEND=">=dev-vcs/git-1.7.3"
BDEPEND=">=dev-lang/go-1.13"
+unset GOBIN GOPATH GOCODE
+
src_unpack() {
if [[ ${PV} == *9999 ]]; then
git-r3_src_unpack
diff --git a/dev-util/github-cli/github-cli-0.9.0.ebuild b/dev-util/github-cli/github-cli-0.9.0-r1.ebuild
index 61c48d3dee4c..a85b465b8d87 100644
--- a/dev-util/github-cli/github-cli-0.9.0.ebuild
+++ b/dev-util/github-cli/github-cli-0.9.0-r1.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"
@@ -273,7 +273,6 @@ LICENSE="MIT Apache-2.0 BSD BSD-2 MPL-2.0"
SLOT="0"
RDEPEND=">=dev-vcs/git-1.7.3"
-BDEPEND=">=dev-lang/go-1.13"
src_unpack() {
if [[ ${PV} == *9999 ]]; then
@@ -286,12 +285,28 @@ src_unpack() {
src_compile() {
[[ ${PV} == *9999 ]] || export GH_VERSION="v${PV}"
- # Golang LDFLAGS are not the same as GCC/Binutils LDFLAGS
+ # Go LDFLAGS are not the same as GCC/Binutils LDFLAGS
unset LDFLAGS
+ # 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
}
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
}
diff --git a/dev-util/github-cli/github-cli-9999.ebuild b/dev-util/github-cli/github-cli-9999.ebuild
index 61c48d3dee4c..a85b465b8d87 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"
@@ -273,7 +273,6 @@ LICENSE="MIT Apache-2.0 BSD BSD-2 MPL-2.0"
SLOT="0"
RDEPEND=">=dev-vcs/git-1.7.3"
-BDEPEND=">=dev-lang/go-1.13"
src_unpack() {
if [[ ${PV} == *9999 ]]; then
@@ -286,12 +285,28 @@ src_unpack() {
src_compile() {
[[ ${PV} == *9999 ]] || export GH_VERSION="v${PV}"
- # Golang LDFLAGS are not the same as GCC/Binutils LDFLAGS
+ # Go LDFLAGS are not the same as GCC/Binutils LDFLAGS
unset LDFLAGS
+ # 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
}
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
}