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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 38FC5158003 for ; Mon, 6 Nov 2023 03:09:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 72CB92BC015; Mon, 6 Nov 2023 03:09:49 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4A60F2BC015 for ; Mon, 6 Nov 2023 03:09:49 +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 10733335C07 for ; Mon, 6 Nov 2023 03:09:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 399508EB for ; Mon, 6 Nov 2023 03:09:46 +0000 (UTC) From: "Rahil Bhimjiani" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Rahil Bhimjiani" Message-ID: <1699240050.5276f0bf01e43f55b2c8fdc192fb04f89aa53b70.rahilarious@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev 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: rahilarious X-VCS-Committer-Name: Rahil Bhimjiani X-VCS-Revision: 5276f0bf01e43f55b2c8fdc192fb04f89aa53b70 X-VCS-Branch: dev Date: Mon, 6 Nov 2023 03:09:46 +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: fbf6d215-4b0e-4647-ab93-f0f0856fa06b X-Archives-Hash: fd0982985e897f2111011b0cbc7fbf7b commit: 5276f0bf01e43f55b2c8fdc192fb04f89aa53b70 Author: Rahil Bhimjiani gmail com> AuthorDate: Mon Nov 6 03:07:30 2023 +0000 Commit: Rahil Bhimjiani 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() {