Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/github-cli/
Date: Fri, 05 Aug 2022 19:00:21
Message-Id: 1659726010.abbe89c2241490f807758dd2ac0cc3cf8ee68ee3.williamh@gentoo
1 commit: abbe89c2241490f807758dd2ac0cc3cf8ee68ee3
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 5 18:57:10 2022 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 5 19:00:10 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=abbe89c2
7
8 dev-util/github-cli: add 2.14.3
9
10 Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
11
12 dev-util/github-cli/Manifest | 2 +
13 dev-util/github-cli/github-cli-2.14.3.ebuild | 66 ++++++++++++++++++++++++++++
14 2 files changed, 68 insertions(+)
15
16 diff --git a/dev-util/github-cli/Manifest b/dev-util/github-cli/Manifest
17 index 7da0067c9091..bc0727811d30 100644
18 --- a/dev-util/github-cli/Manifest
19 +++ b/dev-util/github-cli/Manifest
20 @@ -2,3 +2,5 @@ DIST github-cli-2.11.3-deps.tar.xz 76137064 BLAKE2B 6b8a224f8e0b05c32c8be83b4f5a
21 DIST github-cli-2.11.3.tar.gz 716386 BLAKE2B dcb07cda11e03ffe75a9ec2fcb0ed33c1f2c6bb7599ed1b47ee9e1e0df609fa21ae2dd043be417cfee75dcb3686290f510c0fdffc0b1df08f816ab2ac79d940b SHA512 952cd7c2a327c7169e201a4aa7c26a0e5c09a1ecef51b8d7c620fa9a849c2e8cc61447333f785851487a68d058b869e10bb290188594bd2fb00b0384297bdfd8
22 DIST github-cli-2.12.1-deps.tar.xz 76485020 BLAKE2B c2d7e31a2fba9c34fc75c8d8f6836accbd2029b8f6be51c4ffda3d96ec06b9f331700573ac8478550676ed9385b8bc34ffa02a81d91aec3bde4bece0addae668 SHA512 1aa684d5aad6c5da45d4e0d8fe2c282a563890d7f48260668b393b0e93674b5c75862a84c421c8600c92d09ebfe655baaa42e3e7a4dc2f7a0792384ea555b2fc
23 DIST github-cli-2.12.1.tar.gz 717685 BLAKE2B b9782846185b8fd5295651cfdd082b987555edd0c3ae2ef7e0d69e100f331ea89e5ae9b8824af013f008677df2a0e8313b52cd7e0d95110884a62eb9e6e5c32e SHA512 508f02cfb12bec485a6123bf04056e879832a762d7563c73d1f006f4c382cad75cfb73ae74f66f9ed90b0cfd68956434f2100bab1dd7c93ec6d0d7b3a9d2c13f
24 +DIST github-cli-2.14.3-deps.tar.xz 77143036 BLAKE2B 7f06905270a7c9b17bbe8a83353c57da84cb365283fbb4bc488f2ce8873de79494adcf9d34aacd057d7610c3a68107f7fa19fcf74e885025a5e9f44ba49890a0 SHA512 da2b7d57160d22645b491fa8ffc93148c096a10b65aa9d4d4b8b4b1837460f3c5296d704e6f4fa0fd709d3f7c590cdf39c4c637c38b255c8b389ef106c35fb90
25 +DIST github-cli-2.14.3.tar.gz 716098 BLAKE2B 7b45f97859501be4e639584e287d2114b9ed87402d3f35cc56eebdef8bf2b3cf8b9ecff633cf44a822edf20a5000c38a5b1c38822b0bf670d6c4c9c4e5e1a052 SHA512 460f3c053c1f0bea458f7a891f2b1a4cbd68b754bc165e3b097215748fc220f96138cf010608092702c86403d4551b288faba4349a69ae0e92b93ef4564825b5
26
27 diff --git a/dev-util/github-cli/github-cli-2.14.3.ebuild b/dev-util/github-cli/github-cli-2.14.3.ebuild
28 new file mode 100644
29 index 000000000000..77fd1c37e6b9
30 --- /dev/null
31 +++ b/dev-util/github-cli/github-cli-2.14.3.ebuild
32 @@ -0,0 +1,66 @@
33 +# Copyright 1999-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +inherit bash-completion-r1 flag-o-matic go-module
38 +
39 +DESCRIPTION="GitHub CLI"
40 +HOMEPAGE="https://github.com/cli/cli"
41 +
42 +if [[ ${PV} == *9999 ]]; then
43 + inherit git-r3
44 + EGIT_REPO_URI="https://github.com/cli/cli.git"
45 +else
46 + SRC_URI="https://github.com/cli/cli/archive/v${PV}.tar.gz -> ${P}.tar.gz"
47 + SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
48 + KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv"
49 + S="${WORKDIR}/cli-${PV}"
50 +fi
51 +
52 +LICENSE="MIT Apache-2.0 BSD BSD-2 MPL-2.0"
53 +SLOT="0"
54 +
55 +RDEPEND=">=dev-vcs/git-1.7.3"
56 +
57 +RESTRICT="test"
58 +
59 +src_unpack() {
60 + if [[ ${PV} == *9999 ]]; then
61 + git-r3_src_unpack
62 + go-module_live_vendor
63 + else
64 + go-module_src_unpack
65 + fi
66 +}
67 +
68 +src_compile() {
69 + [[ ${PV} == *9999 ]] || export GH_VERSION="v${PV}"
70 + # Filter '-flto*' flags to avoid build failures.
71 + filter-flags "-flto*"
72 + # Filter '-ggdb3' flag to avoid build failures. bugs.gentoo.org/847991
73 + filter-flags "-ggdb3"
74 + # Go LDFLAGS are not the same as GCC/Binutils LDFLAGS
75 + unset LDFLAGS
76 + # Once we set up cross compiling, this line will need to be adjusted
77 + # to compile for the target.
78 + # Everything else in this function happens on the host.
79 + emake
80 +
81 + einfo "Building man pages"
82 + emake manpages
83 +
84 + einfo "Building completions"
85 + go run ./cmd/gh completion -s bash > gh.bash-completion || die
86 + go run ./cmd/gh completion -s zsh > gh.zsh-completion || die
87 +}
88 +
89 +src_install() {
90 + dobin bin/gh
91 + dodoc README.md
92 +
93 + doman share/man/man?/gh*.?
94 +
95 + newbashcomp gh.bash-completion gh
96 + insinto /usr/share/zsh/site-functions
97 + newins gh.zsh-completion _gh
98 +}