source: trunk/dports/devel/HaXml/Portfile

Last change on this file was 131201, checked in by cal@…, 3 years ago

revbump all haskell ports, follows r131199, #44891

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 131201 2015-01-06 19:52:47Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            HaXml
6version         1.20.2
7revision        1
8categories      devel
9license         LGPL-2.1
10maintainers     nomaintainer
11platforms       darwin
12
13description     XML utilities for haskell
14long_description        \
15                HaXml is a collection of utilities for parsing,         \
16                filtering, transforming, and generating XML documents   \
17                using Haskell. Its basic facilities include:            \
18                                                                        \
19                    * a parser for XML,                                 \
20                    * a separate error-correcting parser for HTML,      \
21                    * an XML validator,                                 \
22                    * pretty-printers for XML and HTML.
23
24homepage        http://www.cs.york.ac.uk/fp/${name}
25master_sites    http://www.haskell.org/${name}/
26
27checksums       md5     9635c348e70c0446e74783e7c267050c \
28                sha1    85500aff02672f261dce4a9b21463368c164de97 \
29                rmd160  5298987b9ac73d56d8111e55105168cc3c63bef8
30
31depends_lib     port:ghc \
32                port:hs-polyparse
33
34pre-configure   { system "cd ${worksrcpath} && ghc -o Setup Setup.hs -package Cabal"
35                }
36
37configure       { system "cd ${worksrcpath} && ./Setup configure --ghc --prefix=${prefix}"
38                }
39
40build           { system "cd ${worksrcpath} && ./Setup build"
41                }
42
43destroot        { system "cd ${worksrcpath} && ./Setup copy --copy-prefix=${destroot}${prefix}"
44                  system "cd ${worksrcpath} && ./Setup register   --gen-script"
45                  system "cd ${worksrcpath} && ./Setup unregister --gen-script"
46
47                  file mkdir ${destroot}${prefix}/libexec/${name}
48                  file copy ${worksrcpath}/register.sh \
49                            ${destroot}${prefix}/libexec/${name}
50                  file copy ${worksrcpath}/unregister.sh \
51                            ${destroot}${prefix}/libexec/${name}
52                }
53
54post-activate   { system "${prefix}/libexec/${name}/register.sh" }
55
56pre-deactivate  { system "${prefix}/libexec/${name}/unregister.sh" }
57
58universal_variant no
59
60livecheck.type  regex
61livecheck.url   ${homepage}
62livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)
Note: See TracBrowser for help on using the repository browser.