Ticket #38556: cpphs-1.16.diff

File cpphs-1.16.diff, 3.9 KB (added by larryv (Lawrence Velázquez), 11 years ago)
  • trunk/dports/devel/cpphs/Portfile

    diff --git a/trunk/dports/devel/cpphs/Portfile b/trunk/dports/devel/cpphs/Portfile
    a b  
    33PortSystem 1.0
    44
    55name            cpphs
     6replaced_by     hs-cpphs
     7PortGroup       obsolete 1.0
     8
    69version         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.
     10revision        1
    1411
    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" }
     12categories      devel haskell
  • (a) a/trunk/dports/devel/cpphs vs. (b) b/trunk/dports/devel/hs-cpphs/Portfile

    diff --git a/trunk/dports/devel/cpphs b/trunk/dports/devel/hs-cpphs/Portfile
    copy from trunk/dports/devel/cpphs
    copy to trunk/dports/devel/hs-cpphs/Portfile
    a b  
    11# $Id$
    22
    33PortSystem 1.0
     4PortGroup haskell 1.0
    45
    5 name            cpphs
    6 version         1.3
    7 categories      devel
     6haskell.setup   cpphs 1.16
    87maintainers     gwright
    98platforms       darwin
     9license         GPL-2 LGPL-2.1
    1010description     cpp implemented in Haskell.
    1111long_description        \
    1212                cpphs is a liberalised re-implementation of cpp,        \
    1313                the C pre-processor, in Haskell.
    1414
    1515homepage        http://www.haskell.org/cpphs/
    16 master_sites    http://www.cs.york.ac.uk/fp/${name}/
    1716
    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" }
     17checksums       rmd160  4b8d10b9f52e8bcbc2fa35c398fd853cce37af71 \
     18                sha256  b7562ee6dd504f210a363c6bb7ea542e67f0a6ad75aca66080e66801870e69bb