Ignore:
Timestamp:
Jun 9, 2013, 1:23:06 PM (5 years ago)
Author:
cal@…
Message:

c2hs: move to hs-c2hs, update to 0.16.4, forces rebuild with new GHC, add dependency language-c < 0.4, modify haskell portgroup to support not running register scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/haskell-1.0.tcl

    r100403 r106872  
    5151}
    5252
    53 proc haskell.setup {package version {compiler ghc}} {
     53proc haskell.setup {package version {compiler ghc} {register_scripts "yes"}} {
    5454    global haskell.compiler_list
    5555    global haskell.compiler_configuration
     
    8181    destroot.destdir
    8282    destroot.target     Setup copy --destdir=${destroot}
    83     post-destroot {
    84         system "cd ${worksrcpath} && ${configure.cmd} Setup register --gen-script"
    85         system "cd ${worksrcpath} && ${configure.cmd} Setup unregister --gen-script"
    86         xinstall -m 755 -d ${destroot}${prefix}/libexec/${name}
    87         xinstall -m 755 -W ${worksrcpath} register.sh unregister.sh \
    88             ${destroot}${prefix}/libexec/${name}
    89     }
    90     post-activate {
    91         system "${prefix}/libexec/${name}/register.sh"
    92     }
    93     pre-deactivate {
    94         system "${prefix}/libexec/${name}/unregister.sh"
    95     }
     83        if {${register_scripts} == "yes"} {
     84                post-destroot {
     85                        system "cd ${worksrcpath} && ${configure.cmd} Setup register --gen-script"
     86                        system "cd ${worksrcpath} && ${configure.cmd} Setup unregister --gen-script"
     87                        xinstall -m 755 -d ${destroot}${prefix}/libexec/${name}
     88                        xinstall -m 755 -W ${worksrcpath} register.sh unregister.sh \
     89                                ${destroot}${prefix}/libexec/${name}
     90                }
     91                post-activate {
     92                        system "${prefix}/libexec/${name}/register.sh"
     93                }
     94                pre-deactivate {
     95                        system "${prefix}/libexec/${name}/unregister.sh"
     96                }
     97        }
    9698
    9799    livecheck.type      regex
Note: See TracChangeset for help on using the changeset viewer.