From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 32405158020 for ; Wed, 19 Oct 2022 20:42:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 79051E08F0; Wed, 19 Oct 2022 20:42:37 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5C1ECE08F0 for ; Wed, 19 Oct 2022 20:42:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7F56B340E69 for ; Wed, 19 Oct 2022 20:42:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 209725DE for ; Wed, 19 Oct 2022 20:42:35 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1666212148.8f6af58d0e25df2b0ced9e6f37fcc63e5a0c4ec3.williamh@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/github-cli/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/github-cli/Manifest dev-util/github-cli/github-cli-2.18.0.ebuild X-VCS-Directories: dev-util/github-cli/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 8f6af58d0e25df2b0ced9e6f37fcc63e5a0c4ec3 X-VCS-Branch: master Date: Wed, 19 Oct 2022 20:42:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 52573f56-fd1f-4c27-b187-2a76f55f14e7 X-Archives-Hash: 67a3f3091ec8482e3edeb88d1c63f6a0 commit: 8f6af58d0e25df2b0ced9e6f37fcc63e5a0c4ec3 Author: William Hubbs gentoo org> AuthorDate: Wed Oct 19 20:42:12 2022 +0000 Commit: William Hubbs gentoo org> CommitDate: Wed Oct 19 20:42:28 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f6af58d dev-util/github-cli: add 2.18.0 Signed-off-by: William Hubbs gentoo.org> dev-util/github-cli/Manifest | 2 + dev-util/github-cli/github-cli-2.18.0.ebuild | 66 ++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) diff --git a/dev-util/github-cli/Manifest b/dev-util/github-cli/Manifest index bc0727811d30..3cddd7104f79 100644 --- a/dev-util/github-cli/Manifest +++ b/dev-util/github-cli/Manifest @@ -4,3 +4,5 @@ DIST github-cli-2.12.1-deps.tar.xz 76485020 BLAKE2B c2d7e31a2fba9c34fc75c8d8f683 DIST github-cli-2.12.1.tar.gz 717685 BLAKE2B b9782846185b8fd5295651cfdd082b987555edd0c3ae2ef7e0d69e100f331ea89e5ae9b8824af013f008677df2a0e8313b52cd7e0d95110884a62eb9e6e5c32e SHA512 508f02cfb12bec485a6123bf04056e879832a762d7563c73d1f006f4c382cad75cfb73ae74f66f9ed90b0cfd68956434f2100bab1dd7c93ec6d0d7b3a9d2c13f DIST github-cli-2.14.3-deps.tar.xz 77143036 BLAKE2B 7f06905270a7c9b17bbe8a83353c57da84cb365283fbb4bc488f2ce8873de79494adcf9d34aacd057d7610c3a68107f7fa19fcf74e885025a5e9f44ba49890a0 SHA512 da2b7d57160d22645b491fa8ffc93148c096a10b65aa9d4d4b8b4b1837460f3c5296d704e6f4fa0fd709d3f7c590cdf39c4c637c38b255c8b389ef106c35fb90 DIST github-cli-2.14.3.tar.gz 716098 BLAKE2B 7b45f97859501be4e639584e287d2114b9ed87402d3f35cc56eebdef8bf2b3cf8b9ecff633cf44a822edf20a5000c38a5b1c38822b0bf670d6c4c9c4e5e1a052 SHA512 460f3c053c1f0bea458f7a891f2b1a4cbd68b754bc165e3b097215748fc220f96138cf010608092702c86403d4551b288faba4349a69ae0e92b93ef4564825b5 +DIST github-cli-2.18.0-deps.tar.xz 98885904 BLAKE2B 2ba1252ca1ddab0e0dda6dbbd6b262d19a701b6cb2a82420a29da5b08dab4369671f40adcdfb34760344d4d220bd91263cdefd7d57b92ce5770b2e682c6e4b44 SHA512 e9b1f87d4ec1c1e9d689df87c8a5d30180b0d60e074e292d262d0f204dc921bf09f13df8589892dccfde9ffd5579bd9c1c83169e36f6dc25b23ba3bfb2aa01be +DIST github-cli-2.18.0.tar.gz 738480 BLAKE2B c56adae59ddbfa6693dff569c265db615e9609f7fee9942c349cb202d64f44ea1e2cccdb89632e65ebb954e133939e54053933b77782c741d768742403975e65 SHA512 3522d42016b165a8ffa5620bd2352023affceabb26d6c14ba5f5eeb5f42e3cfc002c71e7f0c1acbf4d626f0c3588c1609255802aabd1f4f700875ada82ef6826 diff --git a/dev-util/github-cli/github-cli-2.18.0.ebuild b/dev-util/github-cli/github-cli-2.18.0.ebuild new file mode 100644 index 000000000000..834906664386 --- /dev/null +++ b/dev-util/github-cli/github-cli-2.18.0.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2022 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 '-flto*' flags to avoid build failures. + filter-flags "-flto*" + # 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 +}