media-tv/mythtv: Fixed detection of >=qt-5.10
authorLars Wendler <polynomial-c@gentoo.org>
Thu, 9 Aug 2018 13:45:04 +0000 (15:45 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Thu, 9 Aug 2018 13:45:24 +0000 (15:45 +0200)
Package-Manager: Portage-2.3.45, Repoman-2.3.10

media-tv/mythtv/files/mythtv-0.28.1-qt511.patch [new file with mode: 0644]
media-tv/mythtv/mythtv-0.28.1-r4.ebuild

diff --git a/media-tv/mythtv/files/mythtv-0.28.1-qt511.patch b/media-tv/mythtv/files/mythtv-0.28.1-qt511.patch
new file mode 100644 (file)
index 0000000..3fab1e6
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/configure
++++ b/configure
+@@ -5907,7 +5907,7 @@
+ enabled pic && enable_weak_pic
+ is_qmake5(){
+-    $1 --version 2>&1 | egrep -q -e "Qt version 5\.[2-9]\.[0-9]"
++    $1 --version 2>&1 | egrep -q -e 'Qt version 5\.(([1-9][0-9]+)|[2-9])\.[0-9]'
+ }
+ # qmake-qt5 /usr/lib64/qt5/bin/qmake /usr/lib/x86_64-linux-gnu/qt5/bin/qmake
index b5d2925cc375f5243c0d8b3cbde7cc2989e63c2d..24a3c0c7042cd79ff8f70dcbf82e1d715adf4610 100644 (file)
@@ -177,6 +177,7 @@ src_prepare() {
 
        eapply "${FILESDIR}/${P}-glibc225.patch"
        eapply -p2 "${FILESDIR}/${PN}-29.2-freetype_pkgconfig.patch" #658534
+       eapply "${FILESDIR}/${P}-qt511.patch"
 }
 
 src_configure() {