source: trunk/dports/lang/nhc98/Portfile

Last change on this file was 139469, checked in by jmr@…, 2 years ago

ncurses: update to 6.0, rev bump dependents due to new ABI

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 139469 2015-08-18 01:10:17Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name            nhc98
7version         1.20
8revision    1
9categories      lang
10maintainers     nomaintainer
11platforms       darwin
12license         {LGPL BSD}
13description     The nhc98 Haskell Compiler
14long_description \
15    nhc98 is a small, easy to install, standards-compliant \
16    compiler for Haskell 98, the lazy functional \
17    programming language. It is very portable, and aims to      \
18    produce small executables that run in small amounts of \
19    memory. It produces medium-fast code, and compilation \
20    is itself quite fast. It also comes with extensive tool     \
21    support for automatic compilation, foreign language \
22    interfacing, heap and time profiling, tracing, and \
23    debugging. Some of its advanced kinds of heap \
24    profiles are not found in any other Haskell compiler.
25
26homepage http://www.haskell.org/${name}
27master_sites \
28    http://www.cs.york.ac.uk/fp/${name} \
29    ftp://ftp.cs.york.ac.uk/pub/haskell/${name}
30
31distfiles ${name}src-${version}${extract.suffix}
32
33checksums \
34    md5 55c102408da8085aa56984af4151eb9c \
35    sha1 5bcfa0e8cc192afc5a54aab0bd4c1812dafa7b45 \
36    rmd160 011e723a956f2fb9029357d00ddb705c350309af
37
38depends_lib port:readline port:ncurses
39
40configure.args \
41    --buildwith=gcc \
42    +docs \
43    --docdir=${prefix}/share/doc/${name} \
44    --mandir=${prefix}/share/man/man1 \
45    --heap=8M
46
47patchfiles patch-Makefile.nhc98.diff
48
49post-patch {
50    reinplace "s|-\$(CC)|-\${BUILDCOMP}|g" ${worksrcpath}/Makefile
51}
52
53post-destroot {
54    set rexp1 "'s|${worksrcpath}/script|${prefix}/bin|g'"
55    set rexp2 "'s|${worksrcpath}/include|${prefix}/include/nhc98|g'"
56    set rfile "${destroot}${prefix}/lib/hmake/`${worksrcpath}/script/harch`/hmakerc"
57    system "sed -i '' -e ${rexp1} -e ${rexp2} ${rfile}"
58}
59
60livecheck.type   regex
61livecheck.regex  "Version (.*) released"
Note: See TracBrowser for help on using the repository browser.