commit:     706e0055683bc0d5f9246200bb1cda4fca7229c5
Author:     Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 12 14:58:36 2016 +0000
Commit:     Jason Donenfeld <zx2c4 <AT> gentoo <DOT> org>
CommitDate: Tue Jan 12 14:59:19 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=706e0055

media-sound/qsynth: Fix configure for qt5

Package-Manager: portage-2.2.26

 media-sound/qsynth/files/qsynth-0.4.0-qt5-tagging.patch | 11 +++++++++++
 media-sound/qsynth/qsynth-0.4.0.ebuild                  |  4 ++++
 2 files changed, 15 insertions(+)

diff --git a/media-sound/qsynth/files/qsynth-0.4.0-qt5-tagging.patch 
b/media-sound/qsynth/files/qsynth-0.4.0-qt5-tagging.patch
new file mode 100644
index 0000000..6b16492
--- /dev/null
+++ b/media-sound/qsynth/files/qsynth-0.4.0-qt5-tagging.patch
@@ -0,0 +1,11 @@
+diff -ru qsynth-0.4.0/configure qsynth-0.4.0-modified/configure
+--- qsynth-0.4.0/configure     2015-09-07 16:59:25.083842955 +0200
++++ qsynth-0.4.0-modified/configure    2016-01-12 15:57:36.673008368 +0100
+@@ -4159,6 +4159,7 @@
+ 
+       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h.  */
++#define QT_NO_VERSION_TAGGING
+ #include "QtCore/qglobal.h"
+ int
+ main ()

diff --git a/media-sound/qsynth/qsynth-0.4.0.ebuild 
b/media-sound/qsynth/qsynth-0.4.0.ebuild
index e9bc54b..de76b60 100644
--- a/media-sound/qsynth/qsynth-0.4.0.ebuild
+++ b/media-sound/qsynth/qsynth-0.4.0.ebuild
@@ -33,6 +33,10 @@ DEPEND="${RDEPEND}
 
 REQUIRED_USE="|| ( alsa jack pulseaudio )"
 
+src_prepare() {
+       use qt5 && epatch "${FILESDIR}/${PN}-0.4.0-qt5-tagging.patch"
+}
+
 src_configure() {
        econf \
                $(use_enable debug) \

Reply via email to