# -*- 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 48920 2009-03-31 11:28:38Z ryandesign@macports.org $

PortSystem          1.0

name                pgf
version             2.00
categories          tex textproc
platforms           darwin
maintainers         snc openmaintainer
description         PGF and TikZ -- Graphic systems for TeX
long_description \
    PGF is a TeX macro package for generating graphics. It is platform- and \
    format-independent and works together with the most important TeX backend \
    drivers, including pdftex and dvips. It comes with a user-friedly syntax \
    layer called TikZ.

homepage            http://pgf.sourceforge.net/
master_sites        sourceforge:pgf
checksums           md5     fb8cb62462f8248e327bf23ee5b9ccda \
                    sha1    8c50ac3196380d164105ec96646c8e9424faa63c \
                    rmd160  b7b18fded6ba819c2d79e7b0740d7fdfd0b9c94c

livecheck.regex     <title>pgf version (.*) released.*</title>

depends_lib         bin:texhash:texlive

use_configure       no
build { }

destroot {
    set latex_local ${destroot}${prefix}/share/texmf-local
    set r ${workpath}/${name}-${version}
    file mkdir ${latex_local}/tex
    file copy ${r}/latex ${latex_local}/tex/
    file copy ${r}/generic ${latex_local}/tex/
    file copy ${r}/context ${latex_local}/tex/
    file copy ${r}/plain ${latex_local}/tex/
    file copy ${r}/doc ${latex_local}/
}

post-activate {
    system "texhash"
}
