# $Id: Portfile 53946 2009-07-17 00:00:10Z blb@macports.org $

PortSystem          1.0
PortGroup           python26 1.0
name                rst2pdf
version             0.11
revision            1
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     06632c520fabfe29240c445d8bbdea07 \
                    sha1    e9e749b7c1156bf3f13af759eb8732dd2f0e891d \
                    rmd160  1adb0d0bb6d88039a619c6fffa7251e2b871b719

depends_lib-append  port:py26-reportlab port:py26-docutils port:py26-setuptools
depends_run         port:py26-simplejson port:py26-pygments

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 ${worksrcpath}/doc/rst2pdf.1 \
      ${destroot}${prefix}/share/man/man1
   xinstall -m 644 -W ${worksrcpath}/doc DEVELOPERS.txt manual.pdf \
      sampler.txt ${destroot}${prefix}/share/doc/${name}
}

