From 7f8c25a283a9fc448410136fe113367163c7c192 Mon Sep 17 00:00:00 2001 From: Ed J Date: Mon, 9 Dec 2024 01:37:39 +0000 Subject: [PATCH] install pdldoc --- Makefile.PL | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile.PL b/Makefile.PL index c6250e6..75d0bb4 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,6 +1,7 @@ use ExtUtils::MakeMaker; use strict; use warnings; +use PDL::Core::Dev; my $package_name = "PDL::IO::ENVI"; (my $repo = $package_name) =~ s#::#-#g; @@ -11,6 +12,7 @@ WriteMakefile( AUTHOR => 'PerlDL Developers ', CONFIGURE_REQUIRES => { 'ExtUtils::MakeMaker' => 0, + 'PDL' => '2.094', }, PREREQ_PM => { 'PDL' => '2.094', @@ -29,3 +31,8 @@ WriteMakefile( }, }, ); + +sub MY::postamble { + my $oneliner = PDL::Core::Dev::_oneliner(qq{exit if \$ENV{DESTDIR}; use PDL::Doc; eval { PDL::Doc::add_module(shift); }}); + qq|\ninstall :: pure_install\n\t$oneliner \$(NAME)\n|; +}