diff options
Diffstat (limited to 'x11-plugins/gkrellmms/gkrellmms-2.1.22-r1.ebuild')
-rw-r--r-- | x11-plugins/gkrellmms/gkrellmms-2.1.22-r1.ebuild | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/x11-plugins/gkrellmms/gkrellmms-2.1.22-r1.ebuild b/x11-plugins/gkrellmms/gkrellmms-2.1.22-r1.ebuild index d69661b87f6d..396f420e5d08 100644 --- a/x11-plugins/gkrellmms/gkrellmms-2.1.22-r1.ebuild +++ b/x11-plugins/gkrellmms/gkrellmms-2.1.22-r1.ebuild @@ -1,27 +1,42 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/x11-plugins/gkrellmms/gkrellmms-2.1.22-r1.ebuild,v 1.5 2007/02/05 15:54:39 gustavoz Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-plugins/gkrellmms/gkrellmms-2.1.22-r1.ebuild,v 1.6 2008/03/01 23:09:57 coldwind Exp $ inherit eutils multilib toolchain-funcs DESCRIPTION="A sweet plugin to control Audacious from GKrellM2" -SRC_URI="http://gkrellm.luon.net/files/${P}.tar.gz" +SRC_URI="http://gkrellm.luon.net/files/${P}.tar.gz + mirror://gentoo/${P}-audacious.patch.gz" HOMEPAGE="http://gkrellm.luon.net/gkrellmms.phtml" -IUSE="" + DEPEND=">=app-admin/gkrellm-2 - media-sound/audacious" + media-sound/audacious + sys-apps/dbus" +# dbus dependency is because of audacious patch + +RDEPEND="${DEPEND}" +IUSE="" SLOT="0" LICENSE="GPL-2" KEYWORDS="~alpha ~amd64 ~ppc sparc x86" S="${WORKDIR}"/${PN} +pkg_setup() { + if ! built_with_use media-sound/audacious dbus ; then + eerror "${PN} needs media-sound/audacious built with" + eerror "USE='dbus'. Please, reinstall it with dbus enabled" + eerror "and try again." + die "media-sound/audacious built without dbus USE flag" + fi +} + src_unpack() { unpack ${A} cd "${S}" - epatch "${FILESDIR}"/${P}-audacious.patch + epatch "${WORKDIR}"/${P}-audacious.patch epatch "${FILESDIR}"/${P}-ldflags.patch } |