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 DBD07158089 for ; Mon, 25 Sep 2023 06:33:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 077BD2BC028; 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 E52EB2BC028 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 046F2335CA3 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 720F5125B 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: <1695623585.0900a1dda1a1f078b99d5a1800361764794751a4.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-3.4.0-r1.ebuild dev-vcs/git-lfs/git-lfs-3.4.0.ebuild X-VCS-Directories: dev-vcs/git-lfs/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 0900a1dda1a1f078b99d5a1800361764794751a4 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: 703c9f77-dd3a-4370-8b78-c5b8ac6c61a6 X-Archives-Hash: 4d14b058f44219d9b2a2a646fd36e9ae commit: 0900a1dda1a1f078b99d5a1800361764794751a4 Author: Nils Freydank posteo de> AuthorDate: Sat Sep 23 14:10:27 2023 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Mon Sep 25 06:33:05 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0900a1dd dev-vcs/git-lfs: Enable shell auto-completion - Build and install the auto completion for bash, fish and zsh. - Switch from "go .. || die" to "ego ...". See upstream issue requesting pre-generated files for releases: https://github.com/git-lfs/git-lfs/issues/5520 Closes: https://bugs.gentoo.org/914542 Signed-off-by: Nils Freydank posteo.de> Signed-off-by: Arthur Zamarin gentoo.org> .../{git-lfs-3.4.0.ebuild => git-lfs-3.4.0-r1.ebuild} | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/dev-vcs/git-lfs/git-lfs-3.4.0.ebuild b/dev-vcs/git-lfs/git-lfs-3.4.0-r1.ebuild similarity index 83% rename from dev-vcs/git-lfs/git-lfs-3.4.0.ebuild rename to dev-vcs/git-lfs/git-lfs-3.4.0-r1.ebuild index 10b83717c479..cbd1a55aa124 100644 --- a/dev-vcs/git-lfs/git-lfs-3.4.0.ebuild +++ b/dev-vcs/git-lfs/git-lfs-3.4.0-r1.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 }