Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: kde-apps/pimcommon/files/, kde-apps/pimcommon/
Date: Sun, 20 Dec 2015 15:44:26
Message-Id: 1450626240.8f6302b3ab0060219daee5d2371b9deb923868a8.kensington@gentoo
1 commit: 8f6302b3ab0060219daee5d2371b9deb923868a8
2 Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
3 AuthorDate: Sat Dec 19 12:02:03 2015 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 20 15:44:00 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=8f6302b3
7
8 kde-apps/pimcommon: Add USE=designer
9
10 Backport patch from git master
11
12 Package-Manager: portage-2.2.24
13
14 .../files/pimcommon-15.12.0-find-qt5designer.patch | 15 +++++++++++++++
15 kde-apps/pimcommon/metadata.xml | 3 +++
16 ...mcommon-15.12.0.ebuild => pimcommon-15.12.0-r1.ebuild} | 13 +++++++++++--
17 kde-apps/pimcommon/pimcommon-15.12.49.9999.ebuild | 13 +++++++++++--
18 kde-apps/pimcommon/pimcommon-9999.ebuild | 11 +++++++++--
19 5 files changed, 49 insertions(+), 6 deletions(-)
20
21 diff --git a/kde-apps/pimcommon/files/pimcommon-15.12.0-find-qt5designer.patch b/kde-apps/pimcommon/files/pimcommon-15.12.0-find-qt5designer.patch
22 new file mode 100644
23 index 0000000..f45c6aa
24 --- /dev/null
25 +++ b/kde-apps/pimcommon/files/pimcommon-15.12.0-find-qt5designer.patch
26 @@ -0,0 +1,15 @@
27 +--- a/CMakeLists.txt
28 ++++ b/CMakeLists.txt
29 +@@ -51,6 +51,11 @@
30 + find_package(KF5Libkdepim ${LIBKDEPIM_LIB_VERSION} CONFIG REQUIRED)
31 + find_package(KF5PimTextEdit ${KPIMTEXTEDIT_LIB_VERSION} CONFIG REQUIRED)
32 +
33 ++find_package(Qt5Designer CONFIG)
34 ++set_package_properties(Qt5Designer PROPERTIES
35 ++ PURPOSE "Required to build the Qt Designer plugins"
36 ++ TYPE OPTIONAL
37 ++)
38 +
39 + ecm_setup_version(${PIMCOMMON_LIB_VERSION} VARIABLE_PREFIX PIMCOMMON
40 + VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/pimcommon_version.h"
41 +
42
43 diff --git a/kde-apps/pimcommon/metadata.xml b/kde-apps/pimcommon/metadata.xml
44 index a23f444..774f7f1 100644
45 --- a/kde-apps/pimcommon/metadata.xml
46 +++ b/kde-apps/pimcommon/metadata.xml
47 @@ -2,4 +2,7 @@
48 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
49 <pkgmetadata>
50 <herd>kde</herd>
51 + <use>
52 + <flag name="designer">Build plugins for <pkg>dev-qt/designer</pkg></flag>
53 + </use>
54 </pkgmetadata>
55
56 diff --git a/kde-apps/pimcommon/pimcommon-15.12.0.ebuild b/kde-apps/pimcommon/pimcommon-15.12.0-r1.ebuild
57 similarity index 87%
58 rename from kde-apps/pimcommon/pimcommon-15.12.0.ebuild
59 rename to kde-apps/pimcommon/pimcommon-15.12.0-r1.ebuild
60 index b2dbc3b..ec5cc0b 100644
61 --- a/kde-apps/pimcommon/pimcommon-15.12.0.ebuild
62 +++ b/kde-apps/pimcommon/pimcommon-15.12.0-r1.ebuild
63 @@ -11,7 +11,7 @@ inherit kde5
64 DESCRIPTION="Common PIM libraries"
65 LICENSE="LGPL-2+"
66 KEYWORDS="~amd64 ~x86"
67 -IUSE=""
68 +IUSE="designer"
69
70 COMMON_DEPEND="
71 $(add_frameworks_dep karchive)
72 @@ -45,7 +45,6 @@ COMMON_DEPEND="
73 $(add_kdeapps_dep libakonadi)
74 $(add_kdeapps_dep libkdepim)
75 dev-libs/libxslt
76 - dev-qt/designer:5
77 dev-qt/qtdbus:5
78 dev-qt/qtgui:5
79 dev-qt/qtnetwork:5
80 @@ -55,6 +54,7 @@ COMMON_DEPEND="
81 "
82 DEPEND="${COMMON_DEPEND}
83 sys-devel/gettext
84 + designer? ( dev-qt/designer:5 )
85 "
86 RDEPEND="${COMMON_DEPEND}
87 !<kde-apps/kdepim-15.08.50:5
88 @@ -66,3 +66,12 @@ if [[ ${KDE_BUILD_TYPE} = live ]] ; then
89 else
90 S="${WORKDIR}/${KMNAME}-${PV}/${PN}"
91 fi
92 +
93 +PATCHES=( "${FILESDIR}/${PN}-15.12.0-find-qt5designer.patch" )
94 +
95 +src_configure() {
96 + local mycmakeargs=(
97 + $(cmake-utils_use_find_package designer Qt5Designer)
98 + )
99 + kde5_src_configure
100 +}
101
102 diff --git a/kde-apps/pimcommon/pimcommon-15.12.49.9999.ebuild b/kde-apps/pimcommon/pimcommon-15.12.49.9999.ebuild
103 index 6187d04..b3dba99 100644
104 --- a/kde-apps/pimcommon/pimcommon-15.12.49.9999.ebuild
105 +++ b/kde-apps/pimcommon/pimcommon-15.12.49.9999.ebuild
106 @@ -11,7 +11,7 @@ inherit kde5
107 DESCRIPTION="Common PIM libraries"
108 LICENSE="LGPL-2+"
109 KEYWORDS=""
110 -IUSE=""
111 +IUSE="designer"
112
113 COMMON_DEPEND="
114 $(add_frameworks_dep karchive)
115 @@ -45,7 +45,6 @@ COMMON_DEPEND="
116 $(add_kdeapps_dep libakonadi)
117 $(add_kdeapps_dep libkdepim)
118 dev-libs/libxslt
119 - dev-qt/designer:5
120 dev-qt/qtdbus:5
121 dev-qt/qtgui:5
122 dev-qt/qtnetwork:5
123 @@ -55,6 +54,7 @@ COMMON_DEPEND="
124 "
125 DEPEND="${COMMON_DEPEND}
126 sys-devel/gettext
127 + designer? ( dev-qt/designer:5 )
128 "
129 RDEPEND="${COMMON_DEPEND}
130 !<kde-apps/kdepim-15.08.50:5
131 @@ -66,3 +66,12 @@ if [[ ${KDE_BUILD_TYPE} = live ]] ; then
132 else
133 S="${WORKDIR}/${KMNAME}-${PV}/${PN}"
134 fi
135 +
136 +PATCHES=( "${FILESDIR}/${PN}-15.12.0-find-qt5designer.patch" )
137 +
138 +src_configure() {
139 + local mycmakeargs=(
140 + $(cmake-utils_use_find_package designer Qt5Designer)
141 + )
142 + kde5_src_configure
143 +}
144
145 diff --git a/kde-apps/pimcommon/pimcommon-9999.ebuild b/kde-apps/pimcommon/pimcommon-9999.ebuild
146 index 9d5f91a..0e18ea9 100644
147 --- a/kde-apps/pimcommon/pimcommon-9999.ebuild
148 +++ b/kde-apps/pimcommon/pimcommon-9999.ebuild
149 @@ -10,7 +10,7 @@ inherit kde5
150 DESCRIPTION="Common PIM libraries"
151 LICENSE="LGPL-2+"
152 KEYWORDS=""
153 -IUSE=""
154 +IUSE="designer"
155
156 COMMON_DEPEND="
157 $(add_frameworks_dep karchive)
158 @@ -44,7 +44,6 @@ COMMON_DEPEND="
159 $(add_kdeapps_dep libakonadi)
160 $(add_kdeapps_dep libkdepim)
161 dev-libs/libxslt
162 - dev-qt/designer:5
163 dev-qt/qtdbus:5
164 dev-qt/qtgui:5
165 dev-qt/qtnetwork:5
166 @@ -54,8 +53,16 @@ COMMON_DEPEND="
167 "
168 DEPEND="${COMMON_DEPEND}
169 sys-devel/gettext
170 + designer? ( dev-qt/designer:5 )
171 "
172 RDEPEND="${COMMON_DEPEND}
173 !<kde-apps/kdepim-15.08.50:5
174 !kde-base/kdepim-common-libs:4
175 "
176 +
177 +src_configure() {
178 + local mycmakeargs=(
179 + $(cmake-utils_use_find_package designer Qt5Designer)
180 + )
181 + kde5_src_configure
182 +}