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/kraft/, app-office/kraft/files/
Date: Sun, 19 Nov 2017 19:34:57
Message-Id: 1511120061.9b78384c0f8409c97abdb26e8930965700574d44.asturm@gentoo
1 commit: 9b78384c0f8409c97abdb26e8930965700574d44
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 19 19:27:15 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 19 19:34:21 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b78384c
7
8 app-office/kraft: Add 0.80_pre20171115 kf5-based snapshot
9
10 Bug: https://bugs.gentoo.org/635058
11 Package-Manager: Portage-2.3.14, Repoman-2.3.6
12
13 app-office/kraft/Manifest | 1 +
14 .../kraft/files/kraft-0.80_pre20171115-deps.patch | 62 ++++++++++++++++++++++
15 app-office/kraft/kraft-0.80_pre20171115.ebuild | 48 +++++++++++++++++
16 app-office/kraft/metadata.xml | 5 +-
17 4 files changed, 115 insertions(+), 1 deletion(-)
18
19 diff --git a/app-office/kraft/Manifest b/app-office/kraft/Manifest
20 index 87833442293..854ce2518dc 100644
21 --- a/app-office/kraft/Manifest
22 +++ b/app-office/kraft/Manifest
23 @@ -1 +1,2 @@
24 DIST kraft-0.59.tar.xz 560116 SHA256 e05ff0b78a073bafffa5c0e41fe458461216b66fd57fc9432a1064a7be2b2034 SHA512 53576855e3a4ac054818cc3fcb5d123222c0a5839ba621ea7c1f390f1e3180b5c87b00daa09a57fbea64cbd1dc857c4cb7645c5f539635811ef236c76483dc36 WHIRLPOOL d442c33ecbee4f0b3d8f33b358a5f7fab9f9c99d5e70019ca9d5910a3b717530008b6b09c3573132a27681f9e554f83f1798bc6b5a71d71fd10c81884692dd6e
25 +DIST kraft-0.80_pre20171115.tar.gz 572784 SHA256 b5ded884a9377fe88013aef9a230580e9f6fb9873764abe226736843489c1eae SHA512 7c9fa4b8c17809c36f4f6d94f4d6b900f91083c86b332d7680db1ad721904823b25cab5b8393913220dea9b16937bc90ac403af8f57fc6f963d59af41e1f51c3 WHIRLPOOL 2a62d59153a43bd473ad565baf09775b981047b6d998a2fd6f4e32ae4d57a56bb577b375e2896e67b23b2abef80f453e1cd44dc39b5dbe7c3b74a1236d1eeb87
26
27 diff --git a/app-office/kraft/files/kraft-0.80_pre20171115-deps.patch b/app-office/kraft/files/kraft-0.80_pre20171115-deps.patch
28 new file mode 100644
29 index 00000000000..cebf558fd35
30 --- /dev/null
31 +++ b/app-office/kraft/files/kraft-0.80_pre20171115-deps.patch
32 @@ -0,0 +1,62 @@
33 +From 63248f8004e7e0b05fe1716f6ff432b16b382e8f Mon Sep 17 00:00:00 2001
34 +From: Andreas Sturmlechner <andreas.sturmlechner@×××××.com>
35 +Date: Thu, 16 Nov 2017 22:14:05 +0100
36 +Subject: [PATCH] Sort deps, add implicit, and split PIM from real KF5 libs
37 +
38 +Add descriptions to PIM dependencies.
39 +---
40 + CMakeLists.txt | 33 ++++++++++++++++++++++++++-------
41 + 1 file changed, 26 insertions(+), 7 deletions(-)
42 +
43 +diff --git a/CMakeLists.txt b/CMakeLists.txt
44 +index 739daac..9f95ecf 100644
45 +--- a/CMakeLists.txt
46 ++++ b/CMakeLists.txt
47 +@@ -25,21 +25,40 @@ remove_definitions(-DQT_NO_CAST_FROM_ASCII)
48 +
49 + find_package(Qt5 CONFIG REQUIRED
50 + Core
51 +- Network
52 +- Widgets
53 ++ Gui
54 + Sql
55 ++ Widgets
56 ++ Xml
57 + )
58 +
59 + find_package(KF5 REQUIRED COMPONENTS
60 +- Contacts
61 ++ Config
62 ++ ConfigWidgets
63 ++ CoreAddons
64 + I18n
65 ++ WidgetsAddons
66 + XmlGui
67 +- OPTIONAL_COMPONENTS
68 +- Akonadi
69 +- AkonadiContact
70 + )
71 +
72 +-if(KF5Akonadi_FOUND)
73 ++find_package(KF5Contacts REQUIRED)
74 ++
75 ++find_package(KF5Akonadi)
76 ++set_package_properties(KF5Akonadi PROPERTIES
77 ++ DESCRIPTION "Library for general Access to Akonadi"
78 ++ URL "https://www.kde.org/"
79 ++ PURPOSE "Optionally used for addressbook integration"
80 ++ TYPE OPTIONAL
81 ++)
82 ++
83 ++find_package(KF5AkonadiContact)
84 ++set_package_properties(KF5AkonadiContact PROPERTIES
85 ++ DESCRIPTION "Library for Accessing Contacts stored in Akonadi"
86 ++ URL "https://www.kde.org/"
87 ++ PURPOSE "Optionally used for addressbook integration"
88 ++ TYPE OPTIONAL
89 ++)
90 ++
91 ++if(KF5Akonadi_FOUND AND KF5AkonadiContact_FOUND)
92 + add_definitions(-DHAVE_AKONADI)
93 + endif()
94 +
95
96 diff --git a/app-office/kraft/kraft-0.80_pre20171115.ebuild b/app-office/kraft/kraft-0.80_pre20171115.ebuild
97 new file mode 100644
98 index 00000000000..cc3b1e38dba
99 --- /dev/null
100 +++ b/app-office/kraft/kraft-0.80_pre20171115.ebuild
101 @@ -0,0 +1,48 @@
102 +# Copyright 1999-2017 Gentoo Foundation
103 +# Distributed under the terms of the GNU General Public License v2
104 +
105 +EAPI=6
106 +
107 +COMMIT=6618f5203f80a52e673cfad1a12dcee9154e2831
108 +KDE_HANDBOOK="forceoptional"
109 +inherit kde5 vcs-snapshot
110 +
111 +DESCRIPTION="Software to manage quotes and invoices in small enterprises"
112 +HOMEPAGE="http://www.volle-kraft-voraus.de/"
113 +SRC_URI="https://github.com/dragotin/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
114 +
115 +KEYWORDS="~amd64 ~x86"
116 +IUSE="pim"
117 +
118 +DEPEND="
119 + $(add_frameworks_dep kconfig)
120 + $(add_frameworks_dep kconfigwidgets)
121 + $(add_frameworks_dep kcoreaddons)
122 + $(add_frameworks_dep ki18n)
123 + $(add_frameworks_dep kwidgetsaddons)
124 + $(add_frameworks_dep kxmlgui)
125 + $(add_kdeapps_dep kcontacts)
126 + $(add_qt_dep qtgui)
127 + $(add_qt_dep qtsql)
128 + $(add_qt_dep qtwidgets)
129 + $(add_qt_dep qtxml)
130 + dev-cpp/ctemplate
131 + pim? (
132 + $(add_kdeapps_dep akonadi)
133 + $(add_kdeapps_dep akonadi-contacts)
134 + )
135 +"
136 +RDEPEND="${DEPEND}"
137 +
138 +DOCS=( AUTHORS Changes.txt README Releasenotes.txt TODO )
139 +
140 +PATCHES=( "${FILESDIR}/${P}-deps.patch" )
141 +
142 +src_configure() {
143 + local mycmakeargs=(
144 + $(cmake-utils_use_find_package pim KF5Akonadi)
145 + $(cmake-utils_use_find_package pim KF5AkonadiContact)
146 + )
147 +
148 + kde5_src_configure
149 +}
150
151 diff --git a/app-office/kraft/metadata.xml b/app-office/kraft/metadata.xml
152 index 38bfeaed7bb..5884c2d7963 100644
153 --- a/app-office/kraft/metadata.xml
154 +++ b/app-office/kraft/metadata.xml
155 @@ -6,6 +6,9 @@
156 <name>Gentoo KDE Project</name>
157 </maintainer>
158 <upstream>
159 - <remote-id type="sourceforge">kraft</remote-id>
160 + <remote-id type="github">dragotin/kraft</remote-id>
161 </upstream>
162 + <use>
163 + <flag name="pim">Enable support for KDE PIM resources integration</flag>
164 + </use>
165 </pkgmetadata>