summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Lohrke <carlo@gentoo.org>2007-04-19 10:38:00 +0000
committerCarsten Lohrke <carlo@gentoo.org>2007-04-19 10:38:00 +0000
commit71ddc1950c7251bfe0c2b9e224480df0a8928470 (patch)
treede3d06a229024e9f330dc5640da499dbd44cf96c /app-office/koffice
parentCare for some tests. (diff)
downloadgentoo-2-71ddc1950c7251bfe0c2b9e224480df0a8928470.tar.gz
gentoo-2-71ddc1950c7251bfe0c2b9e224480df0a8928470.tar.bz2
gentoo-2-71ddc1950c7251bfe0c2b9e224480df0a8928470.zip
Care for some tests.
(Portage version: 2.1.2.4)
Diffstat (limited to 'app-office/koffice')
-rw-r--r--app-office/koffice/ChangeLog5
-rw-r--r--app-office/koffice/koffice-1.6.2-r1.ebuild8
2 files changed, 11 insertions, 2 deletions
diff --git a/app-office/koffice/ChangeLog b/app-office/koffice/ChangeLog
index 9b682d77ba39..8bb1dccf4a53 100644
--- a/app-office/koffice/ChangeLog
+++ b/app-office/koffice/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for app-office/koffice
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/koffice/ChangeLog,v 1.217 2007/03/18 22:33:00 carlo Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/koffice/ChangeLog,v 1.218 2007/04/19 10:38:00 carlo Exp $
+
+ 19 Apr 2007; Carsten Lohrke <carlo@gentoo.org> koffice-1.6.2-r1.ebuild:
+ Care for some tests.
*koffice-1.6.2-r1 (18 Mar 2007)
diff --git a/app-office/koffice/koffice-1.6.2-r1.ebuild b/app-office/koffice/koffice-1.6.2-r1.ebuild
index 09bfed66603f..b954d6a3c93d 100644
--- a/app-office/koffice/koffice-1.6.2-r1.ebuild
+++ b/app-office/koffice/koffice-1.6.2-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/koffice/koffice-1.6.2-r1.ebuild,v 1.1 2007/03/18 22:33:00 carlo Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/koffice/koffice-1.6.2-r1.ebuild,v 1.2 2007/04/19 10:38:00 carlo Exp $
inherit kde
@@ -76,6 +76,12 @@ src_unpack() {
`ls ${S}/krita/colorspaces/*/Makefile.am`
sed -i -e "s:toolbar tests:toolbar:" ${S}/kplato/Makefile.am
+ if ! [[ $(xhost >> /dev/null 2>/dev/null) ]] ; then
+ einfo "User ${USER} has no X access, disabling some tests."
+ sed -e "s:SUBDIRS = . tests:SUBDIRS = .:" -i lib/store/Makefile.am || die "sed failed"
+ sed -e "s:SUBDIRS = kohyphen . tests:SUBDIRS = kohyphen .:" -i lib/kotext/Makefile.am || die "sed failed"
+ fi
+
# Labplot needs the header file
sed -i -e "s:utils.h:utils.h parser/parser.h:" ${S}/kexi/kexidb/Makefile.am || die "sed failed"
}