diff options
Diffstat (limited to 'sci-electronics/qelectrotech/qelectrotech-9999.ebuild')
-rw-r--r-- | sci-electronics/qelectrotech/qelectrotech-9999.ebuild | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/sci-electronics/qelectrotech/qelectrotech-9999.ebuild b/sci-electronics/qelectrotech/qelectrotech-9999.ebuild index 3f4b1b8d7a2d..bd14b719e6f5 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 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=" @@ -28,11 +35,11 @@ RDEPEND=" dev-qt/qtsvg:5 dev-qt/qtwidgets:5 dev-qt/qtxml:5 + kde-frameworks/kcoreaddons:5 + kde-frameworks/kwidgetsaddons:5 " DEPEND="${RDEPEND}" -S=${WORKDIR}/${MY_P} - DOCS=( CREDIT ChangeLog README ) PATCHES=( "${FILESDIR}/${PN}-0.3-fix-paths.patch" ) @@ -51,15 +58,3 @@ src_install() { einstalldocs } - -pkg_postinst() { - xdg_desktop_database_update - xdg_mimeinfo_database_update - xdg_icon_cache_update -} - -pkg_postrm() { - xdg_desktop_database_update - xdg_mimeinfo_database_update - xdg_icon_cache_update -} |