I see that Fedora has a 0.9.22 version packaged: http://pkgs.fedoraproject.org/cgit/rpms/tuxpaint.git/tree/ Thanks
From the very large changelog... ftp://ftp.tuxpaint.org/unix/x/tuxpaint/CHANGES.txt it looks like at least one of our build system patches (the LDFLAGS one) was applied upstream.
Created attachment 472732 [details] tuxpaint-0.9.22.ebuild Here's an ebuild that fixes the CFLAGS handling and obsoletes a lot of the patching/sed. There's one chunk of the old "gentoo" patch (that handles some icons and stuff) missing. They may or may not be important; someone should check before committing this because I don't use Gnome or KDE.
Created attachment 472734 [details, diff] tuxpaint-0.9.22-underlinking.patch This is the only patch still needed with the new v0.9.22, and could easily be sent upstream.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a58e7e9afe752003c8b6fa860565bb306c919a0 commit 1a58e7e9afe752003c8b6fa860565bb306c919a0 Author: Peter Alfredsen <crabbedhaloablution@icloud.com> AuthorDate: 2020-12-17 18:46:23 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2020-12-27 05:13:05 +0000 media-gfx/tuxpaint: version bump to 0.9.24 Closes: https://bugs.gentoo.org/385951 Closes: https://bugs.gentoo.org/581036 Closes: https://bugs.gentoo.org/671528 Closes: https://bugs.gentoo.org/734048 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Peter Alfredsen <crabbedhaloablution@icloud.com> Closes: https://github.com/gentoo/gentoo/pull/18669 Signed-off-by: Sam James <sam@gentoo.org> media-gfx/tuxpaint/Manifest | 1 + media-gfx/tuxpaint/tuxpaint-0.9.24.ebuild | 71 +++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+)