summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2020-06-12 16:12:46 -0500
committerWilliam Hubbs <williamh@gentoo.org>2020-06-12 16:12:46 -0500
commit23d6e910651b74097e39c40d22e2bc8675d1b31a (patch)
tree602b2a0090486558b2d5b2b2efddf95395a4cdb1 /dev-util
parenteclass/go-module.eclass: remove EGO_VENDOR support (diff)
downloadgentoo-23d6e910651b74097e39c40d22e2bc8675d1b31a.tar.gz
gentoo-23d6e910651b74097e39c40d22e2bc8675d1b31a.tar.bz2
gentoo-23d6e910651b74097e39c40d22e2bc8675d1b31a.zip
dev-util/github-cli: sync live ebuild
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/github-cli/github-cli-9999.ebuild23
1 files changed, 9 insertions, 14 deletions
diff --git a/dev-util/github-cli/github-cli-9999.ebuild b/dev-util/github-cli/github-cli-9999.ebuild
index 9da2da770a1f..a85b465b8d87 100644
--- a/dev-util/github-cli/github-cli-9999.ebuild
+++ b/dev-util/github-cli/github-cli-9999.ebuild
@@ -273,13 +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"
-
-unset GOBIN GOPATH GOCODE
-
-PATCHES=(
- "${FILESDIR}/cli-0.9.0-manpage-build-gen-docs.patch"
-)
src_unpack() {
if [[ ${PV} == *9999 ]]; then
@@ -292,17 +285,19 @@ 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
- emake bin/gh # default target
-
- einfo "Building manpage"
+ einfo "Building man pages"
emake manpages
- einfo "Building completion"
- bin/gh completion -s bash > gh.bash-completion || die
- bin/gh completion -s zsh > gh.zsh-completion || die
+ 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() {