# $Id: Portfile 50572 2009-05-04 19:19:09Z jeremyhu@macports.org $ PortSystem 1.0 name hat version 2.05 categories devel 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 #user_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" } # When the post-uninstall target is written, this should be executed: #post-uninstall { system "ghc-pkg unregister ${name}-${version}" }