# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
description XML utilities for haskell
HaXml is a collection of utilities for parsing,\
filtering, transforming, and generating XML documents\
using Haskell. Its basic facilities include:\
a separate error-correcting parser for HTML,\
and pretty-printers for XML and HTML.
homepage http://projects.haskell.org/${name}
checksums md5 9635c348e70c0446e74783e7c267050c \
sha1 85500aff02672f261dce4a9b21463368c164de97 \
rmd160 5298987b9ac73d56d8111e55105168cc3c63bef8
system "cd ${worksrcpath} && ghc -o Setup Setup.hs -package Cabal"
system "cd ${worksrcpath} && ./Setup configure --ghc --prefix=${prefix}"
system "cd ${worksrcpath} && ./Setup build"
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}
system "${prefix}/libexec/${name}/register.sh"
system "${prefix}/libexec/${name}/unregister.sh"