diff options
Diffstat (limited to 'media-plugins/gkrellmpc/gkrellmpc-0.1_beta10.ebuild')
-rw-r--r-- | media-plugins/gkrellmpc/gkrellmpc-0.1_beta10.ebuild | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/media-plugins/gkrellmpc/gkrellmpc-0.1_beta10.ebuild b/media-plugins/gkrellmpc/gkrellmpc-0.1_beta10.ebuild new file mode 100644 index 000000000000..eec07ca39b31 --- /dev/null +++ b/media-plugins/gkrellmpc/gkrellmpc-0.1_beta10.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 +inherit eutils gkrellm-plugin toolchain-funcs + +DESCRIPTION="A gkrellm plugin to control the MPD (Music Player Daemon)" +HOMEPAGE="http://mpd.wikia.com/wiki/Client:GKrellMPC" +SRC_URI="http://mina.naguib.ca/dist/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="threads" + +RDEPEND=">=app-admin/gkrellm-2[X] + net-misc/curl" +DEPEND="${RDEPEND}" + +# Will open gkrellm in X11 display +RESTRICT="test" + +src_prepare() { + sed -i -e 's:gkrellm2 -p:gkrellm -p:' Makefile || die + use threads && epatch "${FILESDIR}"/${P}-mt.patch +} + +src_compile() { + tc-export CC + emake || die +} + +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 +} |