summaryrefslogtreecommitdiff
path: root/x11-libs/gtk+/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-04-28 20:48:38 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-04-28 20:48:38 +0100
commit6a4441a53f1b67a5f96ad78f0a923b1ef6690c37 (patch)
tree9e33cf479a1df7de341036a5591cf548c94fd167 /x11-libs/gtk+/files
parent461f45f50d8070123554dc2d83957e6ae973bbdf (diff)
x11-libs/gtk+:3 : version bump
Diffstat (limited to 'x11-libs/gtk+/files')
-rw-r--r--x11-libs/gtk+/files/gtk+-3.22.20-libcloudproviders-automagic.patch57
1 files changed, 57 insertions, 0 deletions
diff --git a/x11-libs/gtk+/files/gtk+-3.22.20-libcloudproviders-automagic.patch b/x11-libs/gtk+/files/gtk+-3.22.20-libcloudproviders-automagic.patch
new file mode 100644
index 00000000..8913bc88
--- /dev/null
+++ b/x11-libs/gtk+/files/gtk+-3.22.20-libcloudproviders-automagic.patch
@@ -0,0 +1,57 @@
+From 4588c9c6463d8958d8305caafa58ea5c263fd352 Mon Sep 17 00:00:00 2001
+From: Gilles Dartiguelongue <eva@gentoo.org>
+Date: Tue, 16 Jan 2018 09:07:38 +0100
+Subject: [PATCH] Fix libcloudproviders check
+
+Use autotools managed variables and make use of pkgconfig macros.
+---
+ configure.ac | 26 +++++++++++++-------------
+ 1 file changed, 13 insertions(+), 13 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 24110386b4..cebe66c2e5 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -349,8 +349,10 @@ AC_ARG_ENABLE(mir-backend,
+
+ AC_ARG_ENABLE(cloudproviders,
+ [AS_HELP_STRING([--enable-cloudproviders],
+- [enable libcloudproviders integration])],
+- [cloudproviders_set=yes])
++ [enable libcloudproviders integration])
++ ],
++ [],
++ [enable_cloudproviders=yes])
+
+ if test -z "$backend_set"; then
+ if test "$platform_win32" = yes; then
+@@ -1350,17 +1352,15 @@ fi
+ # Check for libcloudproviders
+
+ CLOUDPROVIDER_PACKAGES=""
+-if test "x$cloudproviders_set" = "xyes"; then
+- CLOUDPROVIDER_PACKAGES="cloudproviders >= cloudproviders_required_version"
+- if $PKG_CONFIG --exists $CLOUDPROVIDER_PACKAGES ; then
+- AC_DEFINE(HAVE_CLOUDPROVIDERS, [1],
+- [Define if libcloudproviders is available]
+- )
+- else
+- AC_MSG_ERROR([
+-*** libcloudproviders not found.])
+- fi
+-fi
++AS_IF([test "$enable_cloudproviders" = "yes"],
++ [
++ CLOUDPROVIDER_PACKAGES="cloudproviders >= cloudproviders_required_version"
++ PKG_CHECK_EXISTS(
++ [$CLOUDPROVIDER_PACKAGES],
++ [AC_DEFINE(HAVE_CLOUDPROVIDERS, [1], [Define if libcloudproviders is available])],
++ [AC_MSG_ERROR([*** libcloudproviders not found])]
++ )
++ ])
+
+ CFLAGS="$saved_cflags"
+ LDFLAGS="$saved_ldflags"
+--
+2.15.1
+