1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name hs-haskeline |
---|
6 | set canonicalname haskeline |
---|
7 | version 0.3.2 |
---|
8 | categories devel haskell |
---|
9 | maintainers nomaintainer |
---|
10 | platforms darwin |
---|
11 | |
---|
12 | description A command-line interface for user input, written in Haskell. |
---|
13 | long_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 | |
---|
22 | set hackage http://hackage.haskell.org/packages/archive |
---|
23 | homepage http://code.haskell.org/${canonicalname} |
---|
24 | master_sites ${hackage}/${canonicalname}/${version} |
---|
25 | distname ${canonicalname}-${version} |
---|
26 | |
---|
27 | checksums md5 19baa8890a8a4f9d93a4a2d961c06f26 \ |
---|
28 | sha1 f5801384a239c4f667d3df172dba600ecb9a39c3 \ |
---|
29 | rmd160 6f50e7a2d5e7c91644b6de032d34bde4fdb4ec70 |
---|
30 | |
---|
31 | depends_build port:ghc port:hs-terminfo port:hs-utf8-string |
---|
32 | |
---|
33 | configure { system "cd ${worksrcpath} && runhaskell Setup configure --ghc --prefix=${prefix} --with-compiler=${prefix}/bin/ghc --enable-library-profiling" |
---|
34 | } |
---|
35 | |
---|
36 | build { system "cd ${worksrcpath} && runhaskell Setup build -v" |
---|
37 | } |
---|
38 | |
---|
39 | destroot { 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 | |
---|
50 | post-activate { system "${prefix}/libexec/${name}/register.sh" } |
---|
51 | |
---|
52 | #pre-deactivate { system "${prefix}/libexec/${name}/unregister.sh" } |
---|
53 | |
---|