# $Id: Portfile 64558 2010-03-09 09:10:48Z takanori@macports.org $

PortSystem 1.0

name           texlive_texmf-docs
version        2007
categories     tex
maintainers    nomaintainer
description    Docs for texlive
long_description   TeX Live is an easy way to get up and running with TeX. \
     It provides a comprehensive TeX system with binaries for most flavors \
     of Unix, including GNU/Linux, and also Windows. It includes all the \
     major TeX-related programs, macro packages, and fonts that are free \
     software, including support for many languages around the world.

homepage       http://www.tug.org/texlive/
platforms      darwin

depends_run    port:texlive_base

conflicts      pTeX

master_sites   openbsd:distfiles \
			   http://students.dec.bournemouth.ac.uk/ebarrett/texlive/distfiles/
distname       ${name}-${version}
worksrcdir     ${name}-${version}

checksums      md5 9065e19a4d3cace19ef0d7442936d80d \
               sha1 44bab787daff2575e2c38b9c26fed2f5319f467c

use_configure  no

build          {
    delete ${worksrcpath}/texmf/doc/bibtex8/00readme.txt \
        ${worksrcpath}/texmf/doc/bibtex8/HISTORY \
        ${worksrcpath}/texmf/doc/bibtex8/csfile.txt \
        ${worksrcpath}/texmf/doc/bibtex8/file_id.diz \
        ${worksrcpath}/texmf/doc/tetex/TETEXDOC.pdf \
        ${worksrcpath}/texmf/doc/tetex/teTeX-FAQ
}

destroot       {
    copy ${worksrcpath}/texmf ${destroot}${prefix}/share
    copy ${worksrcpath}/texmf-dist ${destroot}${prefix}/share
}

post-activate {
    system "mktexlsr"
}

livecheck.type      regex
livecheck.url       ${homepage}acquire.html
livecheck.regex     "TeX Live (\[0-9\]+) "
