media-sound/qsynth: Drop USE=qt5
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>
Thu, 20 Oct 2016 15:37:25 +0000 (17:37 +0200)
committerDavid Seifert <soap@gentoo.org>
Fri, 21 Oct 2016 22:19:24 +0000 (00:19 +0200)
Default upstream, make it unconditional.

Package-Manager: portage-2.3.0
Closes: https://github.com/gentoo/gentoo/pull/2606

Signed-off-by: David Seifert <soap@gentoo.org>
media-sound/qsynth/qsynth-0.4.2-r1.ebuild

index 3d69625bce7294377326d402afa40a8d001a300a..7ec6da4d7ca54b486318a344703baa1c4251801d 100644 (file)
@@ -12,46 +12,30 @@ SRC_URI="mirror://sourceforge/qsynth/${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE="debug jack alsa pulseaudio +qt5"
+IUSE="debug jack alsa pulseaudio"
 KEYWORDS="~amd64 ~ppc ~x86"
 
 RDEPEND="
-       qt5? (
-               dev-qt/qtwidgets:5
-               dev-qt/qtx11extras:5
-               dev-qt/qtcore:5
-       )
-       !qt5? (
-               dev-qt/qtcore:4
-               dev-qt/qtgui:4
-       )
+       dev-qt/qtcore:5
+       dev-qt/qtwidgets:5
+       dev-qt/qtx11extras:5
        media-sound/fluidsynth[jack?,alsa?,pulseaudio?]
        x11-libs/libX11"
 DEPEND="${RDEPEND}
-       qt5? ( dev-qt/linguist-tools:5 )
+       dev-qt/linguist-tools:5
 "
 
 REQUIRED_USE="|| ( alsa jack pulseaudio )"
 
-src_prepare() {
-       default
-       use qt5 && eapply "${FILESDIR}/${PN}-0.4.0-qt5-tagging.patch"
-}
+PATCHES=( "${FILESDIR}/${PN}-0.4.0-qt5-tagging.patch" )
 
 src_configure() {
-       use qt5 && append-cxxflags -std=c++11
+       append-cxxflags -std=c++11
        econf \
                $(use_enable debug) \
-               $(use_enable !qt5 qt4) \
-               --with-qt"$(usex qt5 "5=$(qt5_get_bindir)/.." "4=$(qt4_get_bindir)/..")"
+               --with-qt5=$(qt5_get_bindir)/..
 
-       # Emulate what the Makefile does, so that we can get the correct
-       # compiler used.
-       if use qt5 ; then
-               eqmake5 ${PN}.pro -o ${PN}.mak
-       else
-               eqmake4 ${PN}.pro -o ${PN}.mak
-       fi
+       eqmake5 ${PN}.pro -o ${PN}.mak
 }
 
 src_install () {