# -*- 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 79385 2011-06-12 07:59:29Z jmr@macports.org $

PortSystem          1.0
PortGroup           texlive 1.0

name                texlive-math-extra
version             19459
revision            0

categories          tex
maintainers         dports
description         TeX Live: Advanced math typesetting
long_description    Extra math

checksums           md5     103def5d1dbc08409a1b1aaa12cdfa14 \
                    sha1    e15ceb49c7f95f63609d5c33385418212a259138 \
                    rmd160  8b076bc6ff271babaa49cb77d9603774191af9b0

depends_lib         port:texlive-fonts-recommended port:texlive-latex

texlive.formats      \
    {1 amstex pdftex - {-translate-file=cp227.tcx *amstex.ini}}

texlive.maps      \
    {MixedMap stmaryrd.map} \
    {MixedMap yhmath.map}

pre-activate {
    # binomexp moved from texlive-latex-extra to texlive-math-extra in TL2010
    if {![catch {set vers [lindex [registry_active texlive-latex-extra] 0]}]
        && [rpm-vercomp [lindex $vers 1] 19538] < 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
