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

PortSystem 1.0

name            texlive_texmf-minimal
version         2007
revision        3
set     rev     g0
categories      tex
maintainers     nomaintainer
description     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
}

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

checksums       md5 dc59785d6eeb7e38046fbd0924f8c0ff\
		sha1 da78386094ab7a1c3f692bb6c4bdb54df4d6f7f9

patchfiles      patch-beamerbaseboxes.sty.diff

conflicts     	pTeX

use_configure   no
build       {
        delete ${worksrcpath}/texmf/doc/man
        move ${worksrcpath}/texmf/web2c/fmtutil.cnf \
            ${worksrcpath}/texmf/web2c/fmtutil.cnf-dist
        copy ${worksrcpath}/texmf/web2c/updmap.cfg-dist \
           ${worksrcpath}/texmf/web2c/updmap.cfg
        # delete files that will be provided by texlive-base.
        delete ${worksrcpath}/texmf/dvipdfm/dvipdfmx.cfg \
            ${worksrcpath}/texmf/dvipdfm/EUC-UCS2 \
            ${worksrcpath}/texmf/dvipdfm/UniKSCms-UCS2-H \
            ${worksrcpath}/texmf/dvipdfm/UniKSCms-UCS2-V \
            ${worksrcpath}/texmf/dvips/base/color.pro \
            ${worksrcpath}/texmf/dvips/base/crop.pro \
            ${worksrcpath}/texmf/dvips/base/finclude.pro \
            ${worksrcpath}/texmf/dvips/base/hps.pro \
            ${worksrcpath}/texmf/dvips/base/special.pro \
            ${worksrcpath}/texmf/dvips/base/tex.pro \
            ${worksrcpath}/texmf/dvips/base/texc.pro \
            ${worksrcpath}/texmf/dvips/base/texps.pro \
            ${worksrcpath}/texmf/dvips/gsftopk/render.ps \
            ${worksrcpath}/texmf/texconfig/g/generic \
            ${worksrcpath}/texmf/texconfig/generic \
            ${worksrcpath}/texmf/texconfig/README \
            ${worksrcpath}/texmf/texconfig/tcfmgr \
            ${worksrcpath}/texmf/texconfig/tcfmgr.map \
            ${worksrcpath}/texmf/texconfig/v/vt100 \
            ${worksrcpath}/texmf/texconfig/x/xterm \
            ${worksrcpath}/texmf/web2c/aleph.pool \
            ${worksrcpath}/texmf/web2c/mf.pool \
            ${worksrcpath}/texmf/web2c/mktex.opt \
            ${worksrcpath}/texmf/web2c/mktexdir \
            ${worksrcpath}/texmf/web2c/mktexdir.opt \
            ${worksrcpath}/texmf/web2c/mktexnam \
            ${worksrcpath}/texmf/web2c/mktexnam.opt \
            ${worksrcpath}/texmf/web2c/mktexupd \
            ${worksrcpath}/texmf/web2c/omega.pool \
            ${worksrcpath}/texmf/web2c/pdftex.pool \
            ${worksrcpath}/texmf/web2c/tex.pool \
            ${worksrcpath}/texmf/web2c/texmf.cnf \
            ${worksrcpath}/texmf/xdvi/pixmaps/toolbar.xpm \
            ${worksrcpath}/texmf/xdvi/pixmaps/toolbar2.xpm \
            ${worksrcpath}/texmf/xdvi/XDvi \
            ${worksrcpath}/texmf/xdvi/xdvi.cfg
}

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

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

