1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name hs-utf8-string |
---|
6 | set canonicalname utf8-string |
---|
7 | version 0.3.3 |
---|
8 | categories devel haskell |
---|
9 | maintainers Shin-Cheng Mu |
---|
10 | platforms darwin |
---|
11 | |
---|
12 | description utf8-string: Support for reading and writing UTF8 Strings |
---|
13 | long_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 | |
---|
19 | homepage http://hackage.haskell.org |
---|
20 | master_sites ${homepage}/packages/archive/${canonicalname}/${version} |
---|
21 | distname ${canonicalname}-${version} |
---|
22 | |
---|
23 | checksums md5 f311e85aebccffb272ebf3bd49a28c8f \ |
---|
24 | sha1 dd99f348a4da7d6c4a3245c538ed3b8ebe0fbe58 \ |
---|
25 | rmd160 d9dfccdff9a93f0a2cf4453bb1d595ab8da57759 |
---|
26 | |
---|
27 | depends_build port:ghc |
---|
28 | |
---|
29 | configure { system "cd ${worksrcpath} && runhaskell Setup configure --ghc --prefix=${prefix} --enable-library-profiling --with-compiler=${prefix}/bin/ghc" |
---|
30 | } |
---|
31 | |
---|
32 | build { system "cd ${worksrcpath} && runhaskell Setup build" |
---|
33 | } |
---|
34 | destroot { 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 | |
---|
45 | post-activate { system "${prefix}/libexec/${name}/register.sh" } |
---|
46 | |
---|
47 | #pre-deactivate { system "${prefix}/libexec/${name}/unregister.sh" } |
---|
48 | |
---|