commit:     99a04cfc29642b06e9002876cf1d5e3b0d31b83b
Author:     Andrey Utkin <andrey_utkin <AT> fastmail <DOT> com>
AuthorDate: Sun Jan  8 01:35:12 2017 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Sun Jan 29 15:22:03 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99a04cfc

sys-block/whdd: 9999: incorporate handling of tagged versions

 sys-block/whdd/whdd-9999.ebuild | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/sys-block/whdd/whdd-9999.ebuild b/sys-block/whdd/whdd-9999.ebuild
index 381536f..ccea158 100644
--- a/sys-block/whdd/whdd-9999.ebuild
+++ b/sys-block/whdd/whdd-9999.ebuild
@@ -4,15 +4,21 @@
 
 EAPI=6
 
-EGIT_REPO_URI="https://github.com/${PN}/${PN}";
-inherit git-r3
-
 DESCRIPTION="Diagnostic and recovery tool for block devices"
 HOMEPAGE="https://whdd.github.io";
 
+if [[ ${PV} == 9999 ]]
+then
+       EGIT_REPO_URI="https://github.com/${PN}/${PN}";
+       inherit git-r3
+else
+       SRC_URI="https://github.com/${PN}/${PN}/tarball/${PV} -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~x86"
+       inherit vcs-snapshot
+fi
+
 LICENSE="GPL-3"
 SLOT="0"
-KEYWORDS=""
 IUSE=""
 
 DEPEND="

Reply via email to