source: trunk/dports/devel/hat/Portfile @ 14170

Last change on this file since 14170 was 14170, checked in by gwright, 12 years ago

Fix to build on updated ghc.
Bug:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

  • Property svn:eol-style set to native
File size: 1.7 KB
Line 
1# $Id: Portfile,v 1.4 2005/09/20 08:15:15 gwright Exp $
2
3PortSystem 1.0
4name            hat
5version         2.04
6revision        2
7categories      devel
8maintainers     gwright@opendarwin.org
9platforms       darwin
10
11description     hat is the Haskell Tracer
12long_description        \
13                Hat is a source-level tracer for Haskell 98, the        \
14                standard lazy functional programming language. Hat is   \
15                a tool that gives the user access to otherwise          \
16                invisible information about a computation.              \
17                                                                        \
18                Hat is portable between compilers: it works with both   \
19                ghc and nhc98. It also supports various language        \
20                extensions, such as the FFI, multi-parameter type       \
21                classes, functional dependencies, and hierarchical      \
22                module namespaces.
23
24homepage        http://www.cs.york.ac.uk/fp/hat/
25master_sites    ${homepage}
26
27checksums       md5 11515d25ed8c760bfe1238fad36ad18f
28
29patchfiles      patch-confhc-hat
30
31depends_build   bin:ghc:ghc \
32                bin:hmake:hmake
33
34depends_lib     lib:libglib.1:glib1
35
36depends_run     bin:xterm:XFree86
37
38#user_notes     Despite being compatible with both nhc98 and ghc, the \
39#               port depends on the more featureful ghc.
40#
41#               If the message "resize: command not found" appears,
42#               you need to add /usr/X11R6/bin to your PATH.
43#
44
45configure.args  --mandir=${prefix}/share/man/man1
46
47post-destroot   { file delete ${destroot}/${prefix}/bin/harch }
48
49post-activate   { set ghcversion [ exec ghc --version | sed "s|^.*version ||" ]
50                  system "ranlib ${prefix}/lib/ghc-${ghcversion}/libHShat.a"
51
52                  reinplace "s|${destroot}${prefix}|${prefix}|g" ${prefix}/lib/ghc-${ghcversion}/package.conf
53
54                  ui_msg "hat requires that you add /usr/X11R6/bin to your PATH"
55                }
56
57
58# When the post-uninstall target is written, this should be executed:
59#post-uninstall { system "ghc-pkg unregister ${name}-${version}" }
60
Note: See TracBrowser for help on using the repository browser.