1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name hs-terminfo |
---|
6 | set canonicalname terminfo |
---|
7 | version 0.2.2.1 |
---|
8 | categories devel haskell |
---|
9 | maintainers nomaintainer |
---|
10 | platforms darwin |
---|
11 | |
---|
12 | description Haskell bindings to the terminfo library. |
---|
13 | long_description \ |
---|
14 | This library provides an interface to the terminfo \ |
---|
15 | database (via bindings to the curses library). \ |
---|
16 | Terminfo allows programs to interact with a variety of \ |
---|
17 | terminals using a standard set of capabilities. |
---|
18 | |
---|
19 | set hackage http://hackage.haskell.org/packages/archive |
---|
20 | homepage http://code.haskell.org/${canonicalname} |
---|
21 | master_sites ${hackage}/${canonicalname}/${version} |
---|
22 | distname ${canonicalname}-${version} |
---|
23 | |
---|
24 | checksums md5 b29fb263e6d9ed80a3b7db77219b26e5 \ |
---|
25 | sha1 2ab6055bf473ac381ca7d9ff693841201614176e \ |
---|
26 | rmd160 c3f834819ae6f7098938c600491baf9189963548 |
---|
27 | |
---|
28 | depends_build port:ghc |
---|
29 | |
---|
30 | configure { system "cd ${worksrcpath} && runhaskell Setup configure --ghc --prefix=${prefix} --with-compiler=${prefix}/bin/ghc --enable-library-profiling" |
---|
31 | } |
---|
32 | |
---|
33 | build { system "cd ${worksrcpath} && runhaskell Setup build -v" |
---|
34 | } |
---|
35 | |
---|
36 | destroot { system "cd ${worksrcpath} && runhaskell Setup copy --copy-prefix=${destroot}${prefix}" |
---|
37 | system "cd ${worksrcpath} && runhaskell Setup register --gen-script" |
---|
38 | system "cd ${worksrcpath} && runhaskell Setup unregister --gen-script" |
---|
39 | |
---|
40 | file mkdir ${destroot}${prefix}/libexec/${name} |
---|
41 | file copy ${worksrcpath}/register.sh \ |
---|
42 | ${destroot}${prefix}/libexec/${name} |
---|
43 | file copy ${worksrcpath}/unregister.sh \ |
---|
44 | ${destroot}${prefix}/libexec/${name} |
---|
45 | } |
---|
46 | |
---|
47 | post-activate { system "${prefix}/libexec/${name}/register.sh" } |
---|
48 | |
---|
49 | #pre-deactivate { system "${prefix}/libexec/${name}/unregister.sh" } |
---|
50 | |
---|