use ExtUtils::MakeMaker; use File::ShareDir::Install; $File::ShareDir::Install::INCLUDE_DOTFILES = 1; $File::ShareDir::Install::INCLUDE_DOTDIRS = 1; install_share dist => "share"; my %WriteMakefileArgs = ( "ABSTRACT" => "Anki note generation made easy.", "AUTHOR" => "Steve Dondley ", "CONFIGURE_REQUIRES" => { "ExtUtils::MakeMaker" => 0, "File::ShareDir::Install" => "0.06" }, "DISTNAME" => "Anki-Import", "EXE_FILES" => [ "bin/anki_import" ], "LICENSE" => "perl", "NAME" => "Anki::Import", "PREREQ_PM" => { "Cwd" => 0, "Exporter" => 0, "Getopt::Args" => 0, "Log::Log4perl::Shortcuts" => "0.021", "strict" => 0, "warnings" => 0 }, "TEST_REQUIRES" => { "File::Path" => 0, "File::Spec" => 0, "Getopt::Args" => 0, "Test::Exception" => 0, "Test::More" => 0, "Test::Output" => 0, "Test::Warnings" => 0 }, "VERSION" => "0.029", "test" => { "TESTS" => "t/*.t" } ); my %FallbackPrereqs = ( "Cwd" => 0, "Exporter" => 0, "File::Path" => 0, "File::Spec" => 0, "Getopt::Args" => 0, "Log::Log4perl::Shortcuts" => "0.021", "Test::Exception" => 0, "Test::More" => 0, "Test::Output" => 0, "Test::Warnings" => 0, "strict" => 0, "warnings" => 0 ); unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) { delete $WriteMakefileArgs{TEST_REQUIRES}; delete $WriteMakefileArgs{BUILD_REQUIRES}; $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs; } delete $WriteMakefileArgs{CONFIGURE_REQUIRES} unless eval { ExtUtils::MakeMaker->VERSION(6.52) }; WriteMakefile(%WriteMakefileArgs); { package MY; use File::ShareDir::Install qw(postamble); }