summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2008-07-03 21:47:46 +0000
committerAlexis Ballier <aballier@gentoo.org>2008-07-03 21:47:46 +0000
commit6c2f154ea4f0cfdd03f74948719fd3a92904eeb4 (patch)
tree8089b1a743d12354966c637d5313f9b2ca00e177 /media-libs/flac
parentbump to 2.22.3. Translation updates. (diff)
downloadgentoo-2-6c2f154ea4f0cfdd03f74948719fd3a92904eeb4.tar.gz
gentoo-2-6c2f154ea4f0cfdd03f74948719fd3a92904eeb4.tar.bz2
gentoo-2-6c2f154ea4f0cfdd03f74948719fd3a92904eeb4.zip
Dont needlessly restrict tests, just disable them if running as root as they are expected to fail in that case.
(Portage version: 2.2_rc1/cvs/Linux 2.6.25.7 x86_64)
Diffstat (limited to 'media-libs/flac')
-rw-r--r--media-libs/flac/ChangeLog6
-rw-r--r--media-libs/flac/flac-1.2.1-r3.ebuild12
2 files changed, 14 insertions, 4 deletions
diff --git a/media-libs/flac/ChangeLog b/media-libs/flac/ChangeLog
index 7ecba989ca63..ac26dd99d9eb 100644
--- a/media-libs/flac/ChangeLog
+++ b/media-libs/flac/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-libs/flac
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/flac/ChangeLog,v 1.141 2008/06/16 11:15:01 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/flac/ChangeLog,v 1.142 2008/07/03 21:47:46 aballier Exp $
+
+ 03 Jul 2008; Alexis Ballier <aballier@gentoo.org> flac-1.2.1-r3.ebuild:
+ Dont needlessly restrict tests, just disable them if running as root as
+ they are expected to fail in that case.
16 Jun 2008; Diego Pettenò <flameeyes@gentoo.org>
+files/flac-1.2.1-dontbuild-examples.patch,
diff --git a/media-libs/flac/flac-1.2.1-r3.ebuild b/media-libs/flac/flac-1.2.1-r3.ebuild
index 45312f247a69..5091b7919e07 100644
--- a/media-libs/flac/flac-1.2.1-r3.ebuild
+++ b/media-libs/flac/flac-1.2.1-r3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/flac/flac-1.2.1-r3.ebuild,v 1.3 2008/06/16 11:15:01 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/flac/flac-1.2.1-r3.ebuild,v 1.4 2008/07/03 21:47:46 aballier Exp $
EAPI=1
@@ -21,8 +21,6 @@ DEPEND="${RDEPEND}
!elibc_uclibc? ( sys-devel/gettext )
dev-util/pkgconfig"
-RESTRICT="test"
-
PATCHES=( "${FILESDIR}/${P}-asneeded.patch"
"${FILESDIR}/${P}-cflags.patch"
"${FILESDIR}/${P}-asm.patch"
@@ -51,6 +49,14 @@ src_compile() {
emake || die "emake failed."
}
+src_test() {
+ if [ $UID != 0 ] ; then
+ emake check || die "tests failed"
+ else
+ ewarn "Tests will fail if ran as root, skipping."
+ fi
+}
+
src_install() {
emake DESTDIR="${D}" install || die "emake install failed."