# -*- 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
maintainers vcn.com:jjstickel
homepage http://www2.warwick.ac.uk/fac/sci/statistics/staff/academic-research/firth/software/pdfjam
distname ${name}_[join [split ${version} .] {}]
description A few PDF manipulation tools.
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 sha1 981b504ef96369a203f85fefb42d4ea0d1194493 \
rmd160 98452c703d3d799e8562763d2d828aa64e63b893
bin:pdflatex:texlive-latex \
path:share/texmf-dist/tex/latex/pdfpages/pdfpages.sty:texlive-latex-recommended
reinplace "s|/usr/local|${prefix}|g" \
${worksrcpath}/bin/pdfjam \
${worksrcpath}/man1/pdfjam.1 \
${worksrcpath}/PDFjam-README.html
delete ${destroot}${prefix}/bin ${destroot}${prefix}/share/man/man1
copy ${worksrcpath}/bin ${destroot}${prefix}/bin
copy ${worksrcpath}/man1 ${destroot}${prefix}/share/man/man1
xinstall -m 644 ${worksrcpath}/pdfjam.conf ${destroot}${prefix}/etc/pdfjam.conf.sample
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 -W ${worksrcpath} COPYING PDFjam-README.html VERSION \
${destroot}${prefix}/share/doc/${name}
# texlive-bin-extra used to contain pdfjam, but doesn't
# anymore. If the old version is installed, deactivate it to avoid
if {[file exists $prefix/bin/pdfjam]
&& ![catch {set vers [lindex [registry_active texlive-bin-extra] 0]}]
&& [vercmp [lindex $vers 1] 19536] < 0} {
registry_deactivate_composite texlive-bin-extra "" [list ports_nodepcheck 1]