~ubuntu-branches/ubuntu/hoary/libcalendar-simple-perl/hoary

« back to all changes in this revision

Viewing changes to Makefile.PL

  • Committer: Bazaar Package Importer
  • Author(s): Stephen Quinney
  • Date: 2004-12-05 16:27:17 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041205162717-v2zzhm5xm3x9nzc3
Tags: 1.11-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
use ExtUtils::MakeMaker;
2
 
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
3
 
# the contents of the Makefile that is written.
4
 
WriteMakefile(
5
 
    'NAME'              => 'Calendar::Simple',
6
 
    'VERSION_FROM'      => 'Simple.pm', # finds $VERSION
7
 
    'PREREQ_PM'         => { 'Test::More' => 0 ,
8
 
                             'Test::Pod'  => 0 }, 
9
 
    ($] >= 5.005 ?    ## Add these new keywords supported since 5.005
10
 
      (ABSTRACT_FROM => 'Simple.pm', # retrieve abstract from module
11
 
       AUTHOR     => 'Dave Cross <dave@dave.org.uk>') : ()),
12
 
);
 
1
# Note: this file was auto-generated by Module::Build::Compat version 0.03
 
2
    
 
3
    unless (eval "use Module::Build::Compat 0.02; 1" ) {
 
4
      print "This module requires Module::Build to install itself.\n";
 
5
      
 
6
      require ExtUtils::MakeMaker;
 
7
      my $yn = ExtUtils::MakeMaker::prompt
 
8
        ('  Install Module::Build now from CPAN?', 'y');
 
9
      
 
10
      unless ($yn =~ /^y/i) {
 
11
        die " *** Cannot install without Module::Build.  Exiting ...\n";
 
12
      }
 
13
      
 
14
      require Cwd;
 
15
      require File::Spec;
 
16
      require CPAN;
 
17
      
 
18
      # Save this 'cause CPAN will chdir all over the place.
 
19
      my $cwd = Cwd::cwd();
 
20
      my $makefile = File::Spec->rel2abs($0);
 
21
      
 
22
      CPAN::Shell->install('Module::Build::Compat')
 
23
        or die " *** Cannot install without Module::Build.  Exiting ...\n";
 
24
      
 
25
      chdir $cwd or die "Cannot chdir() back to $cwd: $!";
 
26
      exec $^X, $makefile, @ARGV;  # Redo now that we have Module::Build
 
27
    }
 
28
    use lib '_build/lib';
 
29
    Module::Build::Compat->run_build_pl(args => \@ARGV);
 
30
    require Module::Build;
 
31
    Module::Build::Compat->write_makefile(build_class => 'Module::Build');