summaryrefslogtreecommitdiff
path: root/dev-util/github-cli/github-cli-9999.ebuild
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-01-09 06:53:26 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-01-09 06:53:26 +0000
commit6f4e6285f5373fe15b17b9cef200c1e131138ede (patch)
tree1087890e3b4168e858b1eb6ac1e7b5bc6bee49fc /dev-util/github-cli/github-cli-9999.ebuild
parent7a3da982c66469a5e151b94c0452e4d60b979694 (diff)
downloadbaldeagleos-repo-6f4e6285f5373fe15b17b9cef200c1e131138ede.tar.gz
baldeagleos-repo-6f4e6285f5373fe15b17b9cef200c1e131138ede.tar.xz
baldeagleos-repo-6f4e6285f5373fe15b17b9cef200c1e131138ede.zip
Adding metadata
Diffstat (limited to 'dev-util/github-cli/github-cli-9999.ebuild')
-rw-r--r--dev-util/github-cli/github-cli-9999.ebuild28
1 files changed, 6 insertions, 22 deletions
diff --git a/dev-util/github-cli/github-cli-9999.ebuild b/dev-util/github-cli/github-cli-9999.ebuild
index 2ec1463144a6..cd54bf0e7d58 100644
--- a/dev-util/github-cli/github-cli-9999.ebuild
+++ b/dev-util/github-cli/github-cli-9999.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-inherit bash-completion-r1 go-module
+inherit go-module
DESCRIPTION="GitHub CLI"
HOMEPAGE="https://github.com/cli/cli"
@@ -13,7 +13,7 @@ if [[ ${PV} == *9999 ]]; then
else
SRC_URI="https://github.com/cli/cli/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
- KEYWORDS="~amd64 ~loong ~riscv"
+ KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv"
S="${WORKDIR}/cli-${PV}"
fi
@@ -34,27 +34,11 @@ src_unpack() {
}
src_compile() {
- [[ ${PV} == *9999 ]] || export GH_VERSION="v${PV}"
- # 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
+ [[ ${PV} != 9999 ]] && export GH_VERSION="v${PV}"
+ emake prefix=/usr bin/gh manpages completions
}
src_install() {
- dobin bin/gh
+ emake prefix=/usr DESTDIR="${D}" install
dodoc README.md
-
- doman share/man/man?/gh*.?
-
- newbashcomp gh.bash-completion gh
- insinto /usr/share/zsh/site-functions
- newins gh.zsh-completion _gh
}