public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "William Hubbs" <williamh@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/github-cli/
Date: Fri, 12 Jan 2024 22:32:19 +0000 (UTC)	[thread overview]
Message-ID: <1705098734.821fafdf5a99d98dab61b81c07f73ca628a0a085.williamh@gentoo> (raw)

commit:     821fafdf5a99d98dab61b81c07f73ca628a0a085
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 12 22:31:51 2024 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Fri Jan 12 22:32:14 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=821fafdf

dev-util/github-cli: add 2.42.0

Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 dev-util/github-cli/Manifest                 |  2 +
 dev-util/github-cli/github-cli-2.42.0.ebuild | 66 ++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+)

diff --git a/dev-util/github-cli/Manifest b/dev-util/github-cli/Manifest
index 449806aa8f13..6889afc81397 100644
--- a/dev-util/github-cli/Manifest
+++ b/dev-util/github-cli/Manifest
@@ -6,3 +6,5 @@ DIST github-cli-2.32.1-deps.tar.xz 100042076 BLAKE2B d362088e2fd24938c52c352ca88
 DIST github-cli-2.32.1.tar.gz 897387 BLAKE2B 0a46b501958b3fc1b5d3e5467292dd3a3e4cc721d5ac822f637e26f345654bed01bdb27283a86351460c5f2650a54b635abf839e312bfe9b98b794eb60880aff SHA512 4b5b56809110c6b7c19dec344c7171df0eed0bcf5388bc0c63ce5ac4a3b6f4606f1e8de207f5b6889834013059013e8a4b6701b82b933322ed4fcf0e48144b72
 DIST github-cli-2.33.0-deps.tar.xz 100032668 BLAKE2B bffaed49d2724951a34e37632ff131f47f66fb79516a42482d2e0d7399b29266cad5b8519912feb33e279d5b7d39b76efaeaaa48ff462db9912e063b41ce8dc3 SHA512 aefdb7c12507dbf02acccc943be9074f7eac12beefd7a5f8a7a08bbacbbaa46cd91f46262258b3fc0a00b41fb0ccf4816621e9ebe4f2bb10b5f6c5e6260ac003
 DIST github-cli-2.33.0.tar.gz 898066 BLAKE2B 0af992e0687c1e5c2c3552e35419a65af348f76eee91f38377396eb7e7713e8c982b4677a9c35f329380d0281b443e342bb6470b0eade85118248e41333266db SHA512 76a5490964828e375eb3cc0a625c25e6005f9cd44ae40ec04432fd7672bed4628b4db4ffdc713ec2cb59f00c6308e5cf2141a3c932d08ccef4fe5ef676b09916
+DIST github-cli-2.42.0-deps.tar.xz 101578632 BLAKE2B 54153cd48dac9b2f3fc094b5060cca3d9911bda33dfd7e1b42f23b74f97597a664c8e490bec70c6e1215c2310aa6862398da035c3f662e819e158802b915d216 SHA512 4e7c0ac720ef8e2c5ab4c6d0918abc0e8a6c17df31566f4b0e49b74f90225093b792ec6d60ffb98db1a53eaa7a52e2fbcb1a059c57972e344522216a85736f90
+DIST github-cli-2.42.0.tar.gz 825997 BLAKE2B dadb64c62f55ed02c48b56ad02762b806fd4eb0c26c5d9509c9976b6fbddfc542fe46bc54c1790394ac7874e7632f655c001fdcd6cc629fa1fa1b4fc984211b3 SHA512 b8e76ea0bda9f9e78d9b8d5ff57326c1fa77f280688948facd83549d88f3d2259516ad9bb0f0455cecfa34168ef317f01683383cbe1b41e150b5ea9ab8c2fa2b

