Skip to content

Commit eeb7664

Browse files
committed
add distro metadata, use pp_setversion
1 parent a71483a commit eeb7664

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

Makefile.PL

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,11 @@ use strict;
22
use warnings;
33
use ExtUtils::MakeMaker;
44
use PDL::Core::Dev;
5+
use Alien::proj;
56

67
my $package_name = "PDL::Transform::Proj4";
78
my $lib_name = "Proj4";
89

9-
eval { require Alien::proj };
10-
if ($@) {
11-
write_dummy_make("Will skip build of $package_name on this system - no Alien::proj");
12-
return;
13-
}
14-
1510
my $ppfile = "proj4.pd";
1611
my $package = [$ppfile, 'Proj4', $package_name];
1712
my %hash = pdlpp_stdargs($package);
@@ -21,6 +16,18 @@ $hash{INC} .= ' ' . Alien::proj->cflags;
2116
$hash{realclean} ||= { FILES => 'Proj4.xs' };
2217
$hash{realclean}{FILES} .= ' _Inline';
2318
$hash{PM}{'Demo.pm'} = '$(INST_LIB)/PDL/Demos/Proj4_demo.pm';
19+
$hash{CONFIGURE_REQUIRES} = {
20+
'ExtUtils::MakeMaker' => 0,
21+
'PDL' => '2.094',
22+
'Alien::proj' => '1.29', # guarantee minimum PROJ 7.1 as need degree_output
23+
};
24+
$hash{PREREQ_PM} = {
25+
'PDL' => '2.094',
26+
};
27+
$hash{TEST_REQUIRES} = {
28+
'Test::More' => '0.88',
29+
};
30+
$hash{AUTHOR} = 'PerlDL Developers <[email protected]>';
2431

2532
undef &MY::postamble; # suppress warning
2633
*MY::postamble = sub { pdlpp_postamble( $package ); };

proj4.pd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use File::Spec;
99
use Alien::proj;
1010

1111
our $VERSION = "2.096";
12+
pp_setversion($VERSION);
1213

1314
pp_add_isa( 'PDL::Transform' );
1415

0 commit comments

Comments
 (0)