Skip to content

Commit

Permalink
add distro metadata, use pp_setversion
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Dec 3, 2024
1 parent a71483a commit eeb7664
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
19 changes: 13 additions & 6 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,11 @@ use strict;
use warnings;
use ExtUtils::MakeMaker;
use PDL::Core::Dev;
use Alien::proj;

my $package_name = "PDL::Transform::Proj4";
my $lib_name = "Proj4";

eval { require Alien::proj };
if ($@) {
write_dummy_make("Will skip build of $package_name on this system - no Alien::proj");
return;
}

my $ppfile = "proj4.pd";
my $package = [$ppfile, 'Proj4', $package_name];
my %hash = pdlpp_stdargs($package);
Expand All @@ -21,6 +16,18 @@ $hash{INC} .= ' ' . Alien::proj->cflags;
$hash{realclean} ||= { FILES => 'Proj4.xs' };
$hash{realclean}{FILES} .= ' _Inline';
$hash{PM}{'Demo.pm'} = '$(INST_LIB)/PDL/Demos/Proj4_demo.pm';
$hash{CONFIGURE_REQUIRES} = {
'ExtUtils::MakeMaker' => 0,
'PDL' => '2.094',
'Alien::proj' => '1.29', # guarantee minimum PROJ 7.1 as need degree_output
};
$hash{PREREQ_PM} = {
'PDL' => '2.094',
};
$hash{TEST_REQUIRES} = {
'Test::More' => '0.88',
};
$hash{AUTHOR} = 'PerlDL Developers <pdl-general@lists.sourceforge.net>';

undef &MY::postamble; # suppress warning
*MY::postamble = sub { pdlpp_postamble( $package ); };
Expand Down
1 change: 1 addition & 0 deletions proj4.pd
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use File::Spec;
use Alien::proj;

our $VERSION = "2.096";
pp_setversion($VERSION);

pp_add_isa( 'PDL::Transform' );

Expand Down

0 comments on commit eeb7664

Please sign in to comment.