# $Id: Portfile 131201 2015-01-06 19:52:47Z cal@macports.org $ PortSystem 1.0 name HaXml version 1.20.2 revision 1 categories devel license LGPL-2.1 maintainers nomaintainer platforms darwin description XML utilities for haskell long_description \ HaXml is a collection of utilities for parsing, \ filtering, transforming, and generating XML documents \ using Haskell. Its basic facilities include: \ \ * a parser for XML, \ * a separate error-correcting parser for HTML, \ * an XML validator, \ * pretty-printers for XML and HTML. homepage http://www.cs.york.ac.uk/fp/${name} master_sites http://www.haskell.org/${name}/ checksums md5 9635c348e70c0446e74783e7c267050c \ sha1 85500aff02672f261dce4a9b21463368c164de97 \ rmd160 5298987b9ac73d56d8111e55105168cc3c63bef8 depends_lib port:ghc \ port:hs-polyparse pre-configure { system "cd ${worksrcpath} && ghc -o Setup Setup.hs -package Cabal" } configure { system "cd ${worksrcpath} && ./Setup configure --ghc --prefix=${prefix}" } build { system "cd ${worksrcpath} && ./Setup build" } destroot { system "cd ${worksrcpath} && ./Setup copy --copy-prefix=${destroot}${prefix}" system "cd ${worksrcpath} && ./Setup register --gen-script" system "cd ${worksrcpath} && ./Setup unregister --gen-script" file mkdir ${destroot}${prefix}/libexec/${name} file copy ${worksrcpath}/register.sh \ ${destroot}${prefix}/libexec/${name} file copy ${worksrcpath}/unregister.sh \ ${destroot}${prefix}/libexec/${name} } post-activate { system "${prefix}/libexec/${name}/register.sh" } pre-deactivate { system "${prefix}/libexec/${name}/unregister.sh" } universal_variant no livecheck.type regex livecheck.url ${homepage} livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)