# $Id: Portfile 66131 2010-04-06 05:44:52Z jmr@macports.org $

PortSystem 1.0

name           texlive_texmf-full
version        2007
revision       4
set     rev    g0
categories     tex
maintainers    nomaintainer
description    full texmf tree 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
if {[info exists supported_archs]} {
    supported_archs noarch
}

#depends_run    port:texlive_base

conflicts     	pTeX

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

checksums      md5 7b766f57548b0e4f4c1fed0fbc8ff25f \
               sha1 c605bfc3db806d603c408891e73bd56d3a9afbac

patchfiles     patch-tex4ht.env.diff
post-patch  {
         reinplace s|@PREFIX@|${prefix}|g ${worksrcpath}/texmf-dist/tex4ht/base/unix/tex4ht.env
}

use_configure  no
build       {
         delete ${worksrcpath}/texmf/doc/man
         delete ${worksrcpath}/texmf/web2c/xetex.pool
}

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\]+) "
