# $Id: Portfile 41846 2008-11-11 06:56:17Z ryandesign@macports.org $

PortSystem      1.0

name            tex-fourier-gutenberg
version         1.4.1
categories      tex print
maintainers     nomaintainer
description     Fourier-GUTenberg provides all complementary typefaces needed to allow \
                Utopia based TeX typesetting.
long_description \
                ${description}
platforms       darwin
homepage
master_sites    http://www.ring.gr.jp/pub/text/CTAN/fonts/ \
                ftp://ftp.jaist.ac.jp/pub/TeX/tex-archive/fonts/
distname        fourier-GUT
use_zip         yes
checksums       md5 4240bba0b9084edba32010d1c7e34275 \
                sha1 84e553b00ce9a60681b8ebd64db2e721d3469f81 \
                rmd160 b95903070f38c545d8cccc39da38195e7a116d16

depends_lib     bin:mktexlsr:texlive \
                path:share/texmf-local/fonts/type1/adobe/utopia/putr8a.pfb:tex-utopia

use_configure   no

build {}

destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/texmf-local
    foreach d {doc fonts tex} {
        copy ${worksrcpath}/${d} ${destroot}${prefix}/share/texmf-local/${d}
    }
}

post-activate {
    system "mktexlsr"
    ui_msg "\nBefore using fourier-GUT, please make sure to update font map files.\n"
    ui_msg "  \$ sudo updmap-sys --enable Map fourier.map\n"
}
