--- /dev/null
+AUX lcdtest-1.18-fix-prints.patch 725 BLAKE2B 0e816cdcf317c73fd94dfa728c6822cd0c9940070452e8ef437a559c87b2bf8cbf5df59772a670b5484926b43caa9dea5bd5c1cc2ab9e4edbcfe2b40065415e5 SHA512 000e2f5b82abbef7acc1e1557de90d9b8584eabc37aa45c3a2288abf0e27cd575a8dea5c5c72f119e89f59b268b4e7ee3fdbf2838980d4e16d832205b427045e
+AUX lcdtest-1.18-font-path.patch 749 BLAKE2B 535d7f3b3cd440a13c1e0a024525bed10a98bfcb2e7883a8a558ecc1976fb3755bd4ddbe9dd301af6754170502eb3e4a98ea2e8548f25389615d11a3a36170ee SHA512 5d3772208e51703a2845c4c901919f0e93bff2bef15443ffa8526dc59cdd65294a2fbafff5921b255b4900d97082e2ec1de4854bee34bbc7304596fa9c1bf7e8
+AUX lcdtest-1.18-no-sdl-image.patch 283 BLAKE2B 89c836e2983d215da790b87e7685ebd6ed1838e93fb6bdd733dcff16f8638a86800690123d6cbb7b5f70174d21be9bc01b1cd078e952a5b6dc9287271fcfadb5 SHA512 2c91b692fb67f21db7aa43ffa370ed897e9f6325dfaec54ec9df4614bf00f49db1510e5d2631439fd0d187628ed76581810a308aad598c4d7ad619fd517621de
+DIST lcdtest-1.18.tar.gz 26886 BLAKE2B e5ee71c49c65df04d380cbb922a067653bbfb787a6e9376ec8989fee27466895e569813c06c1eb561cf7e3aec48b89920adace2dd3230dda158a7c5bd7badda7 SHA512 74b0739c5dcc5ff9307ca526b4a6bbd92d6e58a83ceeed5a37a4064e3e4ed0cbdfe7a2a70cd56ba1a7305c3fd72510e10a02098aab11828062a3999cac944ab7
+EBUILD lcdtest-1.18.ebuild 1181 BLAKE2B f39b8cc5e869c1e5d2a090514a5c84f27c0b9bf7636cdb82c367fafa45f69f7f7c17f39c5e9befd67a0ebfdc44f1e571162a1620b7481c41b76dfd3d306c3c9e SHA512 b703e63a665fd6311687b6f924e3a8ef2038202262f54e3edd51933bfc7710b7e6aa25cd4225f3161d0ccd22f816ab057ceffb5d2690ab10329fafc65b691ed9
--- /dev/null
+diff --git a/src/lcdtest.c.orig b/src/lcdtest.c
+index 93e5f29f7f7f..48228879aeac 100644
+--- a/src/lcdtest.c.orig
++++ b/src/lcdtest.c
+@@ -67,7 +67,7 @@ const char help_message [] =
+ "\n"
+ "lcdtest " MAKESTR(RELEASE) " Free Software (GPLv3)\n"
+ "Copyright 2005-2010 Eric Smith <eric@brouhaha.com>\n"
+- "http://www.brouhaha.com/~eric/software/lcdtest/"
++ "http://www.brouhaha.com/~eric/software/lcdtest/\n"
+ };
+
+
+@@ -170,7 +170,6 @@ SDL_Surface *create_text_surface (const char *message,
+ line_height = TTF_FontLineSkip (font);
+
+ get_text_size (font, message, & width, & height);
+- printf ("width: %d, height: %d\n", width, height);
+
+ text_surface = SDL_CreateRGBSurface (SDL_HWSURFACE,
+ width,
--- /dev/null
+diff --git a/src/lcdtest.c.orig b/src/lcdtest.c
+index 93e5f29..d81e081 100644
+--- a/src/lcdtest.c.orig
++++ b/src/lcdtest.c
+@@ -741,9 +741,6 @@ int enumerate_sdl_modes (int *width, int *height, FILE *out)
+ return (m);
+ }
+
+-
+-const char font_path [] = "/usr/share/fonts/liberation/LiberationMono-Regular.ttf";
+-
+ int main (int argc, char *argv [])
+ {
+ SDL_Surface *screen;
+@@ -762,12 +759,12 @@ int main (int argc, char *argv [])
+ SDL_EnableUNICODE (1);
+
+ help_teaser_image = create_text_surface (help_teaser_message,
+- font_path,
++ FONT_PATH,
+ 18,
+ white,
+ black);
+ help_image = create_text_surface (help_message,
+- font_path,
++ FONT_PATH,
+ 18,
+ white,
+ black);
--- /dev/null
+diff --git a/src/lcdtest.c.orig b/src/lcdtest.c
+index 93e5f29..eb080cb 100644
+--- a/src/lcdtest.c.orig
++++ b/src/lcdtest.c
+@@ -30,7 +30,6 @@
+ #include <string.h>
+
+ #include <SDL/SDL.h>
+-#include <SDL/SDL_image.h>
+ #include <SDL/SDL_ttf.h>
+
+ #define UNUSED __attribute__ ((unused))
--- /dev/null
+# Copyright © 2020 Nick Bowler
+# License GPLv3+: GNU General Public License version 3 or any later version.
+# This is free software: you are free to change and redistribute it.
+# There is NO WARRANTY, to the extent permitted by law.
+
+EAPI=7
+
+inherit toolchain-funcs desktop xdg
+
+DESCRIPTION="LCD monitor test pattern generator"
+HOMEPAGE="http://www.brouhaha.com/~eric/software/lcdtest/"
+SRC_URI="$HOMEPAGE/download/$P.tar.gz"
+
+LICENSE="GPL-3"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+
+DEPEND="media-libs/libsdl[video]
+ media-libs/sdl-ttf"
+RDEPEND="$DEPEND
+ media-fonts/liberation-fonts"
+
+PATCHES=(
+ "$FILESDIR/$P-no-sdl-image.patch"
+ "$FILESDIR/$P-fix-prints.patch"
+ "$FILESDIR/$P-font-path.patch"
+ )
+
+src_compile () {
+ local font="/usr/share/fonts/liberation-fonts/LiberationMono-Regular.ttf"
+ local mycc=$(tc-getCC)
+ local compile="$mycc $CPPFLAGS $CFLAGS -c" link="$mycc $CFLAGS $LDFLAGS"
+
+ (cd src || exit; set -x
+ $compile lcdtest.c -DFONT_PATH=\""${EPREFIX%/}$font"\" -DRELEASE=$PV &&
+ $link -o lcdtest lcdtest.o -lSDL_ttf -lSDL) || die
+}
+
+src_install () {
+ dobin src/lcdtest
+ doman man/lcdtest.1
+ doicon -s scalable desktop/lcdtest.svg
+ domenu desktop/lcdtest.desktop
+
+ default
+}