Ticket #17549: Portfile

File Portfile, 1.9 KB (added by scm@…, 16 years ago)
Line 
1# $Id$
2
3PortSystem 1.0
4
5name            hs-haskeline
6set canonicalname       haskeline
7version         0.3.2
8categories      devel haskell
9maintainers     nomaintainer
10platforms       darwin
11
12description     A command-line interface for user input, written in Haskell.
13long_description        \
14                Haskeline provides a user interface for line input in \
15                command-line programs. This library is similar in purpose \
16                to readline, but since it is written in Haskell it is \
17                (hopefully) more easily used in other Haskell programs. \
18                \
19                Haskeline runs both on POSIX-compatible systems and on \
20                Windows (under MinGW).
21
22set hackage     http://hackage.haskell.org/packages/archive
23homepage        http://code.haskell.org/${canonicalname}
24master_sites    ${hackage}/${canonicalname}/${version}
25distname        ${canonicalname}-${version}
26
27checksums       md5     19baa8890a8a4f9d93a4a2d961c06f26                \
28                sha1    f5801384a239c4f667d3df172dba600ecb9a39c3        \
29                rmd160  6f50e7a2d5e7c91644b6de032d34bde4fdb4ec70
30
31depends_build   port:ghc port:hs-terminfo port:hs-utf8-string
32
33configure       { system "cd ${worksrcpath} && runhaskell Setup configure --ghc --prefix=${prefix} --with-compiler=${prefix}/bin/ghc --enable-library-profiling"
34                }
35
36build           { system "cd ${worksrcpath} && runhaskell Setup build -v"
37                }
38
39destroot        { system "cd ${worksrcpath} && runhaskell Setup copy --copy-prefix=${destroot}${prefix}"
40                  system "cd ${worksrcpath} && runhaskell Setup register   --gen-script"
41                  system "cd ${worksrcpath} && runhaskell Setup unregister --gen-script"
42
43                  file mkdir ${destroot}${prefix}/libexec/${name}
44                  file copy ${worksrcpath}/register.sh \
45                            ${destroot}${prefix}/libexec/${name}
46                  file copy ${worksrcpath}/unregister.sh \
47                            ${destroot}${prefix}/libexec/${name}
48                }
49
50post-activate   { system "${prefix}/libexec/${name}/register.sh" }
51
52#pre-deactivate { system "${prefix}/libexec/${name}/unregister.sh" }
53