diff options
author | 2015-10-15 01:02:20 +0100 | |
---|---|---|
committer | 2015-10-15 01:02:20 +0100 | |
commit | cfed15e5f0eed5c0617f25af52ecb064a98f675a (patch) | |
tree | f289200914e1496c676e8f49379d92a8acabb589 /media-gfx | |
parent | Remove old ebuilds (diff) | |
download | carreira-cfed15e5f0eed5c0617f25af52ecb064a98f675a.tar.gz carreira-cfed15e5f0eed5c0617f25af52ecb064a98f675a.tar.bz2 carreira-cfed15e5f0eed5c0617f25af52ecb064a98f675a.zip |
Improve ktikz ebuild: now supports for qt4 and qt5
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/ktikz/ktikz-0.10_p1.ebuild | 2 | ||||
-rw-r--r-- | media-gfx/ktikz/ktikz-9999.ebuild | 38 |
2 files changed, 28 insertions, 12 deletions
diff --git a/media-gfx/ktikz/ktikz-0.10_p1.ebuild b/media-gfx/ktikz/ktikz-0.10_p1.ebuild index 40dd259..f26402c 100644 --- a/media-gfx/ktikz/ktikz-0.10_p1.ebuild +++ b/media-gfx/ktikz/ktikz-0.10_p1.ebuild @@ -16,7 +16,7 @@ EGIT_REPO_URI="https://github.com/jfmcarreira/ktikz.git" EGIT_COMMIT="${PV}" LICENSE="GPL-2" -SLOT="0" +SLOT="4" KEYWORDS="~amd64 ~x86" IUSE="kde debug" diff --git a/media-gfx/ktikz/ktikz-9999.ebuild b/media-gfx/ktikz/ktikz-9999.ebuild index 6c5ce3c..e05b4c9 100644 --- a/media-gfx/ktikz/ktikz-9999.ebuild +++ b/media-gfx/ktikz/ktikz-9999.ebuild @@ -14,22 +14,34 @@ EGIT_REPO_URI="https://github.com/jfmcarreira/ktikz.git" LICENSE="GPL-2" SLOT="0" KEYWORDS="" -IUSE="+kde -debug" +IUSE="qt4 qt5 +kde -debug" + +REQUIRED_USE=" + ?? ( qt5 qt4 ) + kde? ( qt4 ) +" -#DEPEND="x11-libs/qt-gui:4 DEPEND=" + qt5? ( + dev-qt/qtcore:5 dev-qt/qtgui:5 dev-qt/qtwidgets:5 - dev-qt/qthelp:5 + dev-qt/qtprintsupport:5 app-text/poppler[qt5] - virtual/latex-base - dev-texlive/texlive-latexextra - dev-tex/pgf -" - -RDEPEND="${DEPEND} - !media-gfx/ktikz:4 + ) + qt4? ( + dev-qt/qtcore:4 + dev-qt/qtgui:4 + app-text/poppler[qt4] + ) + kde? ( + kde-base/kdelibs + ) + virtual/latex-base + dev-texlive/texlive-latexextra + dev-tex/pgf " +RDEPEND="${DEPEND}" DOCS="Changelog TODO" @@ -50,7 +62,11 @@ src_configure() { cmake-utils_src_configure else KDECONFIG="CONFIG-=usekde" - eqmake5 qtikz.pro PREFIX="${D}/usr" "CONFIG+=nostrip" "$KDECONFIG" + if use qt4; then + eqmake4 qtikz.pro PREFIX="${D}/usr" "CONFIG+=nostrip" "$KDECONFIG" + else + eqmake5 qtikz.pro PREFIX="${D}/usr" "CONFIG+=nostrip" "$KDECONFIG" + fi fi } |