--- /dev/null
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DIST_AUTHOR=FROGGS
+DIST_VERSION=1.446
+inherit perl-module toolchain-funcs
+
+DESCRIPTION="building, finding and using SDL binaries"
+
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~x86"
+
+# File::Fetch, File::Find, Test::More -> dev-lang/perl
+RDEPEND="
+ dev-perl/Archive-Extract
+ dev-perl/Archive-Zip
+ dev-perl/Capture-Tiny
+ dev-perl/File-ShareDir
+ dev-perl/File-Which
+ dev-perl/Text-Patch
+ media-libs/libsdl
+ virtual/perl-Archive-Tar
+ virtual/perl-Digest-SHA
+ virtual/perl-ExtUtils-CBuilder
+ virtual/perl-ExtUtils-MakeMaker
+ dev-perl/Module-Build
+ virtual/perl-File-Spec
+ virtual/perl-File-Temp
+"
+DEPEND="
+ dev-perl/Module-Build
+ media-libs/libsdl
+"
+BDEPEND="${RDEPEND}"
+
+PERL_RM_FILES=(
+ t/release-pod-{syntax,coverage}.t
+)
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.444.0-fix-build-option.patch
+ "${FILESDIR}"/${PN}-1.444.0-no-sysclean.patch
+)
+src_prepare() {
+ tc-export CC
+ perl-module_src_prepare
+}
+
+myconf='--with-sdl-config'
--- /dev/null
+From 8d36c877d2528cb8634219949730767b0e6e5150 Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentnl@gentoo.org>
+Date: Fri, 24 Apr 2020 03:44:51 +1200
+Subject: Remove sharedir nuking logic.
+
+This breaks install on Gentoo, as it tries to remove the *system*
+share_dir *before* Gentoo gets around to things.
+
+And this code is basically redundant because Gentoo assurces cruft
+entries in share will get removed, which is not something people using
+CPAN clients can expect.
+
+https://bugs.gentoo.org/719074
+---
+ inc/My/Builder.pm | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/inc/My/Builder.pm b/inc/My/Builder.pm
+index 6f5a97e..f101beb 100644
+--- a/inc/My/Builder.pm
++++ b/inc/My/Builder.pm
+@@ -47,7 +47,7 @@ sub ACTION_install
+
+ $sharedir = eval {File::ShareDir::dist_dir('Alien-SDL')} || '';
+
+- if ( -d $sharedir )
++ if ( 0 )
+ {
+ print "Removing the old $sharedir \n";
+ remove_tree($sharedir);
+--
+2.26.2
+