File: 01-install-module.patch

package info (click to toggle)
libdata-treedumper-renderer-dhtml-perl 0.09-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 160 kB
  • sloc: perl: 634; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 434 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Install only the Perl module, not the example script.

--- a/Makefile.PL
+++ b/Makefile.PL
@@ -1,6 +1,12 @@
 use ExtUtils::MakeMaker;
 # See lib/ExtUtils/MakeMaker.pm for details of how to influence
 # the contents of the Makefile that is written.
+
+sub MY::libscan
+{
+	return $_[1] =~ /\.pm$/? $_[1]: '';
+}
+
 WriteMakefile(
     'NAME'		=> 'Data::TreeDumper::Renderer::DHTML',
     'VERSION_FROM'	=> 'DHTML.pm', # finds $VERSION