# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-plugins/gkrellmpc/gkrellmpc-0.1_beta9-r1.ebuild,v 1.4 2009/07/16 19:48:07 ssuominen Exp $ EAPI=2 inherit eutils gkrellm-plugin toolchain-funcs DESCRIPTION="A gkrellm plugin to control the MPD (Music Player Daemon)" HOMEPAGE="http://mpd.wikicities.com/wiki/Client:GKrellMPC" SRC_URI="http://www.topfx.com/dist/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="threads" RDEPEND=">=app-admin/gkrellm-2 net-misc/curl" DEPEND="${RDEPEND}" src_prepare() { use threads && epatch "${FILESDIR}"/${P}-mt.patch } src_compile() { tc-export CC emake || die "emake failed" } pkg_postinst() { if use threads; then elog "If you can't connect MPD, please unset USE threads." elog "See, http://bugs.gentoo.org/276970 for information." fi }