chiark / gitweb /
libmsgpack: Update from 2.1.3 to 2.1.5
[termux-packages] / packages / git / perl-Makefile.PL.patch
1 Install git perl files to a local git-specific folder and
2 be sure to bring the private Error.pm copy with it.
3
4 diff -u -r ../git-2.7.4/perl/Makefile.PL ./perl/Makefile.PL
5 --- ../git-2.7.4/perl/Makefile.PL       2016-03-17 16:47:59.000000000 -0400
6 +++ ./perl/Makefile.PL  2016-03-24 22:38:12.222059955 -0400
7 @@ -38,15 +38,13 @@
8         my $pm_path = $File::Find::name;
9         $pm_path =~ s{^\./}{};
10  
11 -       $pm{$pm_path} = '$(INST_LIBDIR)/'.$pm_path;
12 +       $pm{$pm_path} = '@TERMUX_PREFIX@/share/git-perl/'.$pm_path;
13  }, "Git", "Git.pm";
14  
15  
16  # We come with our own bundled Error.pm. It's not in the set of default
17  # Perl modules so install it if it's not available on the system yet.
18 -if ( !eval { require Error } || $Error::VERSION < 0.15009) {
19 -       $pm{'private-Error.pm'} = '$(INST_LIBDIR)/Error.pm';
20 -}
21 +       $pm{'private-Error.pm'} = '@TERMUX_PREFIX@/share/git-perl/Error.pm';
22  
23  # redirect stdout, otherwise the message "Writing perl.mak for Git"
24  # disrupts the output for the target 'instlibdir'