# -*- 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 85021 2011-10-07 18:48:42Z nicos@macports.org $

PortSystem          1.0

name                djvu2pdf
version             0.9.2
categories          graphics
platforms           darwin
maintainers         nicos openmaintainer
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    eb34c8a6381673e531fbbd21619606e20fdb1d97 \
                    rmd160  ab22a263df9f99b40cb3b896520e332d9b2b97ce

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

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     ${name}-(\[0-9\.-\]+)${extract.suffix}
