# $Id: Portfile 67771 2010-05-18 02:12:40Z blb@macports.org $

PortSystem          1.0
PortGroup           python26 1.0
name                rst2pdf
version             0.15
categories          textproc python
maintainers         blb openmaintainer
description         Create PDF from reStructuredText
long_description    ${description}

platforms           darwin

homepage            http://code.google.com/p/rst2pdf/
master_sites        googlecode

checksums           md5     8b24159f2348c6412ae84ae3b9a07268 \
                    sha1    caa1091ea2ca146e4c17bdde7cca3def9d136d44 \
                    rmd160  a875adaaeea42069c6a962e0d6f49278c04fc873

depends_lib-append  port:py26-reportlab port:py26-docutils port:py26-distribute
depends_run         port:py26-pygments

python.link_binaries no

post-destroot {
   ln -s ${python.prefix}/bin/rst2pdf ${destroot}${prefix}/bin/rst2pdf
   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
   xinstall -m 644 -W ${worksrcpath} CHANGES.txt Contributors.txt LICENSE.txt \
      README.txt ${destroot}${prefix}/share/doc/${name}
   xinstall -m 644 -W ${worksrcpath}/doc DEVELOPERS.txt manual.pdf \
      sampler.txt ${destroot}${prefix}/share/doc/${name}
}

