cpphs version 1.3 for Mac OS X 10.5 Leopard
Sunday the 11th of May, 2008

    cpphs  most recent diff


      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
      Google
      Web Darwinports.com



      # $Id: Portfile 20837 2006-12-02 17:39:21Z gwright macports.org $

      PortSystem 1.0
      Name: cpphs
      Version: 1.3
      Category: devel
      Maintainers: gwright macports.org
      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 { cd ${worksrcpath}
      system "ghc -o Setup Setup.hs -package Cabal"
      }

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

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

      destroot { cd ${worksrcpath}

      system "./Setup copy --copy-prefix=${destroot}${prefix}"
      system "./Setup register --gen-script"
      system "./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



    image test