# -*- 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 68316 2010-06-01 05:00:36Z jmr@macports.org $

PortSystem      1.0

name            pgf-devel
conflicts       pgf
version         2010-02-23
categories      tex textproc
platforms       darwin
maintainers     alum.wpi.edu:arno+macports openmaintainer
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://media.texample.net/pgf/builds/
distfiles       pgfCVS${version}_TDS.zip
use_zip         yes
extract.mkdir   yes

checksums       sha1 9b5d1eb4129f5cb4929744a8f9bf213b2af1e92c \
                md5 42654929685fa5f784b67b70667b33dc \
                rmd160 b26fb792d44eacd12edd30623bedf27263189ef0

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"
}
