# -*- 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

PortSystem          1.0

name                djvu2pdf
version             0.9.2
revision            8
categories          graphics
platforms           any
maintainers         {nicos @NicosPavlov} 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}
