Alien-UDUNITS2
view release on metacpan or search on metacpan
0.008 2021-05-22 14:55:14-0400
- Update download URL. See
<https://github.com/EntropyOrg/p5-Alien-UDUNITS2/pull/14>.
- Extract cflags/libs for share install to alienfile. See
<https://github.com/EntropyOrg/p5-Alien-UDUNITS2/pull/15>.
0.007 2020-05-10 16:39:02-0500
- No changes since 0.006_01.
0.006_01 2020-05-07 16:10:51-0500
- Use HTTPS for download. Thanks to thibaultduponchelle!
See <https://github.com/EntropyOrg/p5-Alien-UDUNITS2/pull/10>,
<https://github.com/EntropyOrg/p5-Alien-UDUNITS2/pull/11>.
"%{configure}",
'%{make}',
'%{make} install',
];
# There is no pkg-config .pc file in the original upstream version.
after 'gather' => sub {
my($build) = @_;
my $prefix = $build->runtime_prop->{prefix};
my $cflags = do {
'-I' . File::Spec->catfile($prefix, qw(include))
};
my $libs = do {
my $path = '-L' . File::Spec->catfile($prefix, qw(lib));
join ' ', (
$path,
'-ludunits2',
( $^O eq 'darwin' || $^O eq 'MSWin32' ? '-lexpat' : '')
);
};
$build->runtime_prop->{cflags} = $cflags;
$build->runtime_prop->{cflags_static} = $cflags;
$build->runtime_prop->{libs} = $libs;
$build->runtime_prop->{libs_static} = $libs;
};
};
use Test::More tests => 2;
BEGIN { use_ok('Alien::UDUNITS2'); }
my $u = Alien::UDUNITS2->new;
like( $u->libs, qr/udunits2\b/, 'libs has correct flag');
done_testing;
( run in 1.404 second using v1.01-cache-2.11-cpan-94b05bcf43c )