Cpphs version 1.3 - How to Download and Install on Mac OS X
Monday the 23rd of November, 2009

    version 1.3

      View the most recent changes for the cpphs port at: cpphs.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for cpphs.
      The raw portfile for cpphs 1.3 is located here:
      http://cpphs.darwinports.com/dports/devel/cpphs/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/cpphs


      The cpphs Portfile 51294 2009-05-22 09:18:21Z toby macports.org $

      PortSystem 1.0
      Name: cpphs
      Version: 1.3
      Category: devel
      Maintainers: gwright
      Platform: darwin
      Description: cpp implemented in Haskell.
      Long Description: cpphs is a liberalised re-implementation of cpp, the C pre-processor, in Haskell.

      Homepage: http://www.haskell.org/cpphs/
      Master Sites: http://www.cs.york.ac.uk/fp/${name}/

      Checksums: md5 fe1f36d1cbc2ca4a8b769d1f9c2f63bc

      depends_build port:ghc

      pre-configure {
      system "ghc -o ${worksrcpath}/Setup ${worksrcpath}/Setup.hs -package Cabal"
      }

      configure {
      system "cd ${worksrcpath} && ${worksrcpath}/Setup configure --ghc --prefix=${prefix}"
      }

      build {
      system "cd ${worksrcpath} && ${worksrcpath}/Setup build -v"
      }

      destroot {

      system "cd ${worksrcpath} && ${worksrcpath}/Setup copy --copy-prefix=${destroot}${prefix}"
      system "cd ${worksrcpath} && ${worksrcpath}/Setup register --gen-script"
      system "cd ${worksrcpath} && ${worksrcpath}/Setup unregister --gen-script"

      file mkdir ${destroot}${prefix}/libexec/${name}
      file copy ${worksrcpath}/register.sh ${destroot}${prefix}/libexec/${name}
      file copy ${worksrcpath}/unregister.sh ${destroot}${prefix}/libexec/${name}
      }

      post-activate { system "${prefix}/libexec/${name}/register.sh" }

      #pre-deactivate { system "${prefix}/libexec/${name}/unregister.sh" }


    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/cpphs
      % sudo port install cpphs
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching cpphs
      ---> Verifying checksum for cpphs
      ---> Extracting cpphs
      ---> Configuring cpphs
      ---> Building cpphs with target all
      ---> Staging cpphs into destroot
      ---> Installing cpphs
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using cpphs with these commands:
      %  man cpphs
      % apropos cpphs
      % which cpphs
      % locate cpphs

     Where to find more information:

    Darwin Ports



    Lightbox this page.