Ticket #17548: Portfile

File Portfile, 1.8 KB (added by scm@…, 16 years ago)
Line 
1# $Id$
2
3PortSystem 1.0
4
5name            hs-terminfo
6set canonicalname       terminfo
7version         0.2.2.1
8categories      devel haskell
9maintainers     nomaintainer
10platforms       darwin
11
12description     Haskell bindings to the terminfo library.
13long_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
19set hackage     http://hackage.haskell.org/packages/archive
20homepage        http://code.haskell.org/${canonicalname}
21master_sites    ${hackage}/${canonicalname}/${version}
22distname        ${canonicalname}-${version}
23
24checksums       md5     b29fb263e6d9ed80a3b7db77219b26e5                \
25                sha1    2ab6055bf473ac381ca7d9ff693841201614176e        \
26                rmd160  c3f834819ae6f7098938c600491baf9189963548
27
28depends_build   port:ghc
29
30configure       { system "cd ${worksrcpath} && runhaskell Setup configure --ghc --prefix=${prefix} --with-compiler=${prefix}/bin/ghc --enable-library-profiling"
31                }
32
33build           { system "cd ${worksrcpath} && runhaskell Setup build -v"
34                }
35
36destroot        { 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
47post-activate   { system "${prefix}/libexec/${name}/register.sh" }
48
49#pre-deactivate { system "${prefix}/libexec/${name}/unregister.sh" }
50