Description: Patch to use the system Proj library instead of Alien::Proj Author: Francesco Paolo Lovergine Forwarded: not needed --- a/META.json +++ b/META.json @@ -31,7 +31,6 @@ }, "runtime" : { "requires" : { - "Alien::proj" : "1.07", "Convert::Binary::C" : "0.04", "Exporter::Easy" : "0", "FFI::C" : "0.08", --- a/META.yml +++ b/META.yml @@ -73,7 +73,6 @@ file: lib/Geo/LibProj/FFI.pm version: '1.01' requires: - Alien::proj: '1.07' Convert::Binary::C: '0.04' Exporter::Easy: '0' FFI::C: '0.08' --- a/Makefile.PL +++ b/Makefile.PL @@ -17,7 +17,6 @@ "MIN_PERL_VERSION" => "5.014000", "NAME" => "Geo::LibProj::FFI", "PREREQ_PM" => { - "Alien::proj" => "1.07", "Convert::Binary::C" => "0.04", "Exporter::Easy" => 0, "FFI::C" => "0.08", @@ -38,7 +37,6 @@ my %FallbackPrereqs = ( - "Alien::proj" => "1.07", "Convert::Binary::C" => "0.04", "Exporter::Easy" => 0, "ExtUtils::MakeMaker" => 0, --- a/cpanfile +++ b/cpanfile @@ -1,7 +1,6 @@ # This file is generated by Dist::Zilla::Plugin::CPANFile v6.032 # Do not edit this file directly. To change prereqs, edit the `dist.ini` file. -requires "Alien::proj" => "1.07"; requires "Convert::Binary::C" => "0.04"; requires "Exporter::Easy" => "0"; requires "FFI::C" => "0.08"; --- a/lib/Geo/LibProj/FFI.pm +++ b/lib/Geo/LibProj/FFI.pm @@ -5,7 +5,6 @@ package Geo::LibProj::FFI 1.01; -use Alien::proj 1.07; use FFI::Platypus 1.50; use FFI::C 0.08; use Convert::Binary::C 0.04; @@ -92,7 +91,7 @@ my $ffi = FFI::Platypus->new( api => 2, lang => 'C', - lib => [Alien::proj->dynamic_libs], + lib => [glob "/usr/lib/*/libproj.so.*"], ); FFI::C->ffi($ffi); --- a/t/00-report-prereqs.dd +++ b/t/00-report-prereqs.dd @@ -16,7 +16,6 @@ }, 'runtime' => { 'requires' => { - 'Alien::proj' => '1.07', 'Convert::Binary::C' => '0.04', 'Exporter::Easy' => '0', 'FFI::C' => '0.08', @@ -38,4 +37,4 @@ } }; $x; - } \ No newline at end of file + } --- a/t/00-version.t +++ b/t/00-version.t @@ -9,18 +9,12 @@ || $ENV{AUTHOR_TESTING} || $ENV{AUTOMATED_TESTING}; plan tests => 1; -use Alien::proj; -use File::Spec; - - -my $bin = File::Spec->catdir(Alien::proj->dist_dir, 'bin', 'cs2cs'); -$bin = 'cs2cs' if Alien::proj->install_type eq 'system'; +my $bin = 'cs2cs'; my $out = `$bin 2>&1` // ''; my ($version) = $out =~ m/\b(\d+\.\d+(?:\.\d\w*)?)\b/; -diag sprintf "Alien::proj %s with %s PROJ %s", - Alien::proj->VERSION, Alien::proj->install_type, $version // ""; +diag sprintf "System PROJ %s", $version // ""; # need to run at least one test pass;