Skip to content

Commit 03e343c

Browse files
committed
use pdldoc_add in postamble
1 parent b6e7296 commit 03e343c

2 files changed

Lines changed: 10 additions & 12 deletions

File tree

‎Changes‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
- update doc-installing
2+
13
1.016 2025-01-16
24
- fix licence
35

‎Makefile.PL‎

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use strict;
22
use warnings;
33
use ExtUtils::MakeMaker;
4+
use PDL::Core::Dev;
45

56
sub MY::libscan
67
{
@@ -13,19 +14,13 @@ sub MY::libscan
1314
return $self->SUPER::libscan ($file);
1415
}
1516

16-
sub MY::postamble {
17-
my $text = <<'FOO';
18-
install ::
19-
@echo "Updating PDL documentation database...";
20-
@$(PERL) -e 'sub PDL::Doc::add_module {print STDERR "legacy PDL detected. Cannot install docs.\n"}; eval q{use PDL::Doc; PDL::Doc::add_module(q[PDL::Graphics::Simple];}'
17+
sub MY::postamble { pdldoc_add() }
2118

22-
FOO
23-
return $text;
24-
}
25-
26-
my %prereq = ( 'PDL' => '2.089', # contour_polylines
27-
'File::Temp' => 0,
28-
'Time::HiRes' => 0);
19+
my %prereq = (
20+
'PDL' => '2.105', # pdldoc_add
21+
'File::Temp' => 0,
22+
'Time::HiRes' => 0
23+
);
2924
my %min_version = (
3025
'PDL::Graphics::Gnuplot' => '2.029', # Gnuplot 6 warnings fixes
3126
);
@@ -45,6 +40,7 @@ WriteMakefile(
4540
PREREQ_PM => \%prereq,
4641
CONFIGURE_REQUIRES => {
4742
'ExtUtils::MakeMaker' => '7.12', # working .g.c
43+
'PDL' => '2.105', # pdldoc_add
4844
},
4945
TEST_REQUIRES => {
5046
'Test::More' => '0.88',

0 commit comments

Comments
 (0)