public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Rahil Bhimjiani" <rahil3108@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-wireless/bluetuith/
Date: Mon,  6 Nov 2023 03:09:46 +0000 (UTC)	[thread overview]
Message-ID: <1699240050.5276f0bf01e43f55b2c8fdc192fb04f89aa53b70.rahilarious@gentoo> (raw)

commit:     5276f0bf01e43f55b2c8fdc192fb04f89aa53b70
Author:     Rahil Bhimjiani <rahil3108 <AT> gmail <DOT> com>
AuthorDate: Mon Nov  6 03:07:30 2023 +0000
Commit:     Rahil Bhimjiani <rahil3108 <AT> gmail <DOT> 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 <rahil3108 <AT> 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() {


             reply	other threads:[~2023-11-06  3:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-06  3:09 Rahil Bhimjiani [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-04-09  8:57 [gentoo-commits] repo/proj/guru:dev commit in: net-wireless/bluetuith/ Rahil Bhimjiani
2024-04-08 11:53 Rahil Bhimjiani
2024-02-03  6:37 Rahil Bhimjiani
2023-12-30 16:16 Rahil Bhimjiani
2023-12-30 16:16 Rahil Bhimjiani
2023-12-30  2:30 Rahil Bhimjiani
2023-11-19  0:12 Rahil Bhimjiani
2023-11-06  2:04 Rahil Bhimjiani
2023-10-26  2:48 Rahil Bhimjiani
2023-09-30  5:25 Rahil Bhimjiani

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1699240050.5276f0bf01e43f55b2c8fdc192fb04f89aa53b70.rahilarious@gentoo \
    --to=rahil3108@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox