Alex version 2.3.1 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    version 2.3.1

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


      The alex Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0
      Name: alex
      Version: 2.3.1
      Category: devel haskell
      Maintainers: gwright
      Platform: darwin
      Description: A Lexical Analyzer Generator for Haskell
      Long Description: Alex is a tool for generating lexical analysers in Haskell, given a description of the tokens to be recognised in the form of regular expressions. It is similar to the tools lex or flex for C/C++.

      Homepage: http://www.haskell.org/alex/
      Master Sites: http://hackage.haskell.org/packages/archive/${name}/${version}

      Checksums: md5 a8c26af3370388297cee4b8c767d72d9 sha1 0dbd9d34849602f9b59d30122b27727d6f79fc4f rmd160 cee02283325638fc9929ca6ae40c153b626d4b69

      depends_build port:ghc

      Patch Files: patch-alex.cabal.diff

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

      build {
      system "cd ${worksrcpath} && runhaskell Setup build"
      }

      destroot {
      system "cd ${worksrcpath} && runhaskell Setup copy --copy-prefix=${destroot}${prefix}"
      }

      livecheck.type regex
      livecheck.regex "version (.+) released"

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.