media-gfx/librecad: Fix live ebuild by adding a release switch
authorAndreas Sturmlechner <asturm@gentoo.org>
Wed, 20 May 2020 12:06:32 +0000 (14:06 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Wed, 20 May 2020 12:24:51 +0000 (14:24 +0200)
Reported-by: Jérôme Borme <jerome.borme@laposte.net>
Closes: https://bugs.gentoo.org/705804
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
media-gfx/librecad/librecad-9999.ebuild

index f24977427ab1200895c9918696733300216f8fee..04902b991e9343430532b23ebf3e1bc26c6561b6 100644 (file)
@@ -3,11 +3,18 @@
 
 EAPI=7
 
-inherit desktop git-r3 qmake-utils
+inherit desktop qmake-utils
 
 DESCRIPTION="Generic 2D CAD program"
 HOMEPAGE="https://www.librecad.org/"
-EGIT_REPO_URI="https://github.com/LibreCAD/LibreCAD.git"
+
+if [[ ${PV} == *9999* ]]; then
+       EGIT_REPO_URI="https://github.com/LibreCAD/LibreCAD.git"
+       inherit git-r3
+else
+       SRC_URI="https://github.com/LibreCAD/LibreCAD/archive/${PV/_/}.tar.gz -> ${P}.tar.gz"
+       S="${WORKDIR}/LibreCAD-${PV}"
+fi
 
 LICENSE="GPL-2"
 SLOT="0"
@@ -32,8 +39,6 @@ DEPEND="${RDEPEND}
        dev-qt/qtxml:5
 "
 
-S="${WORKDIR}/LibreCAD-${PV}"
-
 src_configure() {
        eqmake5 -r
 }