# $Id: Portfile 90969 2012-03-20 13:04:24Z jmr@macports.org $

PortSystem  1.0

name		advi
version     	1.10.2
categories  	x11 graphics
license     	LGPL
maintainers 	nomaintainer
platforms   	darwin
description 	TeX DVI previewer
long_description \
    Active-DVI is an O'Caml Unix-platform DVI previewer and a \
    programmable presenter for slides written in LaTeX.

homepage        http://advi.inria.fr/

master_sites	${homepage}

livecheck.type	regex
livecheck.url	${homepage}
livecheck.regex	Version (\[0-9.\]+)

checksums	rmd160 7609b68e1a05b1057bb8f5c9e5c413c5d8111263 \
            sha256 01556d20896db57c1d05961b2dd48a44d2fbca2adb10d4a9ded732bcf6cb0cc6

# you can install hevea if you want additional functionality
depends_run \
	path:bin/kpsewhich:texlive-basic

depends_build \
    port:ocaml-findlib \
    port:ImageMagick

depends_lib \
	port:ocaml \
	port:camlimages \
	port:xorg-libXinerama \
	port:xpm \
	port:freetype

post-activate {
	system "${prefix}/bin/mktexlsr"
}
post-deactivate {
    system "${prefix}/bin/mktexlsr"
}
