Changeset 21770 for Makefile.PL
- Timestamp:
- 08/04/08 11:30:29 (5 months ago)
- Files:
-
- 1 modified
-
Makefile.PL (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Makefile.PL
r21762 r21770 28 28 my $bin_dir = File::Spec->catdir($app_dir, 'bin'); 29 29 my $cabal = File::Spec->catfile($bin_dir, "cabal$Config{_exe}"); 30 my $cabal_config = File::Spec->catfile($app_dir, 'config'); 30 31 31 32 $ENV{PATH} = $bin_dir . $Config{path_sep} . $ENV{PATH}; … … 37 38 my $rebuilt = 0; 38 39 $rebuilt += bootstrap_with(Cabal => qr/1\.4\./, '1.4.0'); 39 #$rebuilt ||= bootstrap_with(bytestring => qr/0\.9\.[1-9]/, '0.9.1');40 40 $rebuilt += bootstrap_with(parsec => qr/2\./, '2.0'); 41 41 $rebuilt += bootstrap_with(network => qr/[12]\./, '1.0'); … … 51 51 52 52 my @deps = qw( 53 filepath mtl stm pretty time random process containers array directory 54 55 utf8-string 56 binary 57 haskeline 58 FindBin 59 MetaObject 60 HsParrot 61 pugs-compat 62 pugs-DrIFT 63 stringtable-atom 64 HsSyck 53 mtl time utf8-string binary haskeline FindBin MetaObject HsParrot 54 pugs-compat pugs-DrIFT stringtable-atom HsSyck 65 55 ); 66 56 67 system($cabal => 'update'); 68 system($cabal => 'install', '--user', @deps); 69 70 # TODO - At this point we'd like to fool Cabal into using our own archive. 57 # This line is here simply to trick Cabal into creating a default config file. 58 my $rv = `cabal list -v0 --installed --simple-output`; 59 60 my $cabal_local_config = "$FindBin::RealBin/third-party/packages/config"; 61 62 # Ok, now we copy the config file to our tree. 63 open IN, '<', $cabal_config or die "Impossible: $cabal_config not found?"; 64 open OUT, '>', $cabal_local_config; 65 print OUT << "."; 66 local-repos: "$FindBin::RealBin/third-party/packages/hackage.haskell.org" 67 . 68 while (<IN>) { 69 next if /^(?:local-)?repos:/; 70 print OUT $_; 71 } 72 close IN; 73 close OUT; 74 75 $ENV{CABAL_CONFIG_FILE} = $cabal_local_config; 76 system($cabal => 'install', '--user', '-p', @deps); 77 71 78 do "Configure.PL"; 72 79 print "==> Pugs configuration finished.\n"; … … 238 245 239 246 system($ghc, qw(--make -O0), -o => $setup_exe, $setup_hs) 240 || system($setup_exe, qw(configure --user ))247 || system($setup_exe, qw(configure --user -p)) 241 248 || system($setup_exe, qw(build)) 242 249 || system($setup_exe, qw(install --user))
