File: Makefile.PL

package info (click to toggle)
libscriptalicious-perl 1.17-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 252 kB
  • ctags: 30
  • sloc: perl: 1,182; makefile: 11
file content (27 lines) | stat: -rw-r--r-- 642 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/perl
#
use ExtUtils::MakeMaker;
# See perldoc Module::Build for details of how this works

my @recommends = qw(Text::Wrap Time::HiRes YAML);

for my $module ( @recommends ) {
    eval "use $module";
    if ( $@ ) {
	warn "Failed to load optional dependency $module ($@)";
    }
}

WriteMakefile
    ( NAME     => 'Scriptalicious',
      VERSION_FROM => "lib/Scriptalicious.pm",
      ( ( $] >= 5.005 ) ?
	( ABSTRACT => "Make scripts more delicious to SysAdmins",
	  AUTHOR     => "Sam Vilain <samv\@cpan.org>",
	) : () ),
      PREREQ_PM => {
		    'Test::More' => 0,
		    'Term::ReadKey' => 0,
		   },
      NO_META => 0,
    );