diff --git a/dev-util/github-cli/github-cli-2.42.0.ebuild b/dev-util/github-cli/github-cli-2.42.0.ebuild
new file mode 100644
index 000000000000..2d0c1da34ead
--- /dev/null
+++ b/dev-util/github-cli/github-cli-2.42.0.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit bash-completion-r1 flag-o-matic go-module
+
+DESCRIPTION="GitHub CLI"
+HOMEPAGE="https://github.com/cli/cli"
+
+if [[ ${PV} == *9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/cli/cli.git"
+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 ~arm64 ~loong ~ppc64 ~riscv"
+	S="${WORKDIR}/cli-${PV}"
+fi
+
+LICENSE="MIT Apache-2.0 BSD BSD-2 MPL-2.0"
+SLOT="0"
+
+RDEPEND=">=dev-vcs/git-1.7.3"
+
+RESTRICT="test"
+
+src_unpack() {
+	if [[ ${PV} == *9999 ]]; then
+		git-r3_src_unpack
+		go-module_live_vendor
+	else
+		go-module_src_unpack
+	fi
+}
+
+src_compile() {
+	[[ ${PV} == *9999 ]] || export GH_VERSION="v${PV}"
+	# Filter LTO flags to avoid build failures.
+	filter-lto
+	# Filter '-ggdb3' flag to avoid build failures. bugs.gentoo.org/847991
+	filter-flags "-ggdb3"
+	# 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
+}


             reply	other threads:[~2024-01-12 22:32 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-12 22:32 William Hubbs [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-10 17:38 [gentoo-commits] repo/gentoo:master commit in: dev-util/github-cli/ William Hubbs
2025-02-10 17:36 William Hubbs
2025-01-08 19:04 William Hubbs
2025-01-08 19:01 William Hubbs
2025-01-08 19:01 William Hubbs
2024-08-15 21:18 Sam James
2024-08-15 21:18 Sam James
2024-06-27 16:48 William Hubbs
2023-09-01 18:08 William Hubbs
2023-08-07 19:31 William Hubbs
2023-06-24  2:59 Sam James
2023-06-22 20:39 William Hubbs
2023-06-22 20:38 William Hubbs
2023-04-13 15:02 William Hubbs
2023-01-16 20:11 William Hubbs
2022-12-01 21:16 William Hubbs
2022-12-01 21:13 William Hubbs
2022-10-19 20:42 William Hubbs
2022-10-19 20:42 William Hubbs
2022-08-25  7:07 WANG Xuerui
2022-08-25  7:07 WANG Xuerui
2022-08-05 19:00 William Hubbs
2022-08-04 18:41 Arthur Zamarin
2022-08-04  6:27 Arthur Zamarin
2022-06-22 14:55 William Hubbs
2022-06-22 14:55 William Hubbs
2022-06-01  1:51 Sam James
2022-06-01  1:51 Sam James
2022-06-01  1:51 Sam James
2022-06-01  1:51 Sam James
2022-05-24 15:12 William Hubbs
2022-05-24 15:12 William Hubbs
2022-05-24 15:04 William Hubbs
2022-04-20  1:44 William Hubbs
2022-03-10  2:37 Yixun Lan
2022-02-22 15:25 William Hubbs
2022-02-22 15:10 William Hubbs
2022-01-01 18:05 William Hubbs
2021-08-26 16:09 William Hubbs
2021-08-26 16:07 William Hubbs
2021-08-10 21:02 William Hubbs
2021-08-10 21:02 William Hubbs
2021-05-25 11:12 Joonas Niilola
2021-04-16  6:04 William Hubbs
2021-04-02 17:29 William Hubbs
2021-03-14 17:58 William Hubbs
2021-02-24 19:22 William Hubbs
2021-01-29 16:40 William Hubbs
2021-01-29 16:37 William Hubbs
2021-01-29 15:54 William Hubbs
2020-12-23 17:03 William Hubbs
2020-09-17 14:12 William Hubbs
2020-07-26 17:52 William Hubbs
2020-06-12 21:14 William Hubbs
2020-06-07 18:00 William Hubbs
2020-05-31  4:18 Robin H. Johnson
2020-05-31  4:18 Robin H. Johnson
2020-05-31  4:18 Robin H. Johnson
2020-05-26 20:19 William Hubbs
2020-05-18 15:48 Mike Gilbert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1705098734.821fafdf5a99d98dab61b81c07f73ca628a0a085.williamh@gentoo \
    --to=williamh@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox