commit:     a4f15d1bfcf8a2b72432782df82507f800e81b26
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 29 23:07:15 2020 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Sun Nov 29 23:09:31 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4f15d1b

app-text/xchm: live ebuild should now work as release when renamed

Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>

 app-text/xchm/xchm-9999.ebuild | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/app-text/xchm/xchm-9999.ebuild b/app-text/xchm/xchm-9999.ebuild
index 3d695b86f5e..268f5dbea10 100644
--- a/app-text/xchm/xchm-9999.ebuild
+++ b/app-text/xchm/xchm-9999.ebuild
@@ -5,11 +5,18 @@ EAPI=7
 
 WX_GTK_VER="3.0-gtk3"
 
-inherit autotools desktop git-r3 wxwidgets xdg-utils
+inherit autotools desktop wxwidgets xdg-utils
 
 DESCRIPTION="Utility for viewing Compiled HTML Help (CHM) files"
 HOMEPAGE="https://github.com/rzvncj/xCHM/";
-EGIT_REPO_URI="https://github.com/rzvncj/xCHM/";
+
+if [[ ${PV} == *9999 ]] ; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/rzvncj/xCHM/";
+else
+       
SRC_URI="https://github.com/rzvncj/xCHM/releases/download/${PV}/${P}.tar.gz";
+       KEYWORDS="~amd64 ~ppc ~x86"
+fi
 
 LICENSE="GPL-2"
 SLOT="0"

Reply via email to