From 7b2465c62d651e217fb0dfe12ef2ba2f6491e853 Mon Sep 17 00:00:00 2001 From: Steve Dibb Date: Sun, 31 Dec 2006 17:49:21 +0000 Subject: Check for sdl-image + png use flag, bug 159464 (Portage version: 2.1.1-r2) --- media-tv/freevo/freevo-1.5.4-r2.ebuild | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'media-tv/freevo/freevo-1.5.4-r2.ebuild') diff --git a/media-tv/freevo/freevo-1.5.4-r2.ebuild b/media-tv/freevo/freevo-1.5.4-r2.ebuild index d40df7c28675..9f71f64eb183 100644 --- a/media-tv/freevo/freevo-1.5.4-r2.ebuild +++ b/media-tv/freevo/freevo-1.5.4-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-tv/freevo/freevo-1.5.4-r2.ebuild,v 1.1 2006/10/24 18:38:21 mattepiu Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-tv/freevo/freevo-1.5.4-r2.ebuild,v 1.2 2006/12/31 17:49:21 beandog Exp $ inherit distutils @@ -29,6 +29,14 @@ DEPEND=">=dev-python/pygame-1.5.6 matrox? ( >=media-video/matroxset-0.3 ) lirc? ( app-misc/lirc >=dev-python/pylirc-0.0.3 )" +pkg_setup() { + if ! built_with_use media-libs/sdl-image png; then + eerror "media-libs/sdl-image must be emerged with the 'png' use flag" + eerror "Please fix and re-emerge freevo." + die "fix use flags" + fi +} + src_unpack() { unpack ${A} cp "${FILESDIR}/freevo.rc6" "${WORKDIR}/" -- cgit v1.2.3-65-gdbad