--- /usr/portage/media-libs/libmediaart/libmediaart-0.4.0.ebuild 2014-10-11 14:31:13.000000000 +0200 +++ /usr/portage/media-libs/libmediaart/libmediaart-0.4.0.ebuild 2014-11-02 03:33:52.353765459 +0100 @@ -7,7 +7,7 @@ VALA_USE_DEPEND="vapigen" VALA_MIN_API_VERSION="0.16" -inherit gnome2 vala virtualx +inherit gnome2 vala virtualx autotools DESCRIPTION="Manages, extracts and handles media art caches" HOMEPAGE="https://github.com/curlybeast/libmediaart" @@ -35,14 +35,18 @@ " src_prepare() { + epatch ${FILESDIR}/${PN}-qt-version-automagic-fix.patch || die "Patching failed" + eautoconf use vala && vala_src_prepare gnome2_src_prepare } src_configure() { local myconf="" - if use qt4 -o use qt5 ; then - myconf="${myconf} --enable-qt" + if use qt4; then + myconf="${myconf} --enable-qt --with-qt-version=4" + elif use qt5; then + myconf="${myconf} --enable-qt --with-qt-version=5" else myconf="${myconf} --disable-qt" fi