summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2018-05-29 13:57:52 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2018-05-29 14:31:08 +0200
commitf14d0642edab40e1cd9edb198cffdcb3269e8312 (patch)
treefabc6d7f060ea599261c4094daec6688f62ee1a2 /dev-libs/libical/files
parentdev-libs/libical: Drop 2.0.0-r2 (diff)
downloadgentoo-f14d0642edab40e1cd9edb198cffdcb3269e8312.tar.gz
gentoo-f14d0642edab40e1cd9edb198cffdcb3269e8312.tar.bz2
gentoo-f14d0642edab40e1cd9edb198cffdcb3269e8312.zip
dev-libs/libical: 3.0.3 version bump
Closes: https://bugs.gentoo.org/656268 Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'dev-libs/libical/files')
-rw-r--r--dev-libs/libical/files/libical-3.0.3-findicu-pkgconfig.patch58
1 files changed, 58 insertions, 0 deletions
diff --git a/dev-libs/libical/files/libical-3.0.3-findicu-pkgconfig.patch b/dev-libs/libical/files/libical-3.0.3-findicu-pkgconfig.patch
new file mode 100644
index 000000000000..7f0ffc4b4280
--- /dev/null
+++ b/dev-libs/libical/files/libical-3.0.3-findicu-pkgconfig.patch
@@ -0,0 +1,58 @@
+From 5c682db0dd1cfd7090dd191e89613ad5fb9fc078 Mon Sep 17 00:00:00 2001
+From: Allen Winter <allen.winter@kdab.com>
+Date: Sat, 26 May 2018 09:06:10 -0400
+Subject: [PATCH] cmake/modules/FindICU.cmake - allow pkgconfig to get is a
+ hint
+
+---
+ cmake/modules/FindICU.cmake | 13 ++++++-------
+ 1 file changed, 6 insertions(+), 7 deletions(-)
+
+diff --git a/cmake/modules/FindICU.cmake b/cmake/modules/FindICU.cmake
+index 12a1812d..53213efe 100644
+--- a/cmake/modules/FindICU.cmake
++++ b/cmake/modules/FindICU.cmake
+@@ -23,16 +23,12 @@ if(WIN32)
+ file(TO_CMAKE_PATH "$ENV{PROGRAMFILES}" _program_FILES_DIR)
+ endif()
+
+-if(ICU_INCLUDE_DIR AND ICU_LIBRARY)
+- # Already in cache, be silent
+- set(ICU_FIND_QUIETLY TRUE)
+-endif()
+-
+-#set the root from the ICU_BASE environment
+ file(TO_NATIVE_PATH "$ENV{ICU_BASE}" icu_root)
+-#override the root from ICU_BASE defined to cmake
+ if(DEFINED ICU_BASE)
+ file(TO_NATIVE_PATH "${ICU_BASE}" icu_root)
++else()
++ find_package(PkgConfig QUIET)
++ pkg_check_modules(PC_LibICU QUIET icu-i18n)
+ endif()
+
+ # Look for the header file.
+@@ -42,6 +38,7 @@ find_path(
+ HINTS
+ ${icu_root}/include
+ ${_program_FILES_DIR}/icu/include
++ ${PC_LibICU_INCLUDEDIR}
+ /usr/local/opt/icu4c/include
+ DOC "Include directory for the ICU library"
+ )
+@@ -56,6 +53,7 @@ find_library(
+ ${icu_root}/lib/
+ ${_program_FILES_DIR}/icu/lib64/
+ ${_program_FILES_DIR}/icu/lib/
++ ${PC_LibICU_LIBDIR}
+ /usr/local/opt/icu4c/lib/
+ DOC "Libraries to link against for the common parts of ICU"
+ )
+@@ -98,6 +96,7 @@ if(ICU_INCLUDE_DIR AND ICU_LIBRARY)
+ HINTS
+ ${icu_root}/lib/
+ ${_program_FILES_DIR}/icu/lib/
++ ${PC_LibICU_LIBDIR}
+ /usr/local/opt/icu4c/lib/
+ DOC "Libraries to link against for ICU internationalization"
+ )