# $Id: Portfile 87583 2011-11-26 22:50:44Z blb@macports.org $

PortSystem          1.0
PortGroup           python26 1.0
name                rst2pdf
version             0.16
categories          textproc python
license             MIT
maintainers         nomaintainer
description         Create PDF from reStructuredText
long_description    ${description}

platforms           darwin

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

checksums           md5     67b8bfac3ac55a85a09fc35ba98794d3 \
                    sha1    297f9ad8e91baa706321dd50d99b21adfa1f1e66 \
                    rmd160  1ddf23532507dfafbfae58c759978bdfd65dec4e

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

