# $Id: Portfile 131201 2015-01-06 19:52:47Z cal@macports.org $ PortSystem 1.0 name hat version 2.05 revision 1 categories devel license GPL maintainers nomaintainer platforms darwin description hat is the Haskell Tracer long_description \ Hat is a source-level tracer for Haskell 98, the \ standard lazy functional programming language. Hat is \ a tool that gives the user access to otherwise \ invisible information about a computation. \ \ Hat is portable between compilers: it works with both \ ghc and nhc98. It also supports various language \ extensions, such as the FFI, multi-parameter type \ classes, functional dependencies, and hierarchical \ module namespaces. homepage http://www.cs.york.ac.uk/fp/hat/ master_sites ${homepage} checksums md5 027a74fe438f51529bc781d4dfc8ff40 depends_build port:ghc \ port:hmake depends_lib lib:libglib.1:glib1 depends_run port:xterm notes "Despite being compatible with both nhc98 and ghc, the\ port depends on the more featureful ghc." configure.args --mandir=${prefix}/share/man/man1 post-destroot { file delete ${destroot}${prefix}/bin/harch } post-activate { set ghcversion [ exec ghc --version | sed "s|^.*version ||" ] reinplace "s|${destroot}${prefix}|${prefix}|g" ${prefix}/lib/ghc-${ghcversion}/package.conf ui_msg "hat requires that you add ${x11prefix}/bin to your PATH" } post-deactivate { system "ghc-pkg unregister ${name}-${version}" } livecheck.type regex livecheck.url ${homepage}download.html livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}