# -*- 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 63036 2010-01-24 10:43:40Z 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

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 rst2newlatex rst2pseudoxml rst2s5 rst2xml rstpep2html} {
        ln -s ${python.prefix}/bin/${f}.py ${destroot}${prefix}/bin/${f}-2.6.py
    }
}

