File: Makefile.PL

package info (click to toggle)
horae 071~svn537%2Bds1-2
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid, trixie
  • size: 13,008 kB
  • sloc: perl: 67,227; lisp: 744; sh: 78; makefile: 77; ansic: 35
file content (44 lines) | stat: -rwxr-xr-x 1,630 bytes parent folder | download | duplicates (7)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#! /usr/bin/perl -w
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.


## If this is being installed with Atoms of with Ifeffit, then
## $ENV{INSTALLING_WITH} will be set by Atoms' topmost Makefile.PL.
my $blib;
SWITCH : {
  $blib = "blib",       last SWITCH if (not $ENV{INSTALLING_WITH});
  $blib = "../blib",    last SWITCH if ($ENV{INSTALLING_WITH} eq 'atoms');
  $blib = "../blib",    last SWITCH if ($ENV{INSTALLING_WITH} eq 'horae');
  $blib = "../../blib", last SWITCH if ($ENV{INSTALLING_WITH} eq 'ifeffit');
};

#print "In Xtal:  blib=$blib\n";

WriteMakefile
  (
   'NAME'	     => 'Xray::Xtal',
   'DISTNAME'     => 'Xtal',
   'VERSION_FROM' => 'Xtal.pm', # finds $VERSION
   dist           => { COMPRESS => 'gzip -f', SUFFIX => 'gz' },
   clean          =>	{ FILES    => "*.db" },
   ($] >= 5.005 ?
    ('ABSTRACT' =>
     'Xtal.pm: Object Oriented Crystallography with a condensed matter slant',
     'AUTHOR'   => 'Bruce Ravel (ravel@phys.washington.edu)') : ()),
   'PL_FILES'     => {'space_groups.db.PL' => 'space_groups.db',},
   'PM' =>
   {'Xtal.pm'             => "$blib/lib/Xray/Xtal.pm",
    'space_groups.db.PL'  => "$blib/lib/Xray/space_groups.db.PL",
    'space_groups.db'     => "$blib/lib/Xray/space_groups.db",
    'xtalrc.en'           => "$blib/lib/Xray/lib/xtalrc.en",
    #'xtalrc.sp'           => "$blib/lib/Xray/lib/xtalrc.sp",
    #'xtalrc.fr'           => "$blib/lib/Xray/lib/xtalrc.fr",
    #'xtalrc.ge'           => "$blib/lib/Xray/lib/xtalrc.ge",
   },
  );

## Local Variables:
## mode: cperl
## End: