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/konsolekalendar/, kde-apps/konsolekalendar/files/
Date: Thu, 18 Feb 2016 14:44:50
Message-Id: 1455805436.b5013f59dcc9286e1ef61a12a01a571cef9f656e.kensington@gentoo
1 commit: b5013f59dcc9286e1ef61a12a01a571cef9f656e
2 Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
3 AuthorDate: Sun Feb 14 20:35:14 2016 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 18 14:23:56 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=b5013f59
7
8 kde-apps/konsolekalendar: Split out of kdepim
9
10 Package-Manager: portage-2.2.27
11
12 .../konsolekalendar/files/kdepim-console.patch | 46 ++++++++++++++++
13 .../konsolekalendar-15.12.49.9999.ebuild | 63 ++++++++++++++++++++++
14 .../konsolekalendar/konsolekalendar-9999.ebuild | 59 ++++++++++++++++++++
15 3 files changed, 168 insertions(+)
16
17 diff --git a/kde-apps/konsolekalendar/files/kdepim-console.patch b/kde-apps/konsolekalendar/files/kdepim-console.patch
18 new file mode 100644
19 index 0000000..1c67199
20 --- /dev/null
21 +++ b/kde-apps/konsolekalendar/files/kdepim-console.patch
22 @@ -0,0 +1,46 @@
23 +commit d29d2ad26bb15be0c229267e196c398e389358cb
24 +Author: Andreas Sturmlechner <andreas.sturmlechner@×××××.com>
25 +Date: Sun Feb 14 14:57:54 2016 +0100
26 +
27 + [console] Build console applications independently
28 +
29 +diff --git a/CMakeLists.txt b/CMakeLists.txt
30 +index 6fd1994..b137a56 100644
31 +--- a/CMakeLists.txt
32 ++++ b/CMakeLists.txt
33 +@@ -261,7 +261,8 @@ add_subdirectory(blogilo)
34 + add_subdirectory(kontact)
35 +
36 + add_subdirectory(akonadiconsole)
37 +-add_subdirectory(console)
38 ++add_subdirectory(calendarjanitor)
39 ++add_subdirectory(konsolekalendar)
40 +
41 + add_subdirectory(plugins) # Must be after KMail
42 +
43 +diff --git a/calendarjanitor/CMakeLists.txt b/calendarjanitor/CMakeLists.txt
44 +index 36d322a..511a12f 100644
45 +--- a/calendarjanitor/CMakeLists.txt
46 ++++ b/calendarjanitor/CMakeLists.txt
47 +@@ -1,5 +1,8 @@
48 + project(calendarjanitor)
49 +
50 ++add_definitions( -DQT_NO_CAST_FROM_ASCII )
51 ++add_definitions( -DQT_NO_CAST_TO_ASCII )
52 ++
53 + ########### next target ###############
54 +
55 + set(calendarjanitor_SRCS
56 +diff --git a/konsolekalendar/CMakeLists.txt b/konsolekalendar/CMakeLists.txt
57 +index 7b0c6e0..f1b045a 100644
58 +--- a/konsolekalendar/CMakeLists.txt
59 ++++ b/konsolekalendar/CMakeLists.txt
60 +@@ -1,5 +1,8 @@
61 + project(konsolekalendar)
62 +
63 ++add_definitions( -DQT_NO_CAST_FROM_ASCII )
64 ++add_definitions( -DQT_NO_CAST_TO_ASCII )
65 ++
66 + add_subdirectory(pics)
67 +
68 + ########### next target ###############
69
70 diff --git a/kde-apps/konsolekalendar/konsolekalendar-15.12.49.9999.ebuild b/kde-apps/konsolekalendar/konsolekalendar-15.12.49.9999.ebuild
71 new file mode 100644
72 index 0000000..b99622e
73 --- /dev/null
74 +++ b/kde-apps/konsolekalendar/konsolekalendar-15.12.49.9999.ebuild
75 @@ -0,0 +1,63 @@
76 +# Copyright 1999-2016 Gentoo Foundation
77 +# Distributed under the terms of the GNU General Public License v2
78 +# $Id$
79 +
80 +EAPI=6
81 +
82 +KDE_HANDBOOK="true"
83 +KDE_PUNT_BOGUS_DEPS="true"
84 +KMNAME="kdepim"
85 +inherit kde5
86 +
87 +DESCRIPTION="A command line interface to KDE calendars"
88 +HOMEPAGE+=" https://userbase.kde.org/KonsoleKalendar"
89 +KEYWORDS=""
90 +
91 +IUSE=""
92 +
93 +DEPEND="
94 + $(add_frameworks_dep kconfig)
95 + $(add_frameworks_dep kcoreaddons)
96 + $(add_frameworks_dep kdelibs4support)
97 + $(add_frameworks_dep ki18n)
98 + $(add_kdeapps_dep akonadi)
99 + $(add_kdeapps_dep akonadi-calendar)
100 + $(add_kdeapps_dep calendarsupport)
101 + $(add_kdeapps_dep kcalcore)
102 + $(add_kdeapps_dep kcalutils)
103 + dev-libs/libxslt
104 +"
105 +RDEPEND="${DEPEND}
106 + !<kde-apps/kdepim-15.12.2:5
107 +"
108 +
109 +if [[ ${KDE_BUILD_TYPE} = live ]] ; then
110 + S="${WORKDIR}/${P}"
111 +else
112 + S="${WORKDIR}/${KMNAME}-${PV}"
113 +fi
114 +
115 +PATCHES=( "${FILESDIR}/kdepim-console.patch" )
116 +
117 +src_prepare() {
118 + # necessary for 15.12 branch aka split-in-adv-of-upstream
119 + sed -e '/^include.*kleopatra\/ConfigureChecks/ s/^/#DONT/' \
120 + -i CMakeLists.txt || die
121 +
122 + mv console/calendarjanitor calendarjanitor || die "Failed to move calendarjanitor"
123 + mv console/konsolekalendar konsolekalendar || die "Failed to move konsolekalendar"
124 +
125 + kde5_src_prepare
126 +}
127 +
128 +src_configure() {
129 + local mycmakeargs=(
130 + -DKDEPIM_BUILD_WITH_INSTALLED_LIB=TRUE
131 + -DCMAKE_DISABLE_FIND_PACKAGE_KF5GAPI=ON
132 + -DCMAKE_DISABLE_FIND_PACKAGE_KF5Prison=ON
133 + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Designer=ON
134 + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5X11Extras=ON
135 + )
136 +
137 + kde5_src_configure
138 +}
139
140 diff --git a/kde-apps/konsolekalendar/konsolekalendar-9999.ebuild b/kde-apps/konsolekalendar/konsolekalendar-9999.ebuild
141 new file mode 100644
142 index 0000000..c14aa42
143 --- /dev/null
144 +++ b/kde-apps/konsolekalendar/konsolekalendar-9999.ebuild
145 @@ -0,0 +1,59 @@
146 +# Copyright 1999-2016 Gentoo Foundation
147 +# Distributed under the terms of the GNU General Public License v2
148 +# $Id$
149 +
150 +EAPI=6
151 +
152 +KDE_HANDBOOK="true"
153 +KDE_PUNT_BOGUS_DEPS="true"
154 +KMNAME="kdepim"
155 +inherit kde5
156 +
157 +DESCRIPTION="A command line interface to KDE calendars"
158 +HOMEPAGE+=" https://userbase.kde.org/KonsoleKalendar"
159 +KEYWORDS=""
160 +
161 +IUSE=""
162 +
163 +DEPEND="
164 + $(add_frameworks_dep kconfig)
165 + $(add_frameworks_dep kcoreaddons)
166 + $(add_frameworks_dep kdelibs4support)
167 + $(add_frameworks_dep ki18n)
168 + $(add_kdeapps_dep akonadi)
169 + $(add_kdeapps_dep akonadi-calendar)
170 + $(add_kdeapps_dep calendarsupport)
171 + $(add_kdeapps_dep kcalcore)
172 + $(add_kdeapps_dep kcalutils)
173 + dev-libs/libxslt
174 +"
175 +RDEPEND="${DEPEND}
176 + !<kde-apps/kdepim-15.12.2:5
177 +"
178 +
179 +if [[ ${KDE_BUILD_TYPE} = live ]] ; then
180 + S="${WORKDIR}/${P}"
181 +else
182 + S="${WORKDIR}/${KMNAME}-${PV}"
183 +fi
184 +
185 +PATCHES=( "${FILESDIR}/kdepim-console.patch" )
186 +
187 +src_prepare() {
188 + mv console/calendarjanitor calendarjanitor || die "Failed to move calendarjanitor"
189 + mv console/konsolekalendar konsolekalendar || die "Failed to move konsolekalendar"
190 +
191 + kde5_src_prepare
192 +}
193 +
194 +src_configure() {
195 + local mycmakeargs=(
196 + -DKDEPIM_BUILD_WITH_INSTALLED_LIB=TRUE
197 + -DCMAKE_DISABLE_FIND_PACKAGE_KF5GAPI=ON
198 + -DCMAKE_DISABLE_FIND_PACKAGE_KF5Prison=ON
199 + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Designer=ON
200 + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5X11Extras=ON
201 + )
202 +
203 + kde5_src_configure
204 +}