summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2011-05-04 15:17:39 +0000
committerJeroen Roovers <jer@gentoo.org>2011-05-04 15:17:39 +0000
commit69967fe15b98856289fb74549abcefefd7a93213 (patch)
tree16c31bc53479ac023234b7a614d48d5a66b6dbd6 /dev-vcs/cssc
parentVersion bump (diff)
downloadgentoo-2-69967fe15b98856289fb74549abcefefd7a93213.tar.gz
gentoo-2-69967fe15b98856289fb74549abcefefd7a93213.tar.bz2
gentoo-2-69967fe15b98856289fb74549abcefefd7a93213.zip
Run tests only when UID != 0 (bug #363113).
(Portage version: 2.2.0_alpha30/cvs/Linux i686)
Diffstat (limited to 'dev-vcs/cssc')
-rw-r--r--dev-vcs/cssc/ChangeLog5
-rw-r--r--dev-vcs/cssc/cssc-1.3.0.ebuild10
2 files changed, 13 insertions, 2 deletions
diff --git a/dev-vcs/cssc/ChangeLog b/dev-vcs/cssc/ChangeLog
index 3aae398b62bd..4cb903e9e20d 100644
--- a/dev-vcs/cssc/ChangeLog
+++ b/dev-vcs/cssc/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-vcs/cssc
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-vcs/cssc/ChangeLog,v 1.9 2011/04/11 01:31:11 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-vcs/cssc/ChangeLog,v 1.10 2011/05/04 15:17:39 jer Exp $
+
+ 04 May 2011; Jeroen Roovers <jer@gentoo.org> cssc-1.3.0.ebuild:
+ Run tests only when UID != 0 (bug #363113).
11 Apr 2011; Jeroen Roovers <jer@gentoo.org> -cssc-1.0.1.ebuild:
Officially remove the old (bug #312089).
diff --git a/dev-vcs/cssc/cssc-1.3.0.ebuild b/dev-vcs/cssc/cssc-1.3.0.ebuild
index 3eda53fbba52..613ba582b02d 100644
--- a/dev-vcs/cssc/cssc-1.3.0.ebuild
+++ b/dev-vcs/cssc/cssc-1.3.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-vcs/cssc/cssc-1.3.0.ebuild,v 1.2 2011/01/08 18:26:10 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-vcs/cssc/cssc-1.3.0.ebuild,v 1.3 2011/05/04 15:17:39 jer Exp $
EAPI="2"
@@ -27,6 +27,14 @@ src_compile() {
emake all || die "emake failed"
}
+src_test() {
+ if [[ ${UID} = 0 ]]; then
+ einfo "Tests will not be run as root"
+ else
+ emake check || die
+ fi
+}
+
src_install () {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc README NEWS ChangeLog AUTHORS || die "dodoc failed"