x11-libs/qscintilla: use the new canonical SRC_URI
authorDavide Pesavento <pesa@gentoo.org>
Wed, 3 Apr 2019 01:14:23 +0000 (03:14 +0200)
committerDavide Pesavento <pesa@gentoo.org>
Wed, 3 Apr 2019 01:14:23 +0000 (03:14 +0200)
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Davide Pesavento <pesa@gentoo.org>
x11-libs/qscintilla/qscintilla-2.11.1.ebuild

index 548fa9681dc1d115dcbe2397a1ec68249d54d571..ae3d709bc0dffc9482f4d1c9e6ef7c090b743bd8 100644 (file)
@@ -5,25 +5,30 @@ EAPI=7
 
 inherit flag-o-matic qmake-utils
 
-MY_P=QScintilla_gpl-${PV/_pre/.dev}
-
 DESCRIPTION="Qt port of Neil Hodgson's Scintilla C++ editor control"
 HOMEPAGE="https://www.riverbankcomputing.com/software/qscintilla/intro"
-SRC_URI="https://www.riverbankcomputing.com/static/Downloads/QScintilla/${MY_P}.tar.gz"
+
+MY_PN=QScintilla
+MY_P=${MY_PN}_gpl-${PV/_pre/.dev}
+if [[ ${PV} == *_pre* ]]; then
+       SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.gz"
+else
+       SRC_URI="https://www.riverbankcomputing.com/static/Downloads/${MY_PN}/${PV}/${MY_P}.tar.gz"
+fi
 
 LICENSE="GPL-3"
 SLOT="0/15"
 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
 IUSE="designer doc"
 
-DEPEND="
+RDEPEND="
        dev-qt/qtcore:5
        dev-qt/qtgui:5
        dev-qt/qtprintsupport:5
        dev-qt/qtwidgets:5
        designer? ( dev-qt/designer:5 )
 "
-RDEPEND="${DEPEND}"
+DEPEND="${RDEPEND}"
 
 S=${WORKDIR}/${MY_P}