Ticket #17532: Portfile

File Portfile, 1.8 KB (added by scm@…, 16 years ago)
Line 
1# $Id$
2
3PortSystem 1.0
4
5name            hs-utf8-string
6set canonicalname       utf8-string
7version         0.3.3
8categories      devel haskell
9maintainers     Shin-Cheng Mu
10platforms       darwin
11
12description     utf8-string: Support for reading and writing UTF8 Strings
13long_description        \
14                A UTF8 layer for IO and Strings. The utf8-string \
15                package provides operations for encoding UTF8 \
16                strings to Word8 lists and back, and for reading and \
17                writing UTF8 without truncation.
18
19homepage        http://hackage.haskell.org
20master_sites    ${homepage}/packages/archive/${canonicalname}/${version}
21distname        ${canonicalname}-${version}
22
23checksums       md5     f311e85aebccffb272ebf3bd49a28c8f                \
24                sha1    dd99f348a4da7d6c4a3245c538ed3b8ebe0fbe58        \
25                rmd160  d9dfccdff9a93f0a2cf4453bb1d595ab8da57759
26
27depends_build   port:ghc
28
29configure       { system "cd ${worksrcpath} && runhaskell Setup configure --ghc --prefix=${prefix} --enable-library-profiling --with-compiler=${prefix}/bin/ghc"
30                }
31
32build           { system "cd ${worksrcpath} && runhaskell Setup build"
33                }
34destroot        { system "cd ${worksrcpath} && runhaskell Setup copy --copy-prefix=${destroot}${prefix}"
35                  system "cd ${worksrcpath} && runhaskell Setup register   --gen-script"
36                  system "cd ${worksrcpath} && runhaskell       Setup unregister --gen-script"
37
38                  file mkdir ${destroot}${prefix}/libexec/${name}
39                  file copy ${worksrcpath}/register.sh \
40                            ${destroot}${prefix}/libexec/${name}
41                  file copy ${worksrcpath}/unregister.sh \
42                            ${destroot}${prefix}/libexec/${name}
43                }
44
45post-activate   { system "${prefix}/libexec/${name}/register.sh" }
46
47#pre-deactivate { system "${prefix}/libexec/${name}/unregister.sh" }
48