summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sci-electronics/qelectrotech/qelectrotech-9999.ebuild17
1 files changed, 11 insertions, 6 deletions
diff --git a/sci-electronics/qelectrotech/qelectrotech-9999.ebuild b/sci-electronics/qelectrotech/qelectrotech-9999.ebuild
index f6c479b2755b..4ac12bb6b661 100644
--- a/sci-electronics/qelectrotech/qelectrotech-9999.ebuild
+++ b/sci-electronics/qelectrotech/qelectrotech-9999.ebuild
@@ -3,16 +3,23 @@
EAPI=7
-MY_P=${PN}-${PV%0}-src
-inherit qmake-utils subversion xdg-utils
+inherit qmake-utils xdg-utils
DESCRIPTION="Qt5 application to design electric diagrams"
HOMEPAGE="https://qelectrotech.org/"
-ESVN_REPO_URI="svn://svn.tuxfamily.org/svnroot/qet/qet/trunk"
+
+if [[ ${PV} = *9999* ]]; then
+ inherit subversion
+ ESVN_REPO_URI="svn://svn.tuxfamily.org/svnroot/qet/qet/trunk"
+else
+ MY_P=${PN}-${PV%0}-src
+ SRC_URI="https://download.tuxfamily.org/qet/tags/20180823/${MY_P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}"/${MY_P}
+fi
LICENSE="CC-BY-3.0 GPL-2+"
SLOT="0"
-KEYWORDS=""
IUSE="doc"
BDEPEND="
@@ -33,8 +40,6 @@ RDEPEND="
"
DEPEND="${RDEPEND}"
-S=${WORKDIR}/${MY_P}
-
DOCS=( CREDIT ChangeLog README )
PATCHES=( "${FILESDIR}/${PN}-0.3-fix-paths.patch" )