summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2022-09-14 15:08:19 -0700
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2022-09-14 15:14:23 -0700
commit893566956f2804d429fc5d4603999ed9621beb09 (patch)
tree12fbde6df1571046f2ccee75251551d3a0fc97c0 /sys-apps/ipmi-fan-control/ipmi-fan-control-0.3.10.ebuild
parentsys-apps/ipmi-fan-control: add 9999 (diff)
downloadgentoo-893566956f2804d429fc5d4603999ed9621beb09.tar.gz
gentoo-893566956f2804d429fc5d4603999ed9621beb09.tar.bz2
gentoo-893566956f2804d429fc5d4603999ed9621beb09.zip
sys-apps/ipmi-fan-control: update versioned ebuild with 9999 template
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'sys-apps/ipmi-fan-control/ipmi-fan-control-0.3.10.ebuild')
-rw-r--r--sys-apps/ipmi-fan-control/ipmi-fan-control-0.3.10.ebuild26
1 files changed, 20 insertions, 6 deletions
diff --git a/sys-apps/ipmi-fan-control/ipmi-fan-control-0.3.10.ebuild b/sys-apps/ipmi-fan-control/ipmi-fan-control-0.3.10.ebuild
index 3f889794b444..26a8ad739449 100644
--- a/sys-apps/ipmi-fan-control/ipmi-fan-control-0.3.10.ebuild
+++ b/sys-apps/ipmi-fan-control/ipmi-fan-control-0.3.10.ebuild
@@ -111,20 +111,34 @@ inherit cargo optfeature systemd
DESCRIPTION="SuperMicro IPMI fan control daemon"
HOMEPAGE="https://github.com/chenxiaolong/ipmi-fan-control"
-SRC_URI="https://github.com/chenxiaolong/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
- $(cargo_crate_uris)
-"
+
+if [[ ${PV} == 9999 ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/chenxiaolong/${PN}"
+else
+ SRC_URI="https://github.com/chenxiaolong/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
+ $(cargo_crate_uris)"
+ # supported boards are x86_64 only, do not keyword elsewhere
+ # technically it could run on remote host and issue commands via ipmitool lanplus, but that's very edgy case
+ KEYWORDS="-* ~amd64"
+fi
LICENSE="MIT 0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD Boost-1.0 GPL-3+ MIT Unicode-DFS-2016 Unlicense ZLIB"
SLOT="0"
-# supported boards are x86_64 only, do not keyword elsewhere
-# technically it could run on remote host and issue commands via ipmitool lanplus, but that's very edgy case
-KEYWORDS="-* ~amd64"
RDEPEND="sys-apps/ipmitool"
QA_FLAGS_IGNORED="usr/bin/${PN}"
+src_unpack() {
+ if [[ ${PV} == 9999 ]]; then
+ git-r3_src_unpack
+ cargo_live_src_unpack
+ else
+ cargo_src_unpack
+ fi
+}
+
src_install() {
cargo_src_install