nhc98 version 1.18 for Mac OS X 10.5 Leopard
Friday the 16th of May, 2008

    nhc98  most recent diff


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



      # $Id: Portfile 32946 2008-01-15 12:10:40Z ryandesign macports.org $

      PortSystem 1.0
      Name: nhc98
      Version: 1.18
      revision 4
      Category: lang
      Maintainers: nomaintainer
      Platform: darwin
      Description: The nhc98 Haskell Compiler
      Long Description: nhc98 is a small, easy to install, standards-compliant compiler for Haskell 98, the lazy functional programming language. It is very portable, and aims to produce small executables that run in small amounts of memory. It produces medium-fast code, and compilation is itself quite fast. It also comes with extensive tool support for automatic compilation, foreign language interfacing, heap and time profiling, tracing, and debugging. (Some of its advanced kinds of heap profiles are not found in any other Haskell compiler.)

      Homepage: http://www.haskell.org/${name}/
      master_sites http://www.cs.york.ac.uk/fp/${name}/ ftp://ftp.cs.york.ac.uk/pub/haskell/${name}/

      distfiles ${name}src-${version}${extract.suffix} ${name}-${version}-library-interfaces${extract.suffix}

      checksums ${name}src-${version}${extract.suffix} md5 f38b74481ec01a066cc9314b7bd18c90 ${name}-${version}-library-interfaces${extract.suffix} md5 f99f413a85462fe719ea634fd319d94f

      patchfiles patch-cLowUnboxedArray.c patch-confhc patch-config-errno.c patch-errnogen.c

      configure.args --mandir=${prefix}/share/man/man1 --buildwith=gcc

      build { if {${os.platform} == "darwin" && ${os.arch} == "i386"} {
      ui_error "nhc98 is not supported on OS X i386 yet"
      return 1
      }

      system "cd ${worksrcpath} && ulimit -s unlimited && make"
      }

      post-destroot { file delete -force ${destroot}${prefix}/lib/hmake

      file delete ${destroot}${prefix}/bin/cpphs
      file delete ${destroot}${prefix}/bin/hi
      file delete ${destroot}${prefix}/bin/hmake
      file delete ${destroot}${prefix}/bin/hmake-config

      file rename ${destroot}${prefix}/bin/harch ${destroot}${prefix}/bin/harch-${name}

      #
      # NB - The greencard-nhc98 and hp2graph scripts are hardlinks to
      # the same file. Change one, all are changed.
      #
      reinplace "s|${prefix}/bin/harch|${prefix}/bin/harch\-nhc98|" ${destroot}${prefix}/bin/greencard\-nhc98
      reinplace "s|\{NHC98BINDIR\}/harch|\{NHC98BINDIR\}/harch\-nhc98|" ${destroot}${prefix}/bin/hood
      reinplace "s|NHC98BINDIR/harch|NHC98BINDIR/harch\-nhc98|" ${destroot}${prefix}/bin/nhc98

      file delete ${destroot}${prefix}/share/man/man1/harch.1
      file delete ${destroot}${prefix}/share/man/man1/hi.1
      file delete ${destroot}${prefix}/share/man/man1/hmake.1
      }

      post-activate { system "find ${prefix}/lib/${name} -name \"*.a\" -exec ranlib -s {} \\;"
      }

    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/nhc98
      % sudo port install nhc98
      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 nhc98
      ---> Verifying checksum for nhc98
      ---> Extracting nhc98
      ---> Configuring nhc98
      ---> Building nhc98 with target all
      ---> Staging nhc98 into destroot
      ---> Installing nhc98
    - 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 nhc98 with these commands:
      %  man nhc98
      % apropos nhc98
      % which nhc98
      % locate nhc98

     Where to find more information:

    Darwin Ports



    image test