commit:     a8515c8cf39b0f65253ce728384bf6afc0592f44
Author:     Johannes Huber <johu <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 20 20:41:25 2015 +0000
Commit:     Johannes Huber <johu <AT> gentoo <DOT> org>
CommitDate: Mon Jul 20 20:41:25 2015 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=a8515c8c

[kde-apps/ksystemlog] Add KF5 version

Package-Manager: portage-2.2.20

 kde-apps/ksystemlog/ksystemlog-5.9999.ebuild | 55 ++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)

diff --git a/kde-apps/ksystemlog/ksystemlog-5.9999.ebuild 
b/kde-apps/ksystemlog/ksystemlog-5.9999.ebuild
new file mode 100644
index 0000000..a8f5a1c
--- /dev/null
+++ b/kde-apps/ksystemlog/ksystemlog-5.9999.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+KDE_HANDBOOK=true
+KDE_TEST=true
+VIRTUALX_REQUIRED=test
+EGIT_BRANCH="frameworks"
+inherit kde5
+
+DESCRIPTION="System log viewer by KDE"
+HOMEPAGE="http://www.kde.org/applications/system/ksystemlog/";
+KEYWORDS=""
+IUSE=""
+
+# bug 378101
+RESTRICT=test
+
+DEPEND="
+       $(add_frameworks_dep karchive)
+       $(add_frameworks_dep kcompletion)
+       $(add_frameworks_dep kconfig)
+       $(add_frameworks_dep kconfigwidgets)
+       $(add_frameworks_dep kcoreaddons)
+       $(add_frameworks_dep ki18n)
+       $(add_frameworks_dep kiconthemes)
+       $(add_frameworks_dep kio)
+       $(add_frameworks_dep kitemviews)
+       $(add_frameworks_dep kservice)
+       $(add_frameworks_dep ktextwidgets)
+       $(add_frameworks_dep kwidgetsaddons)
+       $(add_frameworks_dep kxmlgui)
+       dev-qt/qtgui:5
+       dev-qt/qtprintsupport:5
+       dev-qt/qtwidgets:5
+"
+
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+       kde5_src_prepare
+
+       if use test; then
+               # beat this stupid test into shape: the test files contain no 
year, so
+               # comparison succeeds only in 2007 !!!
+               local theyear=$(date +%Y)
+               einfo Setting the current year as ${theyear} in the test files
+               sed -e "s:2007:${theyear}:g" -i tests/systemAnalyzerTest.cpp
+
+               # one test consistently fails, so comment it out for the moment
+               sed -e "s:systemAnalyzerTest:# dont run systemAnalyzerTest:g" 
-i ksystemlog/tests/CMakeLists.txt
+       fi
+}

Reply via email to