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() {