# -*- 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 68204 2010-05-29 00:44:23Z jmr@macports.org $

PortSystem 1.0
PortGroup python26 1.0

name                py26-docutils
version             0.6
revision            1
categories-append   textproc
maintainers         jmr openmaintainer
description         A set of tools for processing plaintext documentation
long_description    Docutils is a set of tools for processing plaintext \
                    documentation into useful formats, such as HTML, XML, \
                    and LaTeX. Includes reStructuredText, the easy to read, \
                    easy to use, what-you-see-is-what-you-get plaintext \
                    markup language.
platforms           darwin
if {[info exists supported_archs]} {
    supported_archs noarch
}

homepage            http://docutils.sourceforge.net/
master_sites        sourceforge:docutils
distname            docutils-${version}

checksums           md5     5c615479a965bc773892f585e0e08119 \
                    sha1    1b3bfc3bdf285c208dd0c29427fd6b096569aa92 \
                    rmd160  627665526f25d93277b977c6bfdb1b3f0554d69a

depends_lib         port:py26-roman

# we want *-2.6.py not *.py-2.6
python.link_binaries no
post-destroot {
    foreach f {rst2html rst2latex rst2man rst2newlatex rst2odt rst2odt_prepstyles rst2pseudoxml rst2s5 rst2xml rstpep2html} {
        ln -s ${python.prefix}/bin/${f}.py ${destroot}${prefix}/bin/${f}-2.6.py
    }
}

livecheck.url       http://sourceforge.net/api/file/index/project-id/38414/rss
livecheck.regex     {docutils/([0-9.]+)}
