# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 89810 2012-02-11 08:55:39Z and.damore@macports.org $

PortSystem          1.0
PortGroup           texlive 1.0

name                texlive-latex-recommended
version             23089
revision            0

categories          tex
maintainers         dports
license             Copyleft Permissive
description         TeX Live: LaTeX recommended packages
long_description    A collection of recommended add-on packages for LaTeX which have widespread use

checksums           texlive-latex-recommended-23089-run.tar.xz \
                    rmd160  a0b358beef2215c1bc8798108e1793200691b6dc \
                    sha256  fb025e0714a7c49bfea02a9768cd608ecd961cd647864e098ce34ee7f1b3aed9 \
                    texlive-latex-recommended-23089-doc.tar.xz \
                    rmd160  3f7ddfb5b93d57b3f8d9a2582df4954f9fae2ea6 \
                    sha256  73ee420d11d69f0ad8f57d12712d0fd3dc990a57747c352632c5f89bd9d9f514 \
                    texlive-latex-recommended-23089-src.tar.xz \
                    rmd160  445211c9a747ef7803884b371bbfd38ee4ec929e \
                    sha256  6a885413f09ab12bd0d769d744c67dd959442aec0860241f53fc2642c9c96d00

depends_lib         port:texlive-latex

texlive.binaries    thumbpdf

# beamer requires pgf; see #25478
depends_lib-append port:pgf

pre-activate {
    # fontspec moved from texlive-xetex in TL2011
    if {![catch {set vers [lindex [registry_active texlive-xetex] 0]}]
        && [vercmp [lindex $vers 1] 23080] < 0} {
        set deactivate_proc registry_deactivate_composite
        if {[info commands registry_deactivate_composite] == {}} {
            set deactivate_proc registry_deactivate
        }
        $deactivate_proc texlive-xetex "" [list ports_nodepcheck 1]
    }

    # textcase moved from texlive-latex-extra in TL2011
    if {![catch {set vers [lindex [registry_active texlive-latex-extra] 0]}]
        && [vercmp [lindex $vers 1] 22931] < 0} {
        set deactivate_proc registry_deactivate_composite
        if {[info commands registry_deactivate_composite] == {}} {
            set deactivate_proc registry_deactivate
        }
        $deactivate_proc texlive-latex-extra "" [list ports_nodepcheck 1]
    }
}

texlive.texmfport
