x11-plugins/wmload: EAPI7, improve ebuild
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>
Sun, 22 Jul 2018 15:43:03 +0000 (17:43 +0200)
committerBernard Cafarelli <voyageur@gentoo.org>
Thu, 2 Aug 2018 20:12:53 +0000 (22:12 +0200)
x11-plugins/wmload/files/wmload-0.9.6-solaris.patch
x11-plugins/wmload/wmload-0.9.7-r1.ebuild [new file with mode: 0644]

index 210b28419fa885dc3690a87d06515b303be28d57..ec5e4c84abb273740cd273ed11729b2753459945 100644 (file)
@@ -1,7 +1,7 @@
 * original: http://www.rampant.org/~dp/software/wmload.solaris.patch
 
---- wmload.c
-+++ wmload.c
+--- a/wmload.c
++++ b/wmload.c
 @@ -6,6 +6,11 @@
  #include <math.h>
  #include <fcntl.h>
diff --git a/x11-plugins/wmload/wmload-0.9.7-r1.ebuild b/x11-plugins/wmload/wmload-0.9.7-r1.ebuild
new file mode 100644 (file)
index 0000000..167a3e4
--- /dev/null
@@ -0,0 +1,33 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit desktop toolchain-funcs
+
+DESCRIPTION="yet another dock application showing a system load gauge"
+HOMEPAGE="https://www.dockapps.net/wmload"
+SRC_URI="https://dev.gentoo.org/~voyageur/distfiles/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~amd64-linux ~ppc ~sparc ~sparc-solaris ~x86 ~x86-linux ~x64-solaris ~x86-solaris"
+
+RDEPEND="x11-libs/libX11
+       x11-libs/libXext
+       x11-libs/libXpm"
+DEPEND="${RDEPEND}
+       x11-base/xorg-proto"
+
+PATCHES=( "${FILESDIR}"/${PN}-0.9.6-solaris.patch )
+
+src_compile() {
+       emake CC="$(tc-getCC)"
+}
+
+src_install() {
+       emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install
+
+       dodoc README
+       domenu "${FILESDIR}"/${PN}.desktop
+}