summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2004-11-06 08:50:28 +0000
committerMamoru Komachi <usata@gentoo.org>2004-11-06 08:50:28 +0000
commit39be92f17a1263744a146ef9ba81fe0e4049f475 (patch)
treec1513f756b5ea61a06a86dddb760738574d145d5 /media-libs/libungif/libungif-4.1.0.1b.ebuild
parentdigest fix (diff)
downloadhistorical-39be92f17a1263744a146ef9ba81fe0e4049f475.tar.gz
historical-39be92f17a1263744a146ef9ba81fe0e4049f475.tar.bz2
historical-39be92f17a1263744a146ef9ba81fe0e4049f475.zip
Disabled make check if xv is not installed. See bug #70135.
Diffstat (limited to 'media-libs/libungif/libungif-4.1.0.1b.ebuild')
-rw-r--r--media-libs/libungif/libungif-4.1.0.1b.ebuild21
1 files changed, 20 insertions, 1 deletions
diff --git a/media-libs/libungif/libungif-4.1.0.1b.ebuild b/media-libs/libungif/libungif-4.1.0.1b.ebuild
index e83fe0714e68..624f4a763b3f 100644
--- a/media-libs/libungif/libungif-4.1.0.1b.ebuild
+++ b/media-libs/libungif/libungif-4.1.0.1b.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libungif/libungif-4.1.0.1b.ebuild,v 1.15 2004/10/02 22:24:21 lv Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libungif/libungif-4.1.0.1b.ebuild,v 1.16 2004/11/06 08:50:27 usata Exp $
inherit eutils libtool
@@ -60,3 +60,22 @@ pkg_postinst() {
einfo "this and giflib"
fi
}
+
+src_test() {
+ if has_version 'media-gfx/xv' ; then
+ if [ -z "$DISPLAY" ] || ! (/usr/X11R6/bin/xhost &>/dev/null) ; then
+ ewarn
+ ewarn "You are not authorised to conntect to X server to make check."
+ ewarn "Disabling make check."
+ ewarn
+ epause; ebeep; epause
+ else
+ make check || die "make check failed"
+ fi
+ else
+ ewarn
+ ewarn "You need media-gfx/xv to run src_test for this package."
+ ewarn
+ epause; ebeep; epause
+ fi
+}