summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Fiskerstrand <k_f@gentoo.org>2015-09-29 21:25:20 +0200
committerKristian Fiskerstrand <k_f@gentoo.org>2015-09-29 21:28:00 +0200
commite1b3fca42c9882378320d3eb8538eb05f283ef05 (patch)
tree6cc2863fd7e2ad5880efef1e10c99d2f9fbc468a /app-crypt/pinentry/files
parentdev-util/strace: drop old versions (diff)
downloadgentoo-e1b3fca42c9882378320d3eb8538eb05f283ef05.tar.gz
gentoo-e1b3fca42c9882378320d3eb8538eb05f283ef05.tar.bz2
gentoo-e1b3fca42c9882378320d3eb8538eb05f283ef05.zip
app-crypt/pinentry-0.9.6-r5: Add Qt5 support
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'app-crypt/pinentry/files')
-rw-r--r--app-crypt/pinentry/files/pinentry-0.9.6-add-disable-pinentry-qt5-option.patch55
1 files changed, 55 insertions, 0 deletions
diff --git a/app-crypt/pinentry/files/pinentry-0.9.6-add-disable-pinentry-qt5-option.patch b/app-crypt/pinentry/files/pinentry-0.9.6-add-disable-pinentry-qt5-option.patch
new file mode 100644
index 000000000000..9522c2f4bf74
--- /dev/null
+++ b/app-crypt/pinentry/files/pinentry-0.9.6-add-disable-pinentry-qt5-option.patch
@@ -0,0 +1,55 @@
+From 08ec9556c8a384ea7bb5d42d3f6aab6c2f6a8786 Mon Sep 17 00:00:00 2001
+From: Andre Heinecke <aheinecke@intevation.de>
+Date: Fri, 25 Sep 2015 15:56:55 +0200
+Subject: [PATCH] Add option to disable looking for qt5
+
+* m4/qt.m4 (FIND_QT): Add --disable-pinentry-qt5 option to
+disable qt5 support even if it is available.
+
+--
+As requested by Kristan F.
+
+GnuPG-bug-id: 2105
+---
+ m4/qt.m4 | 23 ++++++++++++++++-------
+ 1 file changed, 16 insertions(+), 7 deletions(-)
+
+diff --git a/m4/qt.m4 b/m4/qt.m4
+index 0a7ea99..0e47ec6 100644
+--- a/m4/qt.m4
++++ b/m4/qt.m4
+@@ -28,15 +28,24 @@ dnl The moc lookup code is based on libpoppler (rev. d821207)
+
+ AC_DEFUN([FIND_QT],
+ [
+- PKG_CHECK_MODULES(PINENTRY_QT,
+- Qt5Core >= 5.0.0 Qt5Gui >= 5.0.0 Qt5Widgets >= 5.0.0,
+- [have_qt5_libs="yes"],
+- [have_qt5_libs="no"])
++ AC_ARG_ENABLE(pinentry-qt5,
++ AC_HELP_STRING([--disable-pinentry-qt5],
++ [Don't use qt5 even if it is available.]),
++ enable_pinentry_qt5=$enableval,
++ enable_pinentry_qt5="try")
+
+- if "$PKG_CONFIG" --variable qt_config Qt5Core | grep -q "reduce_relocations"; then
+- PINENTRY_QT_CFLAGS="$PINENTRY_QT_CFLAGS -fpic"
+- fi
++ have_qt5_libs="no";
++
++ if test "$enable_pinentry_qt5" != "no"; then
++ PKG_CHECK_MODULES(PINENTRY_QT,
++ Qt5Core >= 5.0.0 Qt5Gui >= 5.0.0 Qt5Widgets >= 5.0.0,
++ [have_qt5_libs="yes"],
++ [have_qt5_libs="no"])
+
++ if "$PKG_CONFIG" --variable qt_config Qt5Core | grep -q "reduce_relocations"; then
++ PINENTRY_QT_CFLAGS="$PINENTRY_QT_CFLAGS -fpic"
++ fi
++ fi
+ if test "$have_qt5_libs" = "yes"; then
+ AC_CHECK_TOOL(MOC, moc)
+ AC_MSG_CHECKING([moc version])
+--
+2.1.4
+