aboutsummaryrefslogtreecommitdiff
path: root/libraries/poppler-qt5/poppler-0.24.2-mocversiongrep.patch
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja@gmail.com>2013-12-23 13:58:07 +0700
committerRobby Workman <rworkman@slackbuilds.org>2013-12-25 15:05:40 -0600
commit5e8b8382a4ff3f2c6dc6f714de43e0a6199cdeba (patch)
tree52457602ee033d8f229f10545c8b22caf54dbfbc /libraries/poppler-qt5/poppler-0.24.2-mocversiongrep.patch
parent9e72f5fac1ecf5f89a2ca591f93ed4c44cc174d0 (diff)
libraries/poppler-qt5: Added (Qt5 bindings for poppler).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/poppler-qt5/poppler-0.24.2-mocversiongrep.patch')
-rw-r--r--libraries/poppler-qt5/poppler-0.24.2-mocversiongrep.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/libraries/poppler-qt5/poppler-0.24.2-mocversiongrep.patch b/libraries/poppler-qt5/poppler-0.24.2-mocversiongrep.patch
new file mode 100644
index 0000000000000..8325e3d029eb9
--- /dev/null
+++ b/libraries/poppler-qt5/poppler-0.24.2-mocversiongrep.patch
@@ -0,0 +1,27 @@
+diff -up poppler-0.24.2/configure.ac.mocversiongrep poppler-0.24.2/configure.ac
+--- poppler-0.24.2/configure.ac.mocversiongrep 2013-10-18 09:51:24.223114884 -0500
++++ poppler-0.24.2/configure.ac 2013-10-18 09:54:33.408681067 -0500
+@@ -661,20 +661,20 @@ if test x$enable_poppler_qt5 = xyes; the
+ AC_CHECK_TOOL(MOCQT5, moc)
+ AC_MSG_CHECKING([for Qt5 moc])
+ mocversion=`$MOCQT5 -v 2>&1`
+- mocversiongrep=`echo $mocversion | grep "Qt 5"`
++ mocversiongrep=`echo $mocversion | grep " 5\."`
+ if test x"$mocversiongrep" != x"$mocversion"; then
+ AC_MSG_RESULT([no])
+ # moc was not the qt5 one, try with moc-qt5
+ AC_CHECK_TOOL(MOCQT52, moc-qt5)
+ AC_MSG_CHECKING([for Qt5 moc-qt5])
+ mocversion=`$MOCQT52 -v 2>&1`
+- mocversiongrep=`echo $mocversion | grep "Qt 5"`
++ mocversiongrep=`echo $mocversion | grep " 5\."`
+ if test x"$mocversiongrep" != x"$mocversion"; then
+ AC_CHECK_TOOL(QTCHOOSER, qtchooser)
+ AC_MSG_CHECKING([for qtchooser])
+ qt5tooldir=`QT_SELECT=qt5 qtchooser -print-env | grep QTTOOLDIR | cut -d '=' -f 2 | cut -d \" -f 2`
+ mocversion=`$qt5tooldir/moc -v 2>&1`
+- mocversiongrep=`echo $mocversion | grep "Qt 5"`
++ mocversiongrep=`echo $mocversion | grep " 5\."`
+ if test x"$mocversiongrep" != x"$mocversion"; then
+ # no valid moc found
+ enable_poppler_qt5=no;