# $Id$ PortSystem 1.0 name pdfjam version 1.20 categories textproc pdf maintainers vcn.com:jjstickel platforms darwin homepage http://go.warwick.ac.uk/pdfjam master_sites ${homepage} distname ${name}_${version} extract.suffix .tgz worksrcdir ${name} use_configure no description A few PDF manipulation tools. long_description \ PDFjam is a small collection of shell scripts which provide a \ simple interface to some of the functionality of the excellent \ pdfpages package (by Andreas Matthias) for pdfLaTeX. checksums \ md5 3e443fd2c0063330313c1c079053e622 depends_run \ path:bin/pdflatex:texlive post-extract { reinplace "s|/usr/local/etc|${prefix}/etc|" ${worksrcpath}/scripts/pdf90 reinplace "s|/usr/local/etc|${prefix}/etc|" ${worksrcpath}/scripts/pdfjoin reinplace "s|/usr/local/etc|${prefix}/etc|" ${worksrcpath}/scripts/pdfnup reinplace "s|/usr/local/etc|${prefix}/etc|" ${worksrcpath}/man1/pdf90.1 reinplace "s|/usr/local/etc|${prefix}/etc|" ${worksrcpath}/man1/pdfjoin.1 reinplace "s|/usr/local/etc|${prefix}/etc|" ${worksrcpath}/man1/pdfnup.1 reinplace "s|/usr/local/etc|${prefix}/etc|" ${worksrcpath}/PDFjam-README.html } build {} destroot { xinstall -m 755 -d ${destroot}${prefix}/bin xinstall -m 755 -W ${worksrcpath}/scripts pdf90 pdfjoin pdfnup \ ${destroot}${prefix}/bin xinstall -m 755 -d ${destroot}${prefix}/share/man/man1 xinstall -m 644 -W ${worksrcpath}/man1 pdf90.1 pdfjoin.1 pdfnup.1 \ ${destroot}${prefix}/share/man/man1 xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} xinstall -m 644 -W ${worksrcpath} COPYING PDFjam-README.html VERSION \ ${destroot}${prefix}/share/doc/${name} }