1 |
commit: 893566956f2804d429fc5d4603999ed9621beb09 |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 14 22:08:19 2022 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 14 22:14:23 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89356695 |
7 |
|
8 |
sys-apps/ipmi-fan-control: update versioned ebuild with 9999 template |
9 |
|
10 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
11 |
|
12 |
.../ipmi-fan-control-0.3.10.ebuild | 26 +++++++++++++++++----- |
13 |
1 file changed, 20 insertions(+), 6 deletions(-) |
14 |
|
15 |
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 |
16 |
index 3f889794b444..26a8ad739449 100644 |
17 |
--- a/sys-apps/ipmi-fan-control/ipmi-fan-control-0.3.10.ebuild |
18 |
+++ b/sys-apps/ipmi-fan-control/ipmi-fan-control-0.3.10.ebuild |
19 |
@@ -111,20 +111,34 @@ inherit cargo optfeature systemd |
20 |
|
21 |
DESCRIPTION="SuperMicro IPMI fan control daemon" |
22 |
HOMEPAGE="https://github.com/chenxiaolong/ipmi-fan-control" |
23 |
-SRC_URI="https://github.com/chenxiaolong/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz |
24 |
- $(cargo_crate_uris) |
25 |
-" |
26 |
+ |
27 |
+if [[ ${PV} == 9999 ]] ; then |
28 |
+ inherit git-r3 |
29 |
+ EGIT_REPO_URI="https://github.com/chenxiaolong/${PN}" |
30 |
+else |
31 |
+ SRC_URI="https://github.com/chenxiaolong/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz |
32 |
+ $(cargo_crate_uris)" |
33 |
+ # supported boards are x86_64 only, do not keyword elsewhere |
34 |
+ # technically it could run on remote host and issue commands via ipmitool lanplus, but that's very edgy case |
35 |
+ KEYWORDS="-* ~amd64" |
36 |
+fi |
37 |
|
38 |
LICENSE="MIT 0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD Boost-1.0 GPL-3+ MIT Unicode-DFS-2016 Unlicense ZLIB" |
39 |
SLOT="0" |
40 |
-# supported boards are x86_64 only, do not keyword elsewhere |
41 |
-# technically it could run on remote host and issue commands via ipmitool lanplus, but that's very edgy case |
42 |
-KEYWORDS="-* ~amd64" |
43 |
|
44 |
RDEPEND="sys-apps/ipmitool" |
45 |
|
46 |
QA_FLAGS_IGNORED="usr/bin/${PN}" |
47 |
|
48 |
+src_unpack() { |
49 |
+ if [[ ${PV} == 9999 ]]; then |
50 |
+ git-r3_src_unpack |
51 |
+ cargo_live_src_unpack |
52 |
+ else |
53 |
+ cargo_src_unpack |
54 |
+ fi |
55 |
+} |
56 |
+ |
57 |
src_install() { |
58 |
cargo_src_install |