# -*- 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 88458 2012-01-03 03:11:19Z ryandesign@macports.org $

PortSystem      1.0

name            pgf-devel
conflicts       pgf
version         2010-09-28
categories      tex textproc
platforms       darwin
maintainers     alum.wpi.edu:arno+macports openmaintainer
supported_archs noarch

description     PGF and TikZ -- Graphic systems for TeX (development version)

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. This development build provides the latest features \
    and bug-fixes.

homepage        http://www.texample.net/tikz/builds/
master_sites    http://www.texample.net/media/pgf/builds/
distfiles       pgfCVS${version}_TDS.zip
use_zip         yes
extract.mkdir   yes

checksums       rmd160  0064c6768e8a6bfb06bdf20e27f333d8f771bea8 \
                sha256  2460196db3fd4e9a3dd159e4a8a2dd6b4cdb2872879be6212b4b600a7385a118

livecheck.type  regex
livecheck.url   ${homepage}
livecheck.regex Build date (.*)</a></dt>

depends_lib     bin:texhash:texlive

use_configure   no
build { }

destroot {
    set latex_local "${destroot}${prefix}/share/texmf-local"
    xinstall -d ${latex_local}
    copy ${worksrcpath}/tex ${latex_local}
    copy ${worksrcpath}/doc ${latex_local}
}

post-activate {
    system "texhash"
}
