commit: 893566956f2804d429fc5d4603999ed9621beb09 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> AuthorDate: Wed Sep 14 22:08:19 2022 +0000 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> CommitDate: Wed Sep 14 22:14:23 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89356695
sys-apps/ipmi-fan-control: update versioned ebuild with 9999 template Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> .../ipmi-fan-control-0.3.10.ebuild | 26 +++++++++++++++++----- 1 file 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
