diff -u xrootconsole-0.4/util.c xrootconsole-0.4.new/util.c
---- xrootconsole-0.4/util.c 2000-10-10 04:17:53.000000000 +0200
-+++ xrootconsole-0.4.new/util.c 2004-02-17 23:59:45.000000000 +0100
+--- a/util.c 2000-10-10 04:17:53.000000000 +0200
++++ b/util.c 2004-02-17 23:59:45.000000000 +0100
@@ -53,16 +53,16 @@
---- xrootconsole-0.6/Makefile.org 2004-02-20 22:53:28.000000000 +0100
-+++ xrootconsole-0.6/Makefile 2010-02-08 12:01:11.000000000 +0100
+--- a/Makefile.org 2004-02-20 22:53:28.000000000 +0100
++++ b/Makefile 2010-02-08 12:01:11.000000000 +0100
@@ -43,20 +43,16 @@
else echo Bleeding Edge Version; \
fi;)
---- xrootconsole.1.orig 2005-03-06 16:59:05.837673328 +0900
-+++ xrootconsole.1 2005-03-06 17:04:36.493406016 +0900
+--- a/xrootconsole.1.orig 2005-03-06 16:59:05.837673328 +0900
++++ b/xrootconsole.1 2005-03-06 17:04:36.493406016 +0900
@@ -38,6 +38,9 @@
.Ar number
columns wide. Text is written vertically down each column in the order in
---- main.c.orig 2004-02-21 07:31:53.000000000 +0900
-+++ main.c 2005-03-06 16:34:27.949346504 +0900
+--- a/main.c.orig 2004-02-21 07:31:53.000000000 +0900
++++ b/main.c 2005-03-06 16:34:27.949346504 +0900
@@ -68,6 +68,7 @@
" --solid make background a solid color, not shaded-transparent\n" \
" --topdown insert lines at the top and scroll the rest down\n" \
--- /dev/null
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="A utility that displays its input in a text box on your root window"
+HOMEPAGE="https://sourceforge.net/projects/xrootconsole/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+RDEPEND="
+ x11-libs/libX11"
+
+DEPEND="
+ ${RDEPEND}
+ x11-proto/xproto"
+
+PATCHES=(
+ "${FILESDIR}/${P}.noversion.patch"
+ "${FILESDIR}/${P}.makefile.patch"
+ "${FILESDIR}/${P}.manpage.patch"
+)
+
+DOCS=( TODO NEWS CREDITS )
+
+src_compile() {
+ tc-export CC
+ emake
+}
+
+src_install() {
+ dodir /usr/bin
+
+ emake \
+ MANDIR="${D}usr/share/man/man1" \
+ BINDIR="${D}usr/bin/" \
+ install
+
+ einstalldocs
+}