sys-block/whdd: 9999: incorporate handling of tagged versions
authorAndrey Utkin <andrey_utkin@fastmail.com>
Sun, 8 Jan 2017 01:35:12 +0000 (01:35 +0000)
committerMichael Palimaka <kensington@gentoo.org>
Sun, 29 Jan 2017 15:22:03 +0000 (02:22 +1100)
sys-block/whdd/whdd-9999.ebuild

index 381536f90efaebce3bd68b9da5dda859aa833248..ccea158e179b22d6a2e37df43e93df05ccc94882 100644 (file)
@@ -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="