From 0c100b7dd2b30e75b799d806df4ef899fd98e1ea Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 16 Apr 2022 13:07:24 +0100 Subject: gentoo resync : 16.04.2022 --- .../gkrellmpc/gkrellmpc-0.1_beta10-r1.ebuild | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 media-plugins/gkrellmpc/gkrellmpc-0.1_beta10-r1.ebuild (limited to 'media-plugins/gkrellmpc/gkrellmpc-0.1_beta10-r1.ebuild') diff --git a/media-plugins/gkrellmpc/gkrellmpc-0.1_beta10-r1.ebuild b/media-plugins/gkrellmpc/gkrellmpc-0.1_beta10-r1.ebuild new file mode 100644 index 000000000000..22adb571df55 --- /dev/null +++ b/media-plugins/gkrellmpc/gkrellmpc-0.1_beta10-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit 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" + +PATCHES=( "${FILESDIR}/${PF}"-make-test.patch ) + +src_prepare() { + if use threads; then + PATCHES+=( "${FILESDIR}/${P}"-mt.patch ) + fi + default +} + +src_configure() { + tc-export CC +} + +pkg_postinst() { + if use threads; then + elog "If you can't connect MPD, please unset USE threads." + elog "See https://bugs.gentoo.org/276970 for information." + fi +} -- cgit v1.2.3