# $Id: Portfile 50980 2009-05-14 19:41:55Z and.damore@macports.org $

PortSystem 1.0

name		lhs2tex
version		1.13
categories	textproc haskell
platforms	darwin
maintainers	gwright
description	Literate Haskell to LaTeX convertor
long_description	\
		lhs2TeX is a preprocessor to generate LaTeX code	\
		from literate Haskell sources.

homepage	http://people.cs.uu.nl/andres/${name}/
master_sites	${homepage}

checksums	md5     1173dbe6440f24918f3dc80d776e1f18		\
		sha1    bd5fd4d1a5a4f76022cec73dadf0e81caf420866	\
		rmd160  9b6be85e5198b801d3555708ef94880c2b5d4287


depends_build	port:ghc	\
		port:texlive

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

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

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

