1 |
commit: 8cdbb2a849e7dab47ca3af5f7737a521e5c1e65e |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 5 13:05:20 2022 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 5 15:10:50 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cdbb2a8 |
7 |
|
8 |
app-office/kmymoney: add 5.1.3 |
9 |
|
10 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
11 |
|
12 |
app-office/kmymoney/Manifest | 1 + |
13 |
.../kmymoney/files/kmymoney-5.1.3-cmake.patch | 28 +++++ |
14 |
app-office/kmymoney/kmymoney-5.1.3.ebuild | 135 +++++++++++++++++++++ |
15 |
3 files changed, 164 insertions(+) |
16 |
|
17 |
diff --git a/app-office/kmymoney/Manifest b/app-office/kmymoney/Manifest |
18 |
index 116a9b40e8c7..d589ec3043b6 100644 |
19 |
--- a/app-office/kmymoney/Manifest |
20 |
+++ b/app-office/kmymoney/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST kmymoney-5.1.2.tar.xz 12640912 BLAKE2B 72abd190914eef258e6745ca9835de14bdb2060b0d025f8bdb1bc0e12b773fc891b143fe36adb8b7afcc86498601f6e1a7f9485f9a11c875f4c75bfe01d93738 SHA512 38c60998be4e3ffb49091eb2085b293c2d5265f6582e980d2dc60a66a00862b6afd3e2152c752a9fb14a7bf8b6255a0c39b69b65e2f5c976f23d965e3a1cdf46 |
23 |
+DIST kmymoney-5.1.3.tar.xz 12647372 BLAKE2B 09580873985bb41c39c649bdb863ee25f4356dfea18b64d45f3b6bd528fd57fc2b5fd32a6541c10ed519da0e905bf6853589e7cab0f4c3b4f2945cd7a3181dba SHA512 2003f25b7df77691e5d3d0f450e0139b1e68336f59a4fc78af751c5b94ecfaf17a39ee1f58ed0c2cda642195c5277fbb63c87e857ebe9a6495dc7f88b9a38794 |
24 |
|
25 |
diff --git a/app-office/kmymoney/files/kmymoney-5.1.3-cmake.patch b/app-office/kmymoney/files/kmymoney-5.1.3-cmake.patch |
26 |
new file mode 100644 |
27 |
index 000000000000..da629c10f8a7 |
28 |
--- /dev/null |
29 |
+++ b/app-office/kmymoney/files/kmymoney-5.1.3-cmake.patch |
30 |
@@ -0,0 +1,28 @@ |
31 |
+From 32cfeb7380dbd886a79a6676544e11f3668f3f50 Mon Sep 17 00:00:00 2001 |
32 |
+From: Andreas Sturmlechner <asturm@g.o> |
33 |
+Date: Fri, 5 Aug 2022 10:33:50 +0200 |
34 |
+Subject: [PATCH] Revert "Fix missing components" |
35 |
+ |
36 |
+See also: https://invent.kde.org/office/kmymoney/-/issues/63 |
37 |
+ |
38 |
+This reverts commit 151357b7293d27a966dc9e36321847b31fb0f69d. |
39 |
+--- |
40 |
+ CMakeLists.txt | 2 +- |
41 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
42 |
+ |
43 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
44 |
+index 9b49d5c2c..b30181da3 100644 |
45 |
+--- a/CMakeLists.txt |
46 |
++++ b/CMakeLists.txt |
47 |
+@@ -116,7 +116,7 @@ endif() |
48 |
+ find_package(Qt5 5.6 REQUIRED COMPONENTS |
49 |
+ Core DBus Widgets Svg Xml Test PrintSupport) |
50 |
+ find_package(Qt5 5.6 OPTIONAL_COMPONENTS |
51 |
+- Sql Concurrent QuickWidgets WebEngineWidgets WebKitWidgets) |
52 |
++ Sql Concurrent QuickWidgets) |
53 |
+ |
54 |
+ find_package(KF5 5.2 REQUIRED COMPONENTS |
55 |
+ ${REQ_KF5_COMPONENTS}) |
56 |
+-- |
57 |
+2.35.1 |
58 |
+ |
59 |
|
60 |
diff --git a/app-office/kmymoney/kmymoney-5.1.3.ebuild b/app-office/kmymoney/kmymoney-5.1.3.ebuild |
61 |
new file mode 100644 |
62 |
index 000000000000..657b7f2731d0 |
63 |
--- /dev/null |
64 |
+++ b/app-office/kmymoney/kmymoney-5.1.3.ebuild |
65 |
@@ -0,0 +1,135 @@ |
66 |
+# Copyright 1999-2022 Gentoo Authors |
67 |
+# Distributed under the terms of the GNU General Public License v2 |
68 |
+ |
69 |
+EAPI=8 |
70 |
+ |
71 |
+EGIT_BRANCH="5.1" |
72 |
+ECM_HANDBOOK="optional" |
73 |
+ECM_TEST="forceoptional" |
74 |
+KFMIN=5.82.0 |
75 |
+QTMIN=5.15.5 |
76 |
+VIRTUALX_REQUIRED="test" |
77 |
+VIRTUALDBUS_TEST="true" |
78 |
+inherit ecm kde.org optfeature |
79 |
+ |
80 |
+DESCRIPTION="Personal finance manager based on KDE Frameworks" |
81 |
+HOMEPAGE="https://kmymoney.org/" |
82 |
+ |
83 |
+if [[ ${KDE_BUILD_TYPE} = release ]]; then |
84 |
+ SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz" |
85 |
+ KEYWORDS="~amd64 ~x86" |
86 |
+fi |
87 |
+ |
88 |
+LICENSE="GPL-2" |
89 |
+SLOT="5" |
90 |
+IUSE="activities addressbook calendar hbci holidays" |
91 |
+[[ ${KDE_BUILD_TYPE} = live ]] && IUSE+=" experimental" |
92 |
+ |
93 |
+RDEPEND=" |
94 |
+ >=app-crypt/gpgme-1.7.1-r1:=[cxx] |
95 |
+ >=app-office/libalkimia-7.0.0:= |
96 |
+ dev-db/sqlcipher |
97 |
+ dev-libs/gmp:0=[cxx(+)] |
98 |
+ dev-libs/kdiagram:5 |
99 |
+ dev-libs/libgpg-error |
100 |
+ dev-libs/libofx:= |
101 |
+ >=dev-qt/qtdbus-${QTMIN}:5 |
102 |
+ >=dev-qt/qtgui-${QTMIN}:5 |
103 |
+ >=dev-qt/qtnetwork-${QTMIN}:5 |
104 |
+ >=dev-qt/qtprintsupport-${QTMIN}:5 |
105 |
+ >=dev-qt/qtsql-${QTMIN}:5 |
106 |
+ >=dev-qt/qtsvg-${QTMIN}:5 |
107 |
+ >=dev-qt/qtwebengine-${QTMIN}:5[widgets] |
108 |
+ >=dev-qt/qtwidgets-${QTMIN}:5 |
109 |
+ >=dev-qt/qtxml-${QTMIN}:5 |
110 |
+ >=kde-frameworks/karchive-${KFMIN}:5 |
111 |
+ >=kde-frameworks/kcmutils-${KFMIN}:5 |
112 |
+ >=kde-frameworks/kcodecs-${KFMIN}:5 |
113 |
+ >=kde-frameworks/kcompletion-${KFMIN}:5 |
114 |
+ >=kde-frameworks/kconfig-${KFMIN}:5 |
115 |
+ >=kde-frameworks/kconfigwidgets-${KFMIN}:5 |
116 |
+ >=kde-frameworks/kcoreaddons-${KFMIN}:5 |
117 |
+ >=kde-frameworks/ki18n-${KFMIN}:5 |
118 |
+ >=kde-frameworks/kiconthemes-${KFMIN}:5 |
119 |
+ >=kde-frameworks/kio-${KFMIN}:5 |
120 |
+ >=kde-frameworks/kitemmodels-${KFMIN}:5 |
121 |
+ >=kde-frameworks/kitemviews-${KFMIN}:5 |
122 |
+ >=kde-frameworks/kjobwidgets-${KFMIN}:5 |
123 |
+ >=kde-frameworks/knotifications-${KFMIN}:5 |
124 |
+ >=kde-frameworks/kservice-${KFMIN}:5 |
125 |
+ >=kde-frameworks/ktextwidgets-${KFMIN}:5 |
126 |
+ >=kde-frameworks/kwallet-${KFMIN}:5 |
127 |
+ >=kde-frameworks/kwidgetsaddons-${KFMIN}:5 |
128 |
+ >=kde-frameworks/kxmlgui-${KFMIN}:5 |
129 |
+ >=kde-frameworks/sonnet-${KFMIN}:5 |
130 |
+ activities? ( >=kde-frameworks/kactivities-${KFMIN}:5 ) |
131 |
+ addressbook? ( |
132 |
+ kde-apps/akonadi:5 |
133 |
+ kde-apps/kidentitymanagement:5 |
134 |
+ >=kde-frameworks/kcontacts-${KFMIN}:5 |
135 |
+ ) |
136 |
+ calendar? ( dev-libs/libical:= ) |
137 |
+ hbci? ( |
138 |
+ >=dev-qt/qtdeclarative-${QTMIN}:5 |
139 |
+ >=net-libs/aqbanking-6.0.1 |
140 |
+ >=sys-libs/gwenhywfar-5.1.2:=[qt5] |
141 |
+ ) |
142 |
+ holidays? ( >=kde-frameworks/kholidays-${KFMIN}:5 ) |
143 |
+" |
144 |
+DEPEND="${RDEPEND} |
145 |
+ dev-libs/boost |
146 |
+" |
147 |
+BDEPEND="virtual/pkgconfig" |
148 |
+ |
149 |
+PATCHES=( "${FILESDIR}/${P}-cmake.patch" ) |
150 |
+ |
151 |
+pkg_setup() { |
152 |
+ ecm_pkg_setup |
153 |
+ |
154 |
+ if [[ ${KDE_BUILD_TYPE} = live ]] && use experimental; then |
155 |
+ ewarn "USE experimental set: Building unfinished features." |
156 |
+ ewarn "This *will* chew up your data. You have been warned." |
157 |
+ fi |
158 |
+} |
159 |
+ |
160 |
+src_configure() { |
161 |
+ local mycmakeargs=( |
162 |
+ -DENABLE_OFXIMPORTER=ON |
163 |
+ -DENABLE_WEBENGINE=ON |
164 |
+ -DENABLE_WOOB=OFF # ported to Py3; not yet re-added in Gentoo |
165 |
+ -DUSE_QT_DESIGNER=OFF |
166 |
+ $(cmake_use_find_package activities KF5Activities) |
167 |
+ $(cmake_use_find_package addressbook KF5Akonadi) |
168 |
+ $(cmake_use_find_package addressbook KF5Contacts) |
169 |
+ $(cmake_use_find_package addressbook KF5IdentityManagement) |
170 |
+ -DENABLE_LIBICAL=$(usex calendar) |
171 |
+ -DENABLE_KBANKING=$(usex hbci) |
172 |
+ $(cmake_use_find_package holidays KF5Holidays) |
173 |
+ ) |
174 |
+ [[ ${KDE_BUILD_TYPE} = live ]] && |
175 |
+ mycmakeargs+=( -DENABLE_UNFINISHEDFEATURES=$(usex experimental) ) |
176 |
+ |
177 |
+ ecm_src_configure |
178 |
+} |
179 |
+ |
180 |
+src_test() { |
181 |
+ # bug 652636; bug 673052: needs kmymoney installed to succeed |
182 |
+ local myctestargs=( |
183 |
+ -E "(reports-chart-test|qsqlcipher-test)" |
184 |
+ ) |
185 |
+ |
186 |
+ ecm_src_test |
187 |
+} |
188 |
+ |
189 |
+pkg_postinst() { |
190 |
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then |
191 |
+ optfeature "more options for online stock quote retrieval" dev-perl/Finance-Quote |
192 |
+ fi |
193 |
+ if has_version "app-office/kmymoney[quotes]"; then |
194 |
+ elog "Please note: IUSE=quotes flag is gone in ${PN}-5.1.1. ${PN} still" |
195 |
+ elog "does online stock quote retrieval without it, but dev-perl/Finance-Quote" |
196 |
+ elog "may provide additional sources. To keep the functionality, run:" |
197 |
+ elog " emerge --noreplace dev-perl/Finance-Quote" |
198 |
+ fi |
199 |
+ ecm_pkg_postinst |
200 |
+} |