Changeset 106826


Ignore:
Timestamp:
Jun 9, 2013, 12:10:53 AM (4 years ago)
Author:
cal@…
Message:

cpphs: rename to hs-cpphs, update to 1.16, use haskell PortGroup, rebuild against newer GHC

Location:
trunk/dports/devel
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/cpphs/Portfile

    r85193 r106826  
     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            cpphs
    6 version         1.3
    7 categories      devel
    8 maintainers     gwright
    9 platforms       darwin
    10 description     cpp implemented in Haskell.
    11 long_description        \
    12                 cpphs is a liberalised re-implementation of cpp,        \
    13                 the C pre-processor, in Haskell.
    14 
    15 homepage        http://www.haskell.org/cpphs/
    16 master_sites    http://www.cs.york.ac.uk/fp/${name}/
    17 
    18 checksums       md5 fe1f36d1cbc2ca4a8b769d1f9c2f63bc
    19 
    20 depends_lib     port:ghc
    21 
    22 pre-configure   {
    23                   system "ghc -o ${worksrcpath}/Setup ${worksrcpath}/Setup.hs -package Cabal"
    24                 }
    25 
    26 configure       {
    27                   system "cd ${worksrcpath} && ${worksrcpath}/Setup configure --ghc --prefix=${prefix}"
    28                 }
    29 
    30 build           {
    31                   system "cd ${worksrcpath} && ${worksrcpath}/Setup build -v"
    32                 }
    33 
    34 destroot        {
    35 
    36                   system "cd ${worksrcpath} && ${worksrcpath}/Setup copy --copy-prefix=${destroot}${prefix}"
    37                   system "cd ${worksrcpath} && ${worksrcpath}/Setup register --gen-script"
    38                   system "cd ${worksrcpath} && ${worksrcpath}/Setup unregister --gen-script"
    39 
    40                   file mkdir ${destroot}${prefix}/libexec/${name}
    41                   file copy ${worksrcpath}/register.sh \
    42                         ${destroot}${prefix}/libexec/${name}
    43                   file copy ${worksrcpath}/unregister.sh \
    44                         ${destroot}${prefix}/libexec/${name}
    45                 }
    46 
    47 post-activate   { system "${prefix}/libexec/${name}/register.sh" }
    48 
    49 pre-deactivate { system "${prefix}/libexec/${name}/unregister.sh" }
     6name            cpphs
     7version         1.3
     8license         Permissive
     9categories      devel haskell
     10replaced_by     hs-cpphs
     11PortGroup       obsolete 1.0
Note: See TracChangeset for help on using the changeset viewer.