File: Makefile.PL

package info (click to toggle)
horae 066-3
  • links: PTS
  • area: contrib
  • in suites: lenny
  • size: 17,272 kB
  • ctags: 1,656
  • sloc: perl: 64,718; lisp: 744; sh: 82; makefile: 67; ansic: 35
file content (30 lines) | stat: -rw-r--r-- 1,096 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
28
29
30
use ExtUtils::MakeMaker;

## 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');
};


## fixup shbang lines in the scripts
@ARGV = qw(formula tkformula formula.cgi formula_noabs);
do 'fixin';

WriteMakefile(
	      'NAME'	     => 'Chemistry::Formula',
	      #'DISTNAME'     => '',
	      'VERSION_FROM' => 'Formula.pm', # finds $VERSION
              'dist'         => { COMPRESS => 'gzip -f', SUFFIX => 'gz' },
	      'PM' =>
	      {				# module and data
	       #'tkformula'   => "$blib/bin/tkformula",
	       'Formula.pm'  => "$blib/lib/Chemistry/Formula.pm",
	       'formula.dat' => "$blib/lib/Chemistry/formula.dat",
	       'morter.xbm'  => "$blib/lib/Chemistry/morter.xbm",
	      },
	     );