a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping@macports.org $
PortSystem 1.0
name HaXml
version 1.13.2
categories devel
maintainers nomaintainer@macports.org
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 528bb3dfedf75b722e9b234c5ad6a316
depends_build port:ghc
post-patch { cd ${worksrcpath}
file delete src/Text/PrettyPrint/HughesPJ.hs
file delete src/Text/PrettyPrint
}
pre-configure { cd ${worksrcpath}
system "ghc -o Setup Setup.hs -package Cabal"
}
configure { cd ${worksrcpath}
system "./Setup configure --ghc --prefix=${prefix}"
}
build { cd ${worksrcpath}
system "./Setup build"
}
destroot { cd ${worksrcpath}
system "./Setup copy --copy-prefix=${destroot}${prefix}"
system "./Setup register --gen-script"
system "./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" }