From: | "Johannes Huber (johu)" <johu@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-libs/qtkeychain/files: qtkeychain-0.1.0-qt5.patch |
Date: | Wed, 29 May 2013 23:20:36 |
Message-Id: | 20130529232033.7D3042171E@flycatcher.gentoo.org |
1 | johu 13/05/29 23:20:33 |
2 | |
3 | Added: qtkeychain-0.1.0-qt5.patch |
4 | Log: |
5 | New package. Ebuild by me. |
6 | |
7 | (Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key F3CFD2BD) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-libs/qtkeychain/files/qtkeychain-0.1.0-qt5.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/qtkeychain/files/qtkeychain-0.1.0-qt5.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/qtkeychain/files/qtkeychain-0.1.0-qt5.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: qtkeychain-0.1.0-qt5.patch |
16 | =================================================================== |
17 | From 69638a5ddb725c4f8000f86546d5d41f2917fe40 Mon Sep 17 00:00:00 2001 |
18 | From: Johannes Huber <johu@g.o> |
19 | Date: Thu, 30 May 2013 00:03:45 +0200 |
20 | Subject: [PATCH] Add Qt5 build option. |
21 | |
22 | * removes automagic build when Qt4 + Qt5 is installed on system |
23 | --- |
24 | CMakeLists.txt | 10 +++++++++- |
25 | 1 file changed, 9 insertions(+), 1 deletion(-) |
26 | |
27 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
28 | index aba9032..f601a11 100644 |
29 | --- a/CMakeLists.txt |
30 | +++ b/CMakeLists.txt |
31 | @@ -11,8 +11,16 @@ set(QTKEYCHAIN_SOVERSION 0) |
32 | set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" "${PROJECT_SOURCE_DIR}/cmake/Modules") |
33 | include(GNUInstallDirs) |
34 | |
35 | +option(QT5_BUILD "Build qtkeychain using the Qt5 framework" TRUE) |
36 | + |
37 | +if(QT5_BUILD) |
38 | + find_package(Qt5Core QUIET) |
39 | +else() |
40 | + find_package(Qt4 REQUIRED) |
41 | + include(${QT_USE_FILE}) |
42 | +endif() |
43 | + |
44 | # try Qt5 first, and prefer that if found |
45 | -find_package(Qt5Core QUIET) |
46 | if (Qt5Core_FOUND) |
47 | if(UNIX AND NOT APPLE) |
48 | find_package(Qt5DBus REQUIRED) |
49 | -- |
50 | 1.8.2.1 |