Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/calligraplan/, app-office/calligraplan/files/
Date: Fri, 16 Aug 2019 14:41:02
Message-Id: 1565966432.72e3e39afb23a77afb3685a9c25db784f7874aa0.asturm@gentoo
1 commit: 72e3e39afb23a77afb3685a9c25db784f7874aa0
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 16 12:47:02 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 16 14:40:32 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72e3e39a
7
8 app-office/calligraplan: EAPI-7 bump, backported unused-deps patch
9
10 Package-Manager: Portage-2.3.71, Repoman-2.3.17
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 .../calligraplan/calligraplan-3.1.0-r1.ebuild | 97 ++++++++++++++++++++++
14 .../files/calligraplan-3.1.0-unused-deps.patch | 57 +++++++++++++
15 2 files changed, 154 insertions(+)
16
17 diff --git a/app-office/calligraplan/calligraplan-3.1.0-r1.ebuild b/app-office/calligraplan/calligraplan-3.1.0-r1.ebuild
18 new file mode 100644
19 index 00000000000..98cc37a7595
20 --- /dev/null
21 +++ b/app-office/calligraplan/calligraplan-3.1.0-r1.ebuild
22 @@ -0,0 +1,97 @@
23 +# Copyright 1999-2019 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=7
27 +
28 +KDE_HANDBOOK="forceoptional"
29 +KDE_TEST="forceoptional"
30 +inherit kde5
31 +
32 +DESCRIPTION="Project management application"
33 +HOMEPAGE="https://www.calligra.org/"
34 +SRC_URI="mirror://kde/stable/${PN/plan/}/${PV}/${P}.tar.xz"
35 +
36 +LICENSE="GPL-2"
37 +KEYWORDS="amd64 x86"
38 +IUSE="activities +holidays kwallet pim X"
39 +
40 +# FIXME: Disabled by upstream for good reason
41 +# Crashes (https://bugs.kde.org/show_bug.cgi?id=311940)
42 +# $(add_kdeapps_dep akonadi)
43 +# $(add_kdeapps_dep akonadi-contacts)
44 +# Currently upstream-disabled:
45 +# =dev-libs/kproperty-3.0*:5
46 +# =dev-libs/kreport-3.0*:5
47 +DEPEND="
48 + $(add_frameworks_dep karchive)
49 + $(add_frameworks_dep kconfig)
50 + $(add_frameworks_dep kconfigwidgets)
51 + $(add_frameworks_dep kcoreaddons)
52 + $(add_frameworks_dep kdbusaddons)
53 + $(add_frameworks_dep kglobalaccel)
54 + $(add_frameworks_dep kguiaddons)
55 + $(add_frameworks_dep khtml)
56 + $(add_frameworks_dep ki18n)
57 + $(add_frameworks_dep kiconthemes)
58 + $(add_frameworks_dep kio)
59 + $(add_frameworks_dep kitemviews)
60 + $(add_frameworks_dep kjobwidgets)
61 + $(add_frameworks_dep knotifications)
62 + $(add_frameworks_dep kparts)
63 + $(add_frameworks_dep kservice)
64 + $(add_frameworks_dep ktextwidgets)
65 + $(add_frameworks_dep kwidgetsaddons)
66 + $(add_frameworks_dep kwindowsystem)
67 + $(add_frameworks_dep kxmlgui)
68 + $(add_qt_dep designer)
69 + $(add_qt_dep qtdbus)
70 + $(add_qt_dep qtgui)
71 + $(add_qt_dep qtprintsupport)
72 + $(add_qt_dep qtwidgets)
73 + $(add_qt_dep qtxml)
74 + dev-lang/perl
75 + dev-libs/kdiagram:5
76 + sys-libs/zlib
77 + activities? ( $(add_frameworks_dep kactivities) )
78 + holidays? ( $(add_frameworks_dep kholidays) )
79 + kwallet? (
80 + $(add_frameworks_dep kwallet)
81 + app-crypt/qca:2[qt5(+)]
82 + )
83 + pim? (
84 + <kde-apps/kcalcore-19.04.50:5
85 + $(add_kdeapps_dep kcontacts)
86 + )
87 + X? (
88 + $(add_qt_dep qtx11extras)
89 + x11-libs/libX11
90 + )
91 +"
92 +RDEPEND="${DEPEND}
93 + !app-office/calligra[calligra_features_plan(-)]
94 + !app-office/calligra-l10n:4
95 + $(add_qt_dep qtsvg)
96 +"
97 +
98 +RESTRICT+=" test"
99 +
100 +PATCHES=(
101 + "${FILESDIR}"/${P}-qt-5.11.patch
102 + "${FILESDIR}"/${P}-qca.patch
103 + "${FILESDIR}"/${P}-missing-header.patch
104 + "${FILESDIR}"/${P}-unused-deps.patch
105 +)
106 +
107 +src_configure() {
108 + local mycmakeargs=(
109 + $(cmake-utils_use_find_package activities KF5Activities)
110 + $(cmake-utils_use_find_package holidays KF5Holidays)
111 + $(cmake-utils_use_find_package pim KF5CalendarCore)
112 + $(cmake-utils_use_find_package pim KF5Contacts)
113 + $(cmake-utils_use_find_package kwallet Qca-qt5)
114 + $(cmake-utils_use_find_package kwallet KF5Wallet)
115 + )
116 + # Qt5DBus can't be disabled because of KF5DBusAddons dependency
117 +
118 + kde5_src_configure
119 +}
120
121 diff --git a/app-office/calligraplan/files/calligraplan-3.1.0-unused-deps.patch b/app-office/calligraplan/files/calligraplan-3.1.0-unused-deps.patch
122 new file mode 100644
123 index 00000000000..707b6c8cdd5
124 --- /dev/null
125 +++ b/app-office/calligraplan/files/calligraplan-3.1.0-unused-deps.patch
126 @@ -0,0 +1,57 @@
127 +From 5924e3ad82b5dfc95acf9f6751946d5f086d9ce7 Mon Sep 17 00:00:00 2001
128 +From: Andreas Sturmlechner <andreas.sturmlechner@×××××.com>
129 +Date: Tue, 1 Jan 2019 20:13:57 +0100
130 +Subject: Drop unused dependencies
131 +
132 +Test Plan: Built fine with deps removed.
133 +
134 +Reviewers: #calligra:_3.0, danders
135 +
136 +Reviewed By: #calligra:_3.0, danders
137 +
138 +Subscribers: danders
139 +
140 +Differential Revision: https://phabricator.kde.org/D17903
141 +---
142 + CMakeLists.txt | 14 ++------------
143 + 1 file changed, 2 insertions(+), 12 deletions(-)
144 +
145 +diff --git a/CMakeLists.txt b/CMakeLists.txt
146 +index 3cb4b63..a6a3c79 100644
147 +--- a/CMakeLists.txt
148 ++++ b/CMakeLists.txt
149 +@@ -121,7 +121,6 @@ find_package(KF5 ${REQUIRED_KF5_VERSION} REQUIRED
150 + IconThemes
151 + ItemViews
152 + JobWidgets
153 +- KCMUtils
154 + KIO
155 + Notifications
156 + # NotifyConfig
157 +@@ -169,22 +168,13 @@ find_package(Qt5 ${REQUIRED_QT_VERSION} REQUIRED
158 + COMPONENTS
159 + Core
160 + Gui
161 +- Network
162 + PrintSupport
163 +- Svg
164 + Test
165 + Widgets
166 + Xml
167 + )
168 +- find_package(Qt5 ${REQUIRED_QT_VERSION} QUIET
169 +- COMPONENTS
170 +- DBus
171 +- OpenGL
172 +- # Quick
173 +- # Sql
174 +- # WebKit
175 +- # WebKitWidgets
176 +- )
177 ++ find_package(Qt5DBus ${REQUIRED_QT_VERSION} QUIET)
178 ++
179 + # Qt5Declarative was removed in Qt 5.6.0 so search for it in a separate call
180 + # Including it in a collected find_package(Qt5 ...) call can lead to a fatal not-found error:
181 + # * Qt5 (required version >= 5.3.0)
182 +--
183 +cgit v1.1