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 A0CA3158089 for ; Mon, 6 Nov 2023 14:18:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 72C4E2BC0B3; Mon, 6 Nov 2023 14:18:50 +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 55A482BC0B3 for ; Mon, 6 Nov 2023 14:18:50 +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 6201F335D45 for ; Mon, 6 Nov 2023 14:18:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 96F021339 for ; Mon, 6 Nov 2023 14:18:44 +0000 (UTC) From: "David Roman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Roman" Message-ID: <1699240050.5276f0bf01e43f55b2c8fdc192fb04f89aa53b70.davidroman@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: net-wireless/bluetuith/ X-VCS-Repository: repo/proj/guru X-VCS-Files: net-wireless/bluetuith/bluetuith-0.1.9.ebuild net-wireless/bluetuith/bluetuith-9999.ebuild X-VCS-Directories: net-wireless/bluetuith/ X-VCS-Committer: davidroman X-VCS-Committer-Name: David Roman X-VCS-Revision: 5276f0bf01e43f55b2c8fdc192fb04f89aa53b70 X-VCS-Branch: master Date: Mon, 6 Nov 2023 14:18:44 +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: 2a5cbc37-bc4a-4950-b7ce-9b8c677328a3 X-Archives-Hash: 68ef32fc587448d59859ee3ee695d787 commit: 5276f0bf01e43f55b2c8fdc192fb04f89aa53b70 Author: Rahil Bhimjiani gmail com> AuthorDate: Mon Nov 6 03:07:30 2023 +0000 Commit: David Roman gmail com> CommitDate: Mon Nov 6 03:07:30 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5276f0bf net-wireless/bluetuith: fixup d94921370e1d85fa510b2e0fd4e9fd064c9e Fix version info not showing on running bluetuith --version Signed-off-by: Rahil Bhimjiani gmail.com> net-wireless/bluetuith/bluetuith-0.1.9.ebuild | 7 ++++++- net-wireless/bluetuith/bluetuith-9999.ebuild | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/net-wireless/bluetuith/bluetuith-0.1.9.ebuild b/net-wireless/bluetuith/bluetuith-0.1.9.ebuild index 9c46f9a065..93dc6512a3 100644 --- a/net-wireless/bluetuith/bluetuith-0.1.9.ebuild +++ b/net-wireless/bluetuith/bluetuith-0.1.9.ebuild @@ -8,6 +8,9 @@ inherit go-module DESCRIPTION="A TUI bluetooth manager for Linux written in Go" HOMEPAGE="https://darkhz.github.io/bluetuith" +# MAKE SURE to change these on every update +[[ ${PV} != 9999* ]] && \ +GIT_COMMIT="28c0a9f" GIT_DOCUMENTATION_COMMIT="3b2ebf5a6bc8a9ed2dc48e1fa7f0df5851ddb84b" if [[ ${PV} == 9999* ]]; then @@ -50,7 +53,9 @@ src_unpack() { } src_compile() { - ego build + # mimicking behavior from https://github.com/darkhz/bluetuith/blob/master/.goreleaser.yml + [[ ${PV} == 9999* ]] && GIT_COMMIT=$(git rev-parse --short HEAD) + ego build -ldflags "-X github.com/darkhz/bluetuith/cmd.Version=${PV}@${GIT_COMMIT}" } src_test() { diff --git a/net-wireless/bluetuith/bluetuith-9999.ebuild b/net-wireless/bluetuith/bluetuith-9999.ebuild index 9c46f9a065..93dc6512a3 100644 --- a/net-wireless/bluetuith/bluetuith-9999.ebuild +++ b/net-wireless/bluetuith/bluetuith-9999.ebuild @@ -8,6 +8,9 @@ inherit go-module DESCRIPTION="A TUI bluetooth manager for Linux written in Go" HOMEPAGE="https://darkhz.github.io/bluetuith" +# MAKE SURE to change these on every update +[[ ${PV} != 9999* ]] && \ +GIT_COMMIT="28c0a9f" GIT_DOCUMENTATION_COMMIT="3b2ebf5a6bc8a9ed2dc48e1fa7f0df5851ddb84b" if [[ ${PV} == 9999* ]]; then @@ -50,7 +53,9 @@ src_unpack() { } src_compile() { - ego build + # mimicking behavior from https://github.com/darkhz/bluetuith/blob/master/.goreleaser.yml + [[ ${PV} == 9999* ]] && GIT_COMMIT=$(git rev-parse --short HEAD) + ego build -ldflags "-X github.com/darkhz/bluetuith/cmd.Version=${PV}@${GIT_COMMIT}" } src_test() {