# $Id$ PortSystem 1.0 name alex version 2.3.1 categories devel haskell maintainers gwright platforms 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 patchfiles 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.check regex livecheck.regex "version (.+) released"