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

PortSystem 1.0
name		breqn
version		094
categories	tex
platforms	darwin
maintainers	gwright
description	Automatic equation breaking in TeX.
long_description	\
		Automatic line breaking of displayed equations in TeX.

homepage	http://www.ctan.org/tex-archive/help/Catalogue/entries/breqn.html
master_sites	http://www.kilohotel.com/misc/ \
		http://www.artfiles.org/gentoo.org/distfiles/ \
		ftp://ftp.ams.org/pub/tex/
checksums	md5 61f8bcbfd475203fd977ee9589810780

extract.suffix	.tgz
distname	${name}${version}

depends_lib	bin:texhash:texlive

configure	{ }
build		{ }

destroot	{ set breqndest	${destroot}${prefix}/share/texmf-local/tex/latex/${name}
		  file mkdir ${breqndest}
		  file copy ${worksrcpath}/breqn.sty		${breqndest}
		  file copy ${worksrcpath}/breqndoc.dvi		${breqndest}
		  file copy ${worksrcpath}/cmbase.sym		${breqndest}
		  file copy ${worksrcpath}/eqbreaks.dvi		${breqndest}
		  file copy ${worksrcpath}/eqlayouts.dvi	${breqndest}
		  file copy ${worksrcpath}/flexisym.sty		${breqndest}
		  file copy ${worksrcpath}/mathstyle.sty	${breqndest}
		  file copy ${worksrcpath}/msabm.sym		${breqndest}
		}

post-activate	{ system "texhash" }

