summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrej Kacian <ticho@gentoo.org>2006-12-04 00:49:38 +0000
committerAndrej Kacian <ticho@gentoo.org>2006-12-04 00:49:38 +0000
commitd8a601391a21b351d5cb15f76f758e25d6ac7548 (patch)
tree4958b50bb2a7adde25cdce290eced755bbe56f36 /media-sound/pympd/pympd-0.07.ebuild
parentstable x86, bug #151612 (diff)
downloadgentoo-2-d8a601391a21b351d5cb15f76f758e25d6ac7548.tar.gz
gentoo-2-d8a601391a21b351d5cb15f76f758e25d6ac7548.tar.bz2
gentoo-2-d8a601391a21b351d5cb15f76f758e25d6ac7548.zip
Warn user if GTK+ was built without jpeg USE flag. Warning suggested by Avuton Olrich <avuton at gmail.com>.
(Portage version: 2.1.2_rc2-r2)
Diffstat (limited to 'media-sound/pympd/pympd-0.07.ebuild')
-rw-r--r--media-sound/pympd/pympd-0.07.ebuild12
1 files changed, 11 insertions, 1 deletions
diff --git a/media-sound/pympd/pympd-0.07.ebuild b/media-sound/pympd/pympd-0.07.ebuild
index 2f3da18f2259..0cb422899d64 100644
--- a/media-sound/pympd/pympd-0.07.ebuild
+++ b/media-sound/pympd/pympd-0.07.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-sound/pympd/pympd-0.07.ebuild,v 1.2 2006/09/09 18:55:40 nixnut Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/pympd/pympd-0.07.ebuild,v 1.3 2006/12/04 00:49:38 ticho Exp $
inherit toolchain-funcs python
@@ -16,6 +16,16 @@ IUSE=""
RDEPEND=">=virtual/python-2.4
>=dev-python/pygtk-2.6"
+pkg_setup() {
+ if ! built_with_use '=gtk+-2*' jpeg; then
+ echo
+ ewarn "If you want album cover art displayed in pympd,"
+ ewarn "you must build gtk+-2.x with \"jpeg\" USE flag."
+ echo
+ ebeep 3
+ fi
+}
+
src_compile() {
# Honor CFLAGS in make.conf
export BUILDFLAGS="${CFLAGS}"