commit:     8a2f89c70d80e1bd31d6f6432bed47d4782e7ce3
Author:     Michael Seifert <m.seifert <AT> digitalernachschub <DOT> de>
AuthorDate: Tue Nov 17 07:03:55 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Fri Nov 20 12:04:26 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a2f89c7

net-analyzer/goaccess: Adjusted SRC_URI and EGIT_REPO_URI in -9999

The variables are set conditionally based on PV, so that the live ebuild can
simply be renamed to create a versioned ebuild.

Signed-off-by: Michael Seifert <m.seifert <AT> digitalernachschub.de>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 net-analyzer/goaccess/goaccess-9999.ebuild | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/net-analyzer/goaccess/goaccess-9999.ebuild 
b/net-analyzer/goaccess/goaccess-9999.ebuild
index 54c48bd6e78..e029cb0bf44 100644
--- a/net-analyzer/goaccess/goaccess-9999.ebuild
+++ b/net-analyzer/goaccess/goaccess-9999.ebuild
@@ -3,17 +3,21 @@
 
 EAPI=7
 
-EGIT_REPO_URI="https://github.com/allinurl/${PN}.git";
+inherit autotools
 
-inherit autotools git-r3
+if [[ ${PV} = *9999* ]] ; then
+       EGIT_REPO_URI="https://github.com/allinurl/${PN}.git";
+       inherit git-r3
+else
+       SRC_URI="https://tar.goaccess.io/${P}.tar.gz";
+       KEYWORDS="~amd64 ~x86 ~amd64-linux"
+fi
 
 DESCRIPTION="A real-time web log analyzer and interactive viewer that runs in 
a terminal"
 HOMEPAGE="https://goaccess.io";
-SRC_URI=""
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS=""
 IUSE="debug geoip geoipv2 getline libressl ssl unicode"
 REQUIRED_USE="geoipv2? ( geoip )"
 

Reply via email to