summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2020-05-20 14:06:32 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2020-05-20 14:24:51 +0200
commit953c12e77b526a4ae94ad14228d1a9e0b883e9cd (patch)
tree65d11d05670a6a409ce66f14da577cf7abe71fdf /media-gfx
parentmedia-gfx/librecad: EAPI-7 bump (diff)
downloadgentoo-953c12e77b526a4ae94ad14228d1a9e0b883e9cd.tar.gz
gentoo-953c12e77b526a4ae94ad14228d1a9e0b883e9cd.tar.bz2
gentoo-953c12e77b526a4ae94ad14228d1a9e0b883e9cd.zip
media-gfx/librecad: Fix live ebuild by adding a release switch
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>
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/librecad/librecad-9999.ebuild13
1 files changed, 9 insertions, 4 deletions
diff --git a/media-gfx/librecad/librecad-9999.ebuild b/media-gfx/librecad/librecad-9999.ebuild
index f24977427ab1..04902b991e93 100644
--- a/media-gfx/librecad/librecad-9999.ebuild
+++ b/media-gfx/librecad/librecad-9999.ebuild
@@ -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
}