# $Id: Portfile,v 1.2 2006/07/02 08:03:16 mww Exp $

PortSystem       1.0
name		     latexdiff
version		     0.4
categories	     tex
platforms        darwin
maintainers	     darwinports@opendarwin.org
description	     determine and mark up significant differences between latex files
long_description latexdiff is a Perl script, which compares two latex files \
                 and marks up significant differences between them (i.e. a \
                 diff for latex files). Various options are available for \
                 visual markup using standard latex packages such as \
                 color.sty. Changes not directly affecting visible text, for \
                 example in formatting commands, are still marked in the latex \
                 source.
homepage         ftp://tug.ctan.org/pub/tex-archive/support/
master_sites     ftp://tug.ctan.org/pub/tex-archive/support/
checksums	     md5 dbe6ec4e50aef70f8319ad87e9694b2a
dist_subdir      ${name}/${version}
distname         ${name}
use_zip          yes

depends_run      bin:perl:perl5.8

configure {
	reinplace "s|/usr/bin/perl -w|/usr/bin/env perl|g" \
		${worksrcpath}/latexdiff-so ${worksrcpath}/latexdiff-vc \
		${worksrcpath}/latexrevise
}

build            { }

destroot.destdir INSTALLPATH=${destroot}${prefix} \
                 INSTALLMANPATH=${destroot}${prefix}/share/man
