# $Id: Portfile 74878 2011-01-05 11:27:42Z ryandesign@macports.org $

PortSystem              1.0

name                    psbind
version                 20030617
revision                2
categories              textproc print
platforms               darwin
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                http://www.digitas.harvard.edu/~ken/${name}/
master_sites            http://www.cpan.org/authors/id/K/KE/KENSHAN/

checksums               sha1    39e82fde6c0b8a5dc393feb241698ba4cc8f7dcb \
                        rmd160  fbaecf7dcbe2bcfe3f2a9e3b09ffe08624535b11

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

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

use_configure           no

build {
    system "cd ${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
}
