Changeset 40558


Ignore:
Timestamp:
Oct 6, 2008, 9:09:40 PM (12 years ago)
Author:
jmr@…
Message:

hs-plugins: remove use of cd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/hs-plugins/Portfile

    r32256 r40558  
    3535destroot.destdir        PREFIX=${destroot}${prefix}
    3636
    37 post-activate   { cd ${worksrcpath}
     37post-activate   {
    3838
    3939                  # start by unregistering old versions
    4040
    41                   system "ghc-pkg -r printf  || true"
    42                   system "ghc-pkg -r eval    || true"
    43                   system "ghc-pkg -r plugins || true"
    44                   system "ghc-pkg -r hi      || true"
    45                   system "ghc-pkg -r altdata || true"
     41                  system "cd ${worksrcpath} && ghc-pkg -r printf  || true"
     42                  system "cd ${worksrcpath} && ghc-pkg -r eval    || true"
     43                  system "cd ${worksrcpath} && ghc-pkg -r plugins || true"
     44                  system "cd ${worksrcpath} && ghc-pkg -r hi      || true"
     45                  system "cd ${worksrcpath} && ghc-pkg -r altdata || true"
    4646
    47                   system "PREFIX=${prefix} LIBDIR=${prefix}/lib/${name} ghc-pkg -u < src/altdata/altdata.conf.in"
    48                   system "PREFIX=${prefix} LIBDIR=${prefix}/lib/${name} ghc-pkg -u < src/hi/hi.conf.in"
    49                   system "PREFIX=${prefix} LIBDIR=${prefix}/lib/${name} ghc-pkg -u < src/plugins/plugins.conf.in"
    50                   system "PREFIX=${prefix} LIBDIR=${prefix}/lib/${name} ghc-pkg -u < src/eval/eval.conf.in"
    51                   system "PREFIX=${prefix} LIBDIR=${prefix}/lib/${name} ghc-pkg -u < src/printf/printf.conf.in"
     47                  system "cd ${worksrcpath} && PREFIX=${prefix} LIBDIR=${prefix}/lib/${name} ghc-pkg -u < src/altdata/altdata.conf.in"
     48                  system "cd ${worksrcpath} && PREFIX=${prefix} LIBDIR=${prefix}/lib/${name} ghc-pkg -u < src/hi/hi.conf.in"
     49                  system "cd ${worksrcpath} && PREFIX=${prefix} LIBDIR=${prefix}/lib/${name} ghc-pkg -u < src/plugins/plugins.conf.in"
     50                  system "cd ${worksrcpath} && PREFIX=${prefix} LIBDIR=${prefix}/lib/${name} ghc-pkg -u < src/eval/eval.conf.in"
     51                  system "cd ${worksrcpath} && PREFIX=${prefix} LIBDIR=${prefix}/lib/${name} ghc-pkg -u < src/printf/printf.conf.in"
    5252
    5353                  system "ranlib ${prefix}/lib/${name}/libHSplugins.a"
Note: See TracChangeset for help on using the changeset viewer.