x11-plugins/gkrellmwireless: Fix dependency on gkrellm[X]
authorPacho Ramos <pacho@gentoo.org>
Wed, 26 Jul 2017 10:59:38 +0000 (12:59 +0200)
committerPacho Ramos <pacho@gentoo.org>
Wed, 26 Jul 2017 11:34:30 +0000 (13:34 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.2
RepoMan-Options: --force

x11-plugins/gkrellmwireless/gkrellmwireless-2.0.3-r2.ebuild [new file with mode: 0644]

diff --git a/x11-plugins/gkrellmwireless/gkrellmwireless-2.0.3-r2.ebuild b/x11-plugins/gkrellmwireless/gkrellmwireless-2.0.3-r2.ebuild
new file mode 100644 (file)
index 0000000..85fd1b1
--- /dev/null
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit gkrellm-plugin toolchain-funcs
+
+S="${WORKDIR}/${PN}"
+DESCRIPTION="A plugin for GKrellM that monitors your wireless network card"
+SRC_URI="http://gkrellm.luon.net/files/${P}.tar.gz"
+HOMEPAGE="http://gkrellm.luon.net/gkrellmwireless.php"
+
+SLOT="2"
+LICENSE="GPL-2"
+KEYWORDS="amd64 ~ppc ~sparc x86"
+IUSE=""
+
+RDEPEND="app-admin/gkrellm[X]"
+
+PLUGIN_SO=wireless.so
+
+src_prepare() {
+       default
+       sed -i \
+               -e '/^CC =/s:gcc $(CFLAGS) $(FLAGS):'"$(tc-getCC)"' $(FLAGS) $(CFLAGS):' \
+               -e '/-o wireless.so/s: : $(LDFLAGS) :' \
+               Makefile || die
+}