Debian Codegraph @

debian/patches/shlib

raw symbols SCIP
1 Description: Patch to use the system Proj library instead of Alien::Proj
2 Author: Francesco Paolo Lovergine <[email protected]>
3 Forwarded: not needed
4 --- a/META.json
5 +++ b/META.json
6 @@ -31,7 +31,6 @@
7 },
8 "runtime" : {
9 "requires" : {
10 - "Alien::proj" : "1.07",
11 "Convert::Binary::C" : "0.04",
12 "Exporter::Easy" : "0",
13 "FFI::C" : "0.08",
14 --- a/META.yml
15 +++ b/META.yml
16 @@ -73,7 +73,6 @@
17 file: lib/Geo/LibProj/FFI.pm
18 version: '1.01'
19 requires:
20 - Alien::proj: '1.07'
21 Convert::Binary::C: '0.04'
22 Exporter::Easy: '0'
23 FFI::C: '0.08'
24 --- a/Makefile.PL
25 +++ b/Makefile.PL
26 @@ -17,7 +17,6 @@
27 "MIN_PERL_VERSION" => "5.014000",
28 "NAME" => "Geo::LibProj::FFI",
29 "PREREQ_PM" => {
30 - "Alien::proj" => "1.07",
31 "Convert::Binary::C" => "0.04",
32 "Exporter::Easy" => 0,
33 "FFI::C" => "0.08",
34 @@ -38,7 +37,6 @@
35
36
37 my %FallbackPrereqs = (
38 - "Alien::proj" => "1.07",
39 "Convert::Binary::C" => "0.04",
40 "Exporter::Easy" => 0,
41 "ExtUtils::MakeMaker" => 0,
42 --- a/cpanfile
43 +++ b/cpanfile
44 @@ -1,7 +1,6 @@
45 # This file is generated by Dist::Zilla::Plugin::CPANFile v6.032
46 # Do not edit this file directly. To change prereqs, edit the `dist.ini` file.
47
48 -requires "Alien::proj" => "1.07";
49 requires "Convert::Binary::C" => "0.04";
50 requires "Exporter::Easy" => "0";
51 requires "FFI::C" => "0.08";
52 --- a/lib/Geo/LibProj/FFI.pm
53 +++ b/lib/Geo/LibProj/FFI.pm
54 @@ -5,7 +5,6 @@
55 package Geo::LibProj::FFI 1.01;
56
57
58 -use Alien::proj 1.07;
59 use FFI::Platypus 1.50;
60 use FFI::C 0.08;
61 use Convert::Binary::C 0.04;
62 @@ -92,7 +91,7 @@
63 my $ffi = FFI::Platypus->new(
64 api => 2,
65 lang => 'C',
66 - lib => [Alien::proj->dynamic_libs],
67 + lib => [glob "/usr/lib/*/libproj.so.*"],
68 );
69 FFI::C->ffi($ffi);
70
71 --- a/t/00-report-prereqs.dd
72 +++ b/t/00-report-prereqs.dd
73 @@ -16,7 +16,6 @@
74 },
75 'runtime' => {
76 'requires' => {
77 - 'Alien::proj' => '1.07',
78 'Convert::Binary::C' => '0.04',
79 'Exporter::Easy' => '0',
80 'FFI::C' => '0.08',
81 @@ -38,4 +37,4 @@
82 }
83 };
84 $x;
85 - }
86 \ No newline at end of file
87 + }
88 --- a/t/00-version.t
89 +++ b/t/00-version.t
90 @@ -9,18 +9,12 @@
91 || $ENV{AUTHOR_TESTING} || $ENV{AUTOMATED_TESTING};
92 plan tests => 1;
93
94 -use Alien::proj;
95 -use File::Spec;
96 -
97 -
98 -my $bin = File::Spec->catdir(Alien::proj->dist_dir, 'bin', 'cs2cs');
99 -$bin = 'cs2cs' if Alien::proj->install_type eq 'system';
100 +my $bin = 'cs2cs';
101
102 my $out = `$bin 2>&1` // '';
103 my ($version) = $out =~ m/\b(\d+\.\d+(?:\.\d\w*)?)\b/;
104
105 -diag sprintf "Alien::proj %s with %s PROJ %s",
106 - Alien::proj->VERSION, Alien::proj->install_type, $version // "";
107 +diag sprintf "System PROJ %s", $version // "";
108
109 # need to run at least one test
110 pass;