Changeset 106872


Ignore:
Timestamp:
Jun 9, 2013, 1:23:06 PM (4 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

Location:
trunk/dports
Files:
4 edited
2 copied

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
  • trunk/dports/devel/c2hs/Portfile

    r42538 r106872  
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    12# $Id$
    23
    3 PortSystem 1.0
     4PortSystem  1.0
    45
    5 name            c2hs
    6 version         0.15.1
    7 categories      devel haskell
    8 maintainers     gwright
    9 platforms       darwin
    10 
    11 description     Yet Another Interface Generator for Haskell
    12 long_description        \
    13                 C->Haskell is an interface generator that simplifies    \
    14                 the development of Haskell bindings to C libraries.     \
    15                 The tool processes existing C header files that         \
    16                 determine data layout and function signatures on the    \
    17                 C side in conjunction with Haskell modules that specify \
    18                 Haskell-side type signatures and marshaling details.
    19 
    20 homepage        http://www.cse.unsw.edu.au/~chak/haskell/c2hs/
    21 master_sites    ${homepage}/
    22 
    23 checksums       md5     69f99fba67419edd471b77efb0bd644f                \
    24                 sha1    f690c87abf63329b6888cb2a3b8f4fb64d113150        \
    25                 rmd160  e43c39437dd3320cdb714ef2219d7bed2d25afab
    26 
    27 depends_build   port:ghc
    28 
    29 universal_variant       no
    30 
    31 pre-configure   {
    32                   system "cd ${worksrcpath} && ghc -o Setup Setup.hs -package Cabal"
    33                 }
    34 
    35 configure       {
    36                   system "cd ${worksrcpath} && ./Setup configure --ghc --prefix=${prefix}"
    37                 }
    38 
    39 build           {
    40                   system "cd ${worksrcpath} && ./Setup build -v"
    41                 }
    42 
    43 destroot        {
    44                   system "cd ${worksrcpath} && ./Setup copy --copy-prefix=${destroot}${prefix}"
    45                 }
    46 
     6name        c2hs
     7version     0.15.1
     8revision    1
     9categories  devel haskell
     10platforms   darwin
     11replaced_by hs-c2hs
     12PortGroup   obsolete 1.0
  • trunk/dports/devel/hs-c2hs/Portfile

    r106855 r106872  
    55PortGroup           haskell 1.0
    66
    7 haskell.setup       json 0.7
    8 revision            2
    9 checksums           rmd160  d3f9bdb2fcd0203d394e0c97a00353662209dcba \
    10                     sha256  d3654272caa269bc65f6f2af82b583ef05434613fe5272d57053fb3bfada68a3
     7haskell.setup       c2hs 0.16.4 ghc no
     8checksums           rmd160  bc3ebe30c95828ffe8da9c0d0e4bcc1c6239c5b2 \
     9                    sha256  f1b15c18de884273eeab4400097a6fad8373849835e2a943d4583d9602fb1555
    1110
    1211maintainers         nomaintainer
    1312platforms           darwin
    14 license             BSD
     13license             GPL-2
    1514
    16 description         Support for serialising Haskell to and from JSON
     15description         C->Haskell FFI tool that gives some cross-language type safety
    1716long_description    \
    18     JSON (JavaScript Object Notation) is a lightweight data-interchange format. \
    19     It is easy for humans to read and write. It is easy for machines to parse \
    20     and generate. It is based on a subset of the JavaScript Programming \
    21     Language, Standard ECMA-262 3rd Edition - December 1999. This library \
    22     provides a parser and pretty printer for converting between Haskell values \
    23     and JSON.
     17    C->Haskell assists in the development of Haskell bindings to C libraries. \
     18    It extracts interface information from C header files and generates Haskell \
     19    code with foreign imports and marshaling. Unlike writing foreign imports by \
     20    hand (or using hsch2s), this ensures that C functions are imported with the \
     21    correct Haskell types.
    2422
    25 depends_lib-append  port:hs-mtl \
    26                     port:hs-syb \
    27                     port:hs-parsec
     23depends_lib-append  port:hs-language-c-03
     24
     25pre-activate {
     26    # deactivate hack added 2013-06-09
     27    if {![catch {set installed [lindex [registry_active c2hs] 0]}]} {
     28        # this port used to be called c2hs
     29        registry_deactivate_composite c2hs "" [list ports_nodepcheck 1]
     30    }
     31}
  • trunk/dports/devel/hs-language-c-03/Portfile

    r106836 r106872  
    55PortGroup           haskell 1.0
    66
    7 haskell.setup       language-c 0.4.2
    8 revision            2
    9 checksums           rmd160  9c20128ec44585bbb3a7079ba78b802c173dabb9 \
    10                     sha256  6384cf03a00008b65ad126c2582699b3de52de594468386d2c79cf63c926ee1e
     7haskell.setup       language-c 0.3.2.1
     8name                hs-language-c-03
     9checksums           rmd160  8a4b15dec3d1d498af5297c132d5d98ebcb88822 \
     10                    sha256  bdc6680ef0b66454989245b626c437d08e1b5378e522fa160b538a8bd03568e2
    1111
    1212license             BSD
Note: See TracChangeset for help on using the changeset viewer.