-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
# Update the init scripts for the new openrc, bug #594622
epatch "${FILESDIR}"/${PN}-0.6.32-openrc-0.21.7-fix-init-scripts.patch
+ # Don't pick up wrong moc based on qtchooser default, bug #587830
+ epatch "${FILESDIR}"/${PN}-0.6.32-mocqt4.patch
+
# Bug #525832
epatch_user
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
-e "s:\\.\\./\\.\\./\\.\\./doc/avahi-docs/html/:../../../doc/${PF}/html/:" \
doxygen_to_devhelp.xsl || die
+ # Don't pick up wrong moc based on qtchooser default, bug #587830
+ eapply "${FILESDIR}"/${PN}-0.6.32-mocqt4.patch
+
eapply_user
# Prevent .pyc files in DESTDIR
--- /dev/null
+--- a/configure.ac 2018-01-11 23:00:47.503309612 +0100
++++ b/configure.ac 2018-01-11 23:10:04.373295395 +0100
+@@ -516,8 +516,7 @@
+ PKG_CHECK_MODULES( QT4, [ QtCore >= 4.0.0 ])
+ AC_SUBST(QT4_CFLAGS)
+ AC_SUBST(QT4_LIBS)
+- QT4_PREFIX="`$PKG_CONFIG --variable=prefix QtCore`/bin"
+- AC_PATH_PROGS(MOC_QT4, [moc-qt4 moc], no, [$QT4_PREFIX])
++ MOC_QT4="`$PKG_CONFIG --variable=moc_location QtCore`"
+ if test "$MOC_QT4" = no; then
+ AC_MSG_ERROR([Could not find QT4 moc])
+ fi