| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
KDE_HANDBOOK="optional"
|
| 8 |
KMNAME="kdeadmin"
|
| 9 |
KDE_SCM="svn"
|
| 10 |
VIRTUALX_REQUIRED=test
|
| 11 |
inherit kde4-meta
|
| 12 |
|
| 13 |
DESCRIPTION="KDE system log viewer"
|
| 14 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
| 15 |
IUSE="debug test"
|
| 16 |
|
| 17 |
RESTRICT=test
|
| 18 |
# bug 378101
|
| 19 |
|
| 20 |
src_prepare() {
|
| 21 |
kde4-meta_src_prepare
|
| 22 |
|
| 23 |
if use test; then
|
| 24 |
# beat this stupid test into shape: the test files contain no year, so
|
| 25 |
# comparison succeeds only in 2007 !!!
|
| 26 |
local theyear=$(date +%Y)
|
| 27 |
einfo Setting the current year as ${theyear} in the test files
|
| 28 |
sed -e "s:2007:${theyear}:g" -i ksystemlog/tests/systemAnalyzerTest.cpp
|
| 29 |
|
| 30 |
# one test consistently fails, so comment it out for the moment
|
| 31 |
sed -e "s:systemAnalyzerTest:# dont run systemAnalyzerTest:g" -i ksystemlog/tests/CMakeLists.txt
|
| 32 |
fi
|
| 33 |
}
|