diff -ur wmmisc-1.1.orig/src/general.mk wmmisc-1.1/src/general.mk
---- wmmisc-1.1.orig/src/general.mk 2006-01-07 19:50:31.000000000 +0200
-+++ wmmisc-1.1/src/general.mk 2008-01-16 20:44:59.000000000 +0200
+--- a/general.mk 2006-01-07 19:50:31.000000000 +0200
++++ b/general.mk 2008-01-16 20:44:59.000000000 +0200
@@ -16,7 +16,7 @@
MANDIR = $(PREFIX)/share/man
# Set some destination locations.
INCLUDES += -I.
# Set the include locations.
diff -ur wmmisc-1.1.orig/src/Makefile wmmisc-1.1/src/Makefile
---- wmmisc-1.1.orig/src/Makefile 2006-01-07 20:45:59.000000000 +0200
-+++ wmmisc-1.1/src/Makefile 2008-01-16 20:43:31.000000000 +0200
+--- a/Makefile 2006-01-07 20:45:59.000000000 +0200
++++ b/Makefile 2008-01-16 20:43:31.000000000 +0200
@@ -23,7 +23,7 @@
$(package): $(objects)
--- /dev/null
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="a monitoring dockapp for system load, user amount, fork amount and processes"
+HOMEPAGE="https://packages.qa.debian.org/w/wmmisc.html"
+SRC_URI="mirror://debian/pool/main/w/${PN}/${PN}_${PV}.orig.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+S="${WORKDIR}/${P}/src"
+
+RDEPEND="x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXpm"
+DEPEND="${RDEPEND}
+ x11-base/xorg-proto"
+
+PATCHES=( "${FILESDIR}"/${P}-build.patch )
+
+src_compile() {
+ tc-export CC
+ emake
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc ../{ChangeLog,README}
+}