~ubuntu-branches/ubuntu/trusty/horae/trusty

« back to all changes in this revision

Viewing changes to 0CPAN/Makefile.PL

  • Committer: Bazaar Package Importer
  • Author(s): Carlo Segre
  • Date: 2008-02-23 23:13:02 UTC
  • mfrom: (2.1.2 hardy)
  • Revision ID: james.westby@ubuntu.com-20080223231302-mnyyxs3icvrus4ke
Tags: 066-3
Apply patch to athena_parts/misc.pl for compatibility with 
perl-tk 804.28.

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
 
 
5
 
## want to *not* try to build Archive::Zip or Compress::Zlib on a
6
 
## windows system, this will weed those two out
7
 
my @list;
8
 
opendir D, '.';
9
 
foreach (readdir D) {
10
 
  next if (/^\./);
11
 
  next unless -d;
12
 
  next if (($^O eq 'MSWin32') or ($^O eq 'cygwin')) and (($_ =~ /Archive/) or ($_ =~ /Compress/));
13
 
  push @list, $_;
14
 
};
15
 
closedir D;
16
 
@list = sort @list;
17
 
 
18
 
 
19
 
## Carlo asked for a flag to turn off installation of all the CPAN
20
 
## stuff.  The approach here is to generate a Makefile with no-op
21
 
## targets.  This is a list of targets snarfed from a proper Makefile
22
 
## in this directory.
23
 
my @targets = qw(all pure_all subdirs config help linkext dynamic
24
 
                 static manifypods subdirs clean_subdirs clean
25
 
                 realclean_subdirs realclean purge metafile
26
 
                 metafile_addtomanifest distclean distcheck skipcheck
27
 
                 manifest veryclean dist tardist uutardist zipdist
28
 
                 shdist distdir disttest ci install install_perl
29
 
                 install_site install_vendor pure_install doc_install
30
 
                 pure__install doc__install pure_perl_install
31
 
                 pure_site_install pure_vendor_install
32
 
                 doc_perl_install doc_site_install doc_vendor_install
33
 
                 uninstall uninstall_from_perldirs
34
 
                 uninstall_from_sitedirs uninstall_from_vendordirs
35
 
                 testdb test test_dynamic testdb_dynamic test_
36
 
                 test_static testdb_static ppd pm_to_blib install);
37
 
 
38
 
 
39
 
if ($ENV{SKIP_ALL_CPAN_MODULES}) {
40
 
  open M, ">Makefile";
41
 
  print M "$_:\t\n" foreach (@targets);
42
 
  close M;
43
 
} else {
44
 
  WriteMakefile('NAME'    => 'HoraeBundle',
45
 
                'VERSION' => '2004.06.28',
46
 
                'DIR'     => \@list,
47
 
               );
48
 
};