Portfile

# $Id: Portfile 21841 2007-02-09 16:15:14Z gwright@macports.org $

PortSystem 1.0
name lhs2tex
version 1.12
revision 1
categories print textproc
platforms darwin
maintainers gwright@macports.org
description Literate Haskell to LaTeX convertor
long_description \
lhs2TeX is a preprocessor to generate LaTeX code \
from literate Haskell sources.

homepage http://www.informatik.uni-bonn.de/~loeh/lhs2tex/
master_sites ${homepage}

use_bzip2 yes

checksums md5 1bc982e96f19201aaf1c39c1d4b5e358

depends_build port:ghc \
port:teTeX

configure { cd ${worksrcpath}
system "runhaskell Setup configure --ghc --prefix=${prefix}"
}

build { cd ${worksrcpath}
system "runhaskell Setup build -v"
}

destroot { cd ${worksrcpath}
system "runhaskell Setup copy --copy-prefix=${destroot}${prefix}"
}