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/mailcommon/files/, kde-apps/mailcommon/
Date: Sun, 20 Dec 2015 15:44:26
Message-Id: 1450626241.1eb36c651e0363b5fb309776ccee23e7bb39cc7b.kensington@gentoo
1 commit: 1eb36c651e0363b5fb309776ccee23e7bb39cc7b
2 Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
3 AuthorDate: Sat Dec 19 12:18:44 2015 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 20 15:44:01 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=1eb36c65
7
8 kde-apps/mailcommon: Add USE=designer
9
10 Backport from git master
11
12 Package-Manager: portage-2.2.24
13
14 .../mailcommon-15.12.0-find-qt5designer.patch | 24 ++++++++++++++++++++++
15 ...15.12.0.ebuild => mailcommon-15.12.0-r1.ebuild} | 13 ++++++++++--
16 .../mailcommon/mailcommon-15.12.49.9999.ebuild | 13 ++++++++++--
17 kde-apps/mailcommon/mailcommon-9999.ebuild | 11 ++++++++--
18 kde-apps/mailcommon/metadata.xml | 3 +++
19 5 files changed, 58 insertions(+), 6 deletions(-)
20
21 diff --git a/kde-apps/mailcommon/files/mailcommon-15.12.0-find-qt5designer.patch b/kde-apps/mailcommon/files/mailcommon-15.12.0-find-qt5designer.patch
22 new file mode 100644
23 index 0000000..9317ccf
24 --- /dev/null
25 +++ b/kde-apps/mailcommon/files/mailcommon-15.12.0-find-qt5designer.patch
26 @@ -0,0 +1,24 @@
27 +From: Montel Laurent <montel@×××.org>
28 +Date: Fri, 18 Dec 2015 06:27:49 +0000
29 +Subject: Generate designer plugins
30 +X-Git-Url: http://quickgit.kde.org/?p=mailcommon.git&a=commitdiff&h=a5f3593adc2e13124adf3a5258685c6954d12278
31 +---
32 +Generate designer plugins
33 +---
34 +
35 +
36 +--- a/CMakeLists.txt
37 ++++ b/CMakeLists.txt
38 +@@ -52,6 +52,12 @@
39 + find_package(KF5Ldap ${KLDAP_LIB_VERSION} CONFIG REQUIRED)
40 + find_package(Phonon4Qt5 CONFIG REQUIRED)
41 +
42 ++find_package(Qt5Designer CONFIG)
43 ++set_package_properties(Qt5Designer PROPERTIES
44 ++ PURPOSE "Required to build the Qt Designer plugins"
45 ++ TYPE OPTIONAL
46 ++)
47 ++
48 + find_package(Xsltproc)
49 + set_package_properties(Xsltproc PROPERTIES DESCRIPTION "XSLT processor from libxslt" TYPE REQUIRED PURPOSE "Required to generate D-Bus interfaces for all Akonadi resources.")
50 +
51
52 diff --git a/kde-apps/mailcommon/mailcommon-15.12.0.ebuild b/kde-apps/mailcommon/mailcommon-15.12.0-r1.ebuild
53 similarity index 84%
54 rename from kde-apps/mailcommon/mailcommon-15.12.0.ebuild
55 rename to kde-apps/mailcommon/mailcommon-15.12.0-r1.ebuild
56 index 89b4358..06413c9 100644
57 --- a/kde-apps/mailcommon/mailcommon-15.12.0.ebuild
58 +++ b/kde-apps/mailcommon/mailcommon-15.12.0-r1.ebuild
59 @@ -11,7 +11,7 @@ inherit kde5
60 DESCRIPTION="Common mail library"
61 LICENSE="LGPL-2+"
62 KEYWORDS="~amd64 ~x86"
63 -IUSE=""
64 +IUSE="designer"
65
66 COMMON_DEPEND="
67 $(add_frameworks_dep karchive)
68 @@ -37,13 +37,13 @@ COMMON_DEPEND="
69 $(add_kdeapps_dep pimcommon)
70 $(add_kdeapps_dep templateparser)
71 dev-libs/libxslt
72 - dev-qt/designer:5
73 dev-qt/qtgui:5
74 dev-qt/qtwidgets:5
75 media-libs/phonon[qt5]
76 "
77 DEPEND="${COMMON_DEPEND}
78 sys-devel/gettext
79 + designer? ( dev-qt/designer:5 )
80 "
81 RDEPEND="${COMMON_DEPEND}
82 !<kde-apps/kdepim-15.08.50:5
83 @@ -55,3 +55,12 @@ if [[ ${KDE_BUILD_TYPE} = live ]] ; then
84 else
85 S="${WORKDIR}/${KMNAME}-${PV}/${PN}"
86 fi
87 +
88 +PATCHES=( "${FILESDIR}/${PN}-15.12.0-find-qt5designer.patch" )
89 +
90 +src_configure() {
91 + local mycmakeargs=(
92 + $(cmake-utils_use_find_package designer Qt5Designer)
93 + )
94 + kde5_src_configure
95 +}
96
97 diff --git a/kde-apps/mailcommon/mailcommon-15.12.49.9999.ebuild b/kde-apps/mailcommon/mailcommon-15.12.49.9999.ebuild
98 index 0cf6186..27ae909 100644
99 --- a/kde-apps/mailcommon/mailcommon-15.12.49.9999.ebuild
100 +++ b/kde-apps/mailcommon/mailcommon-15.12.49.9999.ebuild
101 @@ -11,7 +11,7 @@ inherit kde5
102 DESCRIPTION="Common mail library"
103 LICENSE="LGPL-2+"
104 KEYWORDS=""
105 -IUSE=""
106 +IUSE="designer"
107
108 COMMON_DEPEND="
109 $(add_frameworks_dep karchive)
110 @@ -37,13 +37,13 @@ COMMON_DEPEND="
111 $(add_kdeapps_dep pimcommon)
112 $(add_kdeapps_dep templateparser)
113 dev-libs/libxslt
114 - dev-qt/designer:5
115 dev-qt/qtgui:5
116 dev-qt/qtwidgets:5
117 media-libs/phonon[qt5]
118 "
119 DEPEND="${COMMON_DEPEND}
120 sys-devel/gettext
121 + designer? ( dev-qt/designer:5 )
122 "
123 RDEPEND="${COMMON_DEPEND}
124 !<kde-apps/kdepim-15.08.50:5
125 @@ -55,3 +55,12 @@ if [[ ${KDE_BUILD_TYPE} = live ]] ; then
126 else
127 S="${WORKDIR}/${KMNAME}-${PV}/${PN}"
128 fi
129 +
130 +PATCHES=( "${FILESDIR}/${PN}-15.12.0-find-qt5designer.patch" )
131 +
132 +src_configure() {
133 + local mycmakeargs=(
134 + $(cmake-utils_use_find_package designer Qt5Designer)
135 + )
136 + kde5_src_configure
137 +}
138
139 diff --git a/kde-apps/mailcommon/mailcommon-9999.ebuild b/kde-apps/mailcommon/mailcommon-9999.ebuild
140 index 0c6f132..2c16313 100644
141 --- a/kde-apps/mailcommon/mailcommon-9999.ebuild
142 +++ b/kde-apps/mailcommon/mailcommon-9999.ebuild
143 @@ -10,7 +10,7 @@ inherit kde5
144 DESCRIPTION="Common mail library"
145 LICENSE="LGPL-2+"
146 KEYWORDS=""
147 -IUSE=""
148 +IUSE="designer"
149
150 COMMON_DEPEND="
151 $(add_frameworks_dep karchive)
152 @@ -33,15 +33,22 @@ COMMON_DEPEND="
153 $(add_kdeapps_dep messagelib)
154 $(add_kdeapps_dep pimcommon)
155 dev-libs/libxslt
156 - dev-qt/designer:5
157 dev-qt/qtgui:5
158 dev-qt/qtwidgets:5
159 media-libs/phonon[qt5]
160 "
161 DEPEND="${COMMON_DEPEND}
162 sys-devel/gettext
163 + designer? ( dev-qt/designer:5 )
164 "
165 RDEPEND="${COMMON_DEPEND}
166 !<kde-apps/kdepim-15.08.50:5
167 !kde-base/kdepim-common-libs:4
168 "
169 +
170 +src_configure() {
171 + local mycmakeargs=(
172 + $(cmake-utils_use_find_package designer Qt5Designer)
173 + )
174 + kde5_src_configure
175 +}
176
177 diff --git a/kde-apps/mailcommon/metadata.xml b/kde-apps/mailcommon/metadata.xml
178 index a23f444..774f7f1 100644
179 --- a/kde-apps/mailcommon/metadata.xml
180 +++ b/kde-apps/mailcommon/metadata.xml
181 @@ -2,4 +2,7 @@
182 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
183 <pkgmetadata>
184 <herd>kde</herd>
185 + <use>
186 + <flag name="designer">Build plugins for <pkg>dev-qt/designer</pkg></flag>
187 + </use>
188 </pkgmetadata>