# -*- 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 73299 2010-11-09 20:21:14Z ryandesign@macports.org $

PortSystem          1.0

name                djvu2pdf
version             0.9.1
categories          graphics
platforms           darwin
maintainers         nomaintainer
license             GPL LGPL
supported_archs     noarch

description         converts Djvu files to PDF files

long_description    ${name} is a small tool to convert Djvu files to PDF files.

homepage            http://0x2a.at/site/projects/djvu2pdf/
master_sites        ${homepage}

checksums           sha1    9423f21af20a54f5d11b749cde1f1051d6978219 \
                    rmd160  b0fda8e4ccec0374820b8552d9a1e95080617525

depends_run         port:djvulibre \
                    port:ghostscript

use_configure       no

build {}

destroot {
    xinstall -m 755 ${worksrcpath}/djvu2pdf ${destroot}${prefix}/bin
    xinstall -m 644 ${worksrcpath}/djvu2pdf.1.gz ${destroot}${prefix}/share/man/man1
    xinstall -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} changelog copyright ${destroot}${prefix}/share/doc/${name}
}
