File: usr-share.patch

package info (click to toggle)
libdevel-nytprof-perl 4.06-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,152 kB
  • sloc: perl: 4,451; ansic: 89; makefile: 19
file content (19 lines) | stat: -rw-r--r-- 708 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Patch search path so arch-indep files are found
 On Debian, all of the js, gif, css etc files are installed in /usr/share/perl5
 rather than /usr/lib/perl5. They are not in the library directory as
 Devel::NYTProf::Data expects
Forwarded: not-needed
Author: gregor herrmann <gregoa@debian.org>
Reviewed-by: Nicholas Bamber <nicholas@periapt.co.uk>
Last-Update: 2010-09-25

--- a/bin/nytprofhtml
+++ b/bin/nytprofhtml
@@ -1202,6 +1202,7 @@
     my ($profile) = @_;
     # find the js, gif, css etc files installed with Devel::NYTProf
     (my $lib = $INC{"Devel/NYTProf/Data.pm"}) =~ s/\/Data\.pm$//;
+    $lib =~ s{usr/lib/perl5}{usr/share/perl5};
     _copy_dir("$lib/js", "$opt_out/js");
 }