# -*- 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 56009 2009-08-23 04:54:41Z akitada@macports.org $

PortSystem          1.0
PortGroup           python26 1.0

name                py26-sphinx
version             0.6.2
revision            1
categories-append   devel
maintainers         jmr openmaintainer
description         Python documentation generator
long_description \
    Sphinx is a tool that makes it easy to create intelligent and beautiful \
    documentation for Python projects (or other documents consisting of \
    multiple reStructuredText sources), written by Georg Brandl. It was \
    originally created to translate the new Python documentation, but has now \
    been cleaned up in the hope that it will be useful to many other projects.

platforms           darwin

homepage            http://sphinx.pocoo.org/
master_sites        http://pypi.python.org/packages/source/S/Sphinx/
distname            Sphinx-${version}

checksums           md5 c8f79e171addc73342cc2e775dc78880 \
                    sha1 d4da9d09f2df184dc010f9d78faaa76af90f748d \
                    rmd160 fc893d0cfcc4c006952c706165246268da3c51d4

depends_lib         port:py26-docutils
depends_run         port:py26-pygments \
                    port:py26-jinja2 \
                    port:py26-setuptools

post-destroot {
    foreach bin [glob -tails -directory ${destroot}${python.prefix}/bin *] {
        ln -s ${python.prefix}/bin/${bin} ${destroot}${prefix}/bin/${bin}${python.branch}
    }
}

livecheck.check     regex
livecheck.regex     {<p>Current version: <b>([0-9.]+)</b></p>}
