commit:     981b12fae7c0375ce4a9225db8b566e69f7e7f4a
Author:     Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
AuthorDate: Sun Feb 14 20:32:49 2016 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Thu Feb 18 14:23:56 2016 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=981b12fa

kde-apps/calendarjanitor: Split out of kdepim

Package-Manager: portage-2.2.27

 .../calendarjanitor-15.12.49.9999.ebuild           | 62 ++++++++++++++++++++++
 .../calendarjanitor/calendarjanitor-9999.ebuild    | 59 ++++++++++++++++++++
 .../calendarjanitor/files/kdepim-console.patch     | 46 ++++++++++++++++
 3 files changed, 167 insertions(+)

diff --git a/kde-apps/calendarjanitor/calendarjanitor-15.12.49.9999.ebuild 
b/kde-apps/calendarjanitor/calendarjanitor-15.12.49.9999.ebuild
new file mode 100644
index 0000000..bf5397d
--- /dev/null
+++ b/kde-apps/calendarjanitor/calendarjanitor-15.12.49.9999.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+KDE_PUNT_BOGUS_DEPS="true"
+KDE_TEST="false"
+KMNAME="kdepim"
+inherit kde5
+
+DESCRIPTION="A tool to scan calendar data for buggy instances"
+HOMEPAGE="https://www.kde.org/";
+KEYWORDS=""
+
+IUSE=""
+
+DEPEND="
+       $(add_frameworks_dep kcoreaddons)
+       $(add_frameworks_dep kdelibs4support)
+       $(add_frameworks_dep ki18n)
+       $(add_kdeapps_dep akonadi)
+       $(add_kdeapps_dep akonadi-calendar)
+       $(add_kdeapps_dep calendarsupport)
+       $(add_kdeapps_dep kcalcore)
+       $(add_qt_dep qtwidgets)
+       dev-libs/libxslt
+"
+RDEPEND="${DEPEND}
+       !<kde-apps/kdepim-15.12.2:5
+"
+
+if [[ ${KDE_BUILD_TYPE} = live ]] ; then
+       S="${WORKDIR}/${P}"
+else
+       S="${WORKDIR}/${KMNAME}-${PV}"
+fi
+
+PATCHES=( "${FILESDIR}/kdepim-console.patch" )
+
+src_prepare() {
+
+       sed -e '/^include.*kleopatra\/ConfigureChecks/ s/^/#DONT/' \
+               -i CMakeLists.txt || die
+
+       mv console/calendarjanitor calendarjanitor || die "Failed to move 
calendarjanitor"
+       mv console/konsolekalendar konsolekalendar || die "Failed to move 
konsolekalendar"
+
+       kde5_src_prepare
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DKDEPIM_BUILD_WITH_INSTALLED_LIB=TRUE
+               -DCMAKE_DISABLE_FIND_PACKAGE_KF5GAPI=ON
+               -DCMAKE_DISABLE_FIND_PACKAGE_KF5Prison=ON
+               -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Designer=ON
+               -DCMAKE_DISABLE_FIND_PACKAGE_Qt5X11Extras=ON
+       )
+
+       kde5_src_configure
+}

diff --git a/kde-apps/calendarjanitor/calendarjanitor-9999.ebuild 
b/kde-apps/calendarjanitor/calendarjanitor-9999.ebuild
new file mode 100644
index 0000000..70d9ac5
--- /dev/null
+++ b/kde-apps/calendarjanitor/calendarjanitor-9999.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+KDE_PUNT_BOGUS_DEPS="true"
+KDE_TEST="false"
+KMNAME="kdepim"
+inherit kde5
+
+DESCRIPTION="A tool to scan calendar data for buggy instances"
+HOMEPAGE="https://www.kde.org/";
+KEYWORDS=""
+
+IUSE=""
+
+DEPEND="
+       $(add_frameworks_dep kcoreaddons)
+       $(add_frameworks_dep kdelibs4support)
+       $(add_frameworks_dep ki18n)
+       $(add_kdeapps_dep akonadi)
+       $(add_kdeapps_dep akonadi-calendar)
+       $(add_kdeapps_dep calendarsupport)
+       $(add_kdeapps_dep kcalcore)
+       $(add_qt_dep qtwidgets)
+       dev-libs/libxslt
+"
+RDEPEND="${DEPEND}
+       !<kde-apps/kdepim-15.12.2:5
+"
+
+if [[ ${KDE_BUILD_TYPE} = live ]] ; then
+       S="${WORKDIR}/${P}"
+else
+       S="${WORKDIR}/${KMNAME}-${PV}"
+fi
+
+PATCHES=( "${FILESDIR}/kdepim-console.patch" )
+
+src_prepare() {
+
+       mv console/calendarjanitor calendarjanitor || die "Failed to move 
calendarjanitor"
+       mv console/konsolekalendar konsolekalendar || die "Failed to move 
konsolekalendar"
+
+       kde5_src_prepare
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DKDEPIM_BUILD_WITH_INSTALLED_LIB=TRUE
+               -DCMAKE_DISABLE_FIND_PACKAGE_KF5GAPI=ON
+               -DCMAKE_DISABLE_FIND_PACKAGE_KF5Prison=ON
+               -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Designer=ON
+               -DCMAKE_DISABLE_FIND_PACKAGE_Qt5X11Extras=ON
+       )
+
+       kde5_src_configure
+}

diff --git a/kde-apps/calendarjanitor/files/kdepim-console.patch 
b/kde-apps/calendarjanitor/files/kdepim-console.patch
new file mode 100644
index 0000000..1c67199
--- /dev/null
+++ b/kde-apps/calendarjanitor/files/kdepim-console.patch
@@ -0,0 +1,46 @@
+commit d29d2ad26bb15be0c229267e196c398e389358cb
+Author: Andreas Sturmlechner <[email protected]>
+Date:   Sun Feb 14 14:57:54 2016 +0100
+
+    [console] Build console applications independently
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 6fd1994..b137a56 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -261,7 +261,8 @@ add_subdirectory(blogilo)
+ add_subdirectory(kontact)
+ 
+ add_subdirectory(akonadiconsole)
+-add_subdirectory(console)
++add_subdirectory(calendarjanitor)
++add_subdirectory(konsolekalendar)
+ 
+ add_subdirectory(plugins) # Must be after KMail
+ 
+diff --git a/calendarjanitor/CMakeLists.txt b/calendarjanitor/CMakeLists.txt
+index 36d322a..511a12f 100644
+--- a/calendarjanitor/CMakeLists.txt
++++ b/calendarjanitor/CMakeLists.txt
+@@ -1,5 +1,8 @@
+ project(calendarjanitor)
+ 
++add_definitions( -DQT_NO_CAST_FROM_ASCII )
++add_definitions( -DQT_NO_CAST_TO_ASCII )
++
+ ########### next target ###############
+ 
+ set(calendarjanitor_SRCS
+diff --git a/konsolekalendar/CMakeLists.txt b/konsolekalendar/CMakeLists.txt
+index 7b0c6e0..f1b045a 100644
+--- a/konsolekalendar/CMakeLists.txt
++++ b/konsolekalendar/CMakeLists.txt
+@@ -1,5 +1,8 @@
+ project(konsolekalendar)
+ 
++add_definitions( -DQT_NO_CAST_FROM_ASCII )
++add_definitions( -DQT_NO_CAST_TO_ASCII )
++
+ add_subdirectory(pics) 
+ 
+ ########### next target ###############

Reply via email to