# -*- 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                    psbind
version                 20090315
revision                5
categories              textproc print
license                 GPL-2+
platforms               any
maintainers             nomaintainer
supported_archs         noarch

description             psbind is a smarter psnup

long_description        psbind examines the margins in a PostScript document \
                        and rearranges the pages to fit them onto paper \
                        efficiently. It outputs a transformed PostScript \
                        document.

extract.suffix
extract.only
extract.mkdir           yes

homepage                https://conway.bostoncoop.net/~ccshan/wiki/psbind/
master_sites            https://www.cpan.org/authors/id/K/KE/KENSHAN/

checksums               sha256  cc187db79735dea6c4cd5bd78329432151adfba26f237b9dcae36a18f7f53132 \
                        rmd160  7a49a4ef07e81aafb66c783a42284d6e9bcde6eb \
                        size    27444

depends_run             port:a2ps \
                        port:ghostscript \
                        port:libpaper

post-extract {
    copy ${distpath}/${distfiles} ${worksrcpath}/${name}
}

use_configure           no

build {
    system -W ${worksrcpath} "/usr/bin/pod2man ${name} ${name}.1"
}

destroot {
    xinstall -m 755 -W ${worksrcpath} ${name} ${destroot}${prefix}/bin
    xinstall -m 644 -W ${worksrcpath} ${name}.1 ${destroot}${prefix}/share/man/man1
}
