Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: kde-misc/kolor-manager/files/, kde-misc/kolor-manager/
Date: Sun, 09 Jul 2017 18:00:14
Message-Id: 1499623151.f4543f87cc876308fd33ac4200e8e1e1fe1f3a58.asturm@gentoo
1 commit: f4543f87cc876308fd33ac4200e8e1e1fe1f3a58
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 9 17:59:11 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 9 17:59:11 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=f4543f87
7
8 kde-misc/kolor-manager: Fix cmake
9
10 Gentoo-bug: 620914
11
12 Package-Manager: Portage-2.3.6, Repoman-2.3.1
13
14 .../kolor-manager/files/kolor-manager-cmake.patch | 75 ++++++++++++++++++++++
15 kde-misc/kolor-manager/kolor-manager-9999.ebuild | 4 +-
16 2 files changed, 78 insertions(+), 1 deletion(-)
17
18 diff --git a/kde-misc/kolor-manager/files/kolor-manager-cmake.patch b/kde-misc/kolor-manager/files/kolor-manager-cmake.patch
19 new file mode 100644
20 index 0000000000..cc493e527f
21 --- /dev/null
22 +++ b/kde-misc/kolor-manager/files/kolor-manager-cmake.patch
23 @@ -0,0 +1,75 @@
24 +commit 9a248c1ca916a956366b6c5e4fafa603d5d1ae9d
25 +Author: Andreas Sturmlechner <andreas.sturmlechner@×××××.com>
26 +Date: Sun Jul 9 19:53:44 2017 +0200
27 +
28 + CMakeLists.txt: Minor improvements
29 +
30 + Summary:
31 + CMAKE_MINIMUM_REQUIRED first line
32 + Remove duplicate lines
33 + KF5DocTools optional
34 + subdirs -> add_subdirectory
35 +
36 + Reviewers: behrmann
37 +
38 + Differential Revision: https://phabricator.kde.org/D6588
39 +
40 +diff --git a/CMakeLists.txt b/CMakeLists.txt
41 +index 5b3eb2b..fd1ecf1 100644
42 +--- a/CMakeLists.txt
43 ++++ b/CMakeLists.txt
44 +@@ -1,11 +1,10 @@
45 +-#cmake file for building Kolor-Manager and related modules
46 ++CMAKE_MINIMUM_REQUIRED(VERSION 3.0 FATAL_ERROR)
47 +
48 + PROJECT(kolor-manager)
49 + SET( PACKAGE_NAME kolor-manager )
50 +
51 + SET( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake/modules )
52 +
53 +-
54 + # project version
55 + SET( ${PROJECT_NAME}_MAJOR_VERSION 1)
56 + SET( ${PROJECT_NAME}_MINOR_VERSION 1)
57 +@@ -13,10 +12,9 @@ SET( ${PROJECT_NAME}_MICRO_VERSION 1)
58 +
59 + SET( ${PROJECT_NAME}_VERSION ${${PROJECT_NAME}_MAJOR_VERSION}.${${PROJECT_NAME}_MINOR_VERSION}.${${PROJECT_NAME}_MICRO_VERSION} )
60 +
61 +-FIND_PACKAGE(Qt5Widgets)
62 +-CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
63 + FIND_PACKAGE(ECM REQUIRED NO_MODULE)
64 + SET(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_MODULE_PATH})
65 ++
66 + INCLUDE(KDEInstallDirs)
67 + INCLUDE(KDECompilerSettings)
68 + INCLUDE(KDECMakeSettings)
69 +@@ -24,7 +22,9 @@ INCLUDE(FeatureSummary)
70 + INCLUDE(GenerateExportHeader)
71 +
72 + FIND_PACKAGE(Qt5 REQUIRED COMPONENTS Core Widgets)
73 +-FIND_PACKAGE(KF5 REQUIRED COMPONENTS ConfigWidgets CoreAddons I18n DocTools)
74 ++FIND_PACKAGE(KF5 REQUIRED COMPONENTS ConfigWidgets CoreAddons I18n)
75 ++
76 ++FIND_PACKAGE(KF5DocTools)
77 +
78 + FIND_PACKAGE(Oyranos REQUIRED)
79 + FIND_PACKAGE(Synnefo REQUIRED)
80 +@@ -39,11 +39,13 @@ LINK_DIRECTORIES(
81 +
82 + SET( ${CMAKE_BUILD_TYPE} Debug)
83 +
84 +-SUBDIRS( devices
85 +- information
86 +- settings
87 +- doc
88 +- )
89 ++ADD_SUBDIRECTORY( devices )
90 ++ADD_SUBDIRECTORY( information )
91 ++ADD_SUBDIRECTORY( settings )
92 ++
93 ++IF(KF5DocTools_FOUND)
94 ++ ADD_SUBDIRECTORY( doc )
95 ++ENDIF()
96 +
97 +
98 + INSTALL( FILES settings-kolor-management.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
99
100 diff --git a/kde-misc/kolor-manager/kolor-manager-9999.ebuild b/kde-misc/kolor-manager/kolor-manager-9999.ebuild
101 index 82f0278fee..8692e194b8 100644
102 --- a/kde-misc/kolor-manager/kolor-manager-9999.ebuild
103 +++ b/kde-misc/kolor-manager/kolor-manager-9999.ebuild
104 @@ -3,7 +3,7 @@
105
106 EAPI=6
107
108 -KDE_HANDBOOK="forceoptional"
109 +KDE_HANDBOOK="optional"
110 inherit kde5
111
112 DESCRIPTION="KControl module for Oyranos CMS cross desktop settings"
113 @@ -24,3 +24,5 @@ DEPEND="
114 x11-libs/libXrandr
115 "
116 RDEPEND="${DEPEND}"
117 +
118 +PATCHES=( "${FILESDIR}/${PN}-cmake.patch" )