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 28800158089 for ; Mon, 25 Sep 2023 06:33:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0BC472BC029; Mon, 25 Sep 2023 06:33:53 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E9E272BC029 for ; Mon, 25 Sep 2023 06:33:52 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 26085335C7A for ; Mon, 25 Sep 2023 06:33:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 85362125D for ; Mon, 25 Sep 2023 06:33:50 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1695623586.be32161ccdd15119992a6ebc494e0108eca6fc15.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/git-lfs/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-vcs/git-lfs/git-lfs-9999.ebuild X-VCS-Directories: dev-vcs/git-lfs/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: be32161ccdd15119992a6ebc494e0108eca6fc15 X-VCS-Branch: master Date: Mon, 25 Sep 2023 06:33:50 +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: 9d5c5b02-5111-480a-9b4f-c07e0c0b743b X-Archives-Hash: 62cd3b19be1c680235da496c9ba0b54a commit: be32161ccdd15119992a6ebc494e0108eca6fc15 Author: Nils Freydank posteo de> AuthorDate: Sat Sep 23 14:10:28 2023 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Mon Sep 25 06:33:06 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be32161c dev-vcs/git-lfs: Update live ebuild Bug: https://bugs.gentoo.org/914542 Signed-off-by: Nils Freydank posteo.de> Closes: https://github.com/gentoo/gentoo/pull/33004 Signed-off-by: Arthur Zamarin gentoo.org> dev-vcs/git-lfs/git-lfs-9999.ebuild | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/dev-vcs/git-lfs/git-lfs-9999.ebuild b/dev-vcs/git-lfs/git-lfs-9999.ebuild index 10b83717c479..cbd1a55aa124 100644 --- a/dev-vcs/git-lfs/git-lfs-9999.ebuild +++ b/dev-vcs/git-lfs/git-lfs-9999.ebuild @@ -6,7 +6,7 @@ EGO_PN=github.com/git-lfs/git-lfs # Update the ID as it's included in each build. COMMIT_ID="d06d6e9efd78ff4f958b072146ce167d87f60285" -inherit go-module +inherit go-module shell-completion DESCRIPTION="Command line extension and specification for managing large files with git" HOMEPAGE=" @@ -61,18 +61,31 @@ src_compile() { -trimpath -v -work -x ) - go build "${mygobuildargs[@]}" -o git-lfs git-lfs.go || die + ego build "${mygobuildargs[@]}" -o git-lfs git-lfs.go if use doc; then for doc in docs/man/*adoc; do asciidoctor -b manpage ${doc} || die "man building failed" done fi + + # Generate auto-completion scripts. + # bug 914542 + ./git-lfs completion bash > "${PN}.bash" || die + ./git-lfs completion fish > "${PN}.fish" || die + ./git-lfs completion zsh > "${PN}.zsh" || die } src_install() { dobin git-lfs einstalldocs + + # Install auto-completion scripts generated earlier. + # bug 914542 + newbashcomp "${PN}.bash" "${PN}" + dofishcomp "${PN}.fish" + newzshcomp "${PN}.zsh" "_${PN}" + use doc && doman docs/man/*.1 }