Changeset 17050 for util

Show
Ignore:
Timestamp:
07/14/07 05:26:05 (17 months ago)
Author:
audreyt
Message:

* Explicitly name required -package names in case Cabal doesn't

grok build-depends.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • util/build_pugs.pl

    r17049 r17050  
    573573        s/__OPTIONS__/@args/; 
    574574        s/__VERSION__/$version/; 
    575         s/__DEPENDS__/$depends/; 
     575 
     576        if (s/__DEPENDS__/$depends/ and /^build-depends:\s+(.+)/) { 
     577            # Explicitly add those packages into GHC_OPTIONS. 
     578            foreach my $pkg (split(/\s*,\s*/, $1)) { 
     579                $pkg =~ /(\S+)/ or next; 
     580                push @args, -package => $1; 
     581            } 
     582        } 
     583 
    576584        s/__PERL5_C__/$perl5_c/; 
    577585        s/__PARROT_C__/$parrot_c/;