summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Beierlein <tomjbe@gentoo.org>2010-10-30 14:25:48 +0000
committerThomas Beierlein <tomjbe@gentoo.org>2010-10-30 14:25:48 +0000
commit9e16796158dccdd4cddc1a66f4faa4f21b3c3f7f (patch)
treedb725a73c57fa27aebca93a532b76b8f83197d20 /sci-electronics
parent0.7.25 version bump. (diff)
downloadgentoo-2-9e16796158dccdd4cddc1a66f4faa4f21b3c3f7f.tar.gz
gentoo-2-9e16796158dccdd4cddc1a66f4faa4f21b3c3f7f.tar.bz2
gentoo-2-9e16796158dccdd4cddc1a66f4faa4f21b3c3f7f.zip
Fix tests wrt bug #342835. Thanks for reporting Diego.
(Portage version: 2.1.9.23/cvs/Linux x86_64)
Diffstat (limited to 'sci-electronics')
-rw-r--r--sci-electronics/pcb/ChangeLog5
-rw-r--r--sci-electronics/pcb/pcb-20100929.ebuild14
2 files changed, 17 insertions, 2 deletions
diff --git a/sci-electronics/pcb/ChangeLog b/sci-electronics/pcb/ChangeLog
index f46e6825fe3b..70618c224982 100644
--- a/sci-electronics/pcb/ChangeLog
+++ b/sci-electronics/pcb/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for sci-electronics/pcb
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-electronics/pcb/ChangeLog,v 1.56 2010/10/23 06:57:09 tomjbe Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/pcb/ChangeLog,v 1.57 2010/10/30 14:25:48 tomjbe Exp $
+
+ 30 Oct 2010; Thomas Beierlein <tomjbe@gentoo.org> pcb-20100929.ebuild:
+ Fix tests wrt bug #342835. Thanks for reporting Diego.
*pcb-20100929 (22 Oct 2010)
diff --git a/sci-electronics/pcb/pcb-20100929.ebuild b/sci-electronics/pcb/pcb-20100929.ebuild
index 88f52327727b..6a8993d64f8b 100644
--- a/sci-electronics/pcb/pcb-20100929.ebuild
+++ b/sci-electronics/pcb/pcb-20100929.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-electronics/pcb/pcb-20100929.ebuild,v 1.1 2010/10/22 18:37:25 tomjbe Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/pcb/pcb-20100929.ebuild,v 1.2 2010/10/30 14:25:48 tomjbe Exp $
EAPI="2"
@@ -59,6 +59,18 @@ pkg_setup() {
fi
}
+src_prepare() {
+ if use test; then
+ # adapt the list of tests to run according to USE flag settings
+ if ! use png; then
+ sed -i '/^hid_png/d' tests/tests.list || die
+ fi
+ if ! use gcode; then
+ sed -i '/^hid_gcode/d' tests/tests.list || die
+ fi
+ fi
+}
+
src_configure() {
local myconf
if use gtk ; then