source: trunk/dports/textproc/pdfjam/Portfile

Last change on this file was 120416, checked in by ryandesign@…, 3 years ago

pdfjam: fix pdflatex dependency (#43668; maintainer timeout)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# -*- 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
2# $Id: Portfile 120416 2014-05-27 22:48:53Z ryandesign@macports.org $
3
4PortSystem              1.0
5
6name                    pdfjam
7version                 2.08
8categories              textproc pdf
9maintainers             vcn.com:jjstickel
10license                 GPL-2
11platforms               darwin
12homepage                http://go.warwick.ac.uk/pdfjam
13master_sites            ${homepage}
14extract.suffix          .tgz
15distname                ${name}_[join [split ${version} .] {}]
16worksrcdir              ${name}
17supported_archs         noarch
18use_configure           no
19
20description             A few PDF manipulation tools.
21
22long_description \
23    PDFjam is a small collection of shell scripts which provide a  \
24    simple interface to some of the functionality of the excellent \
25    pdfpages package (by Andreas Matthias) for pdfLaTeX.
26
27checksums               sha1    981b504ef96369a203f85fefb42d4ea0d1194493 \
28                        rmd160  98452c703d3d799e8562763d2d828aa64e63b893
29
30depends_run \
31    bin:pdflatex:texlive-latex \
32    path:share/texmf-dist/tex/latex/pdfpages/pdfpages.sty:texlive-latex-recommended
33
34post-patch {
35    reinplace "s|/usr/local|${prefix}|g" \
36        ${worksrcpath}/bin/pdfjam \
37        ${worksrcpath}/man1/pdfjam.1 \
38        ${worksrcpath}/PDFjam-README.html
39}
40
41build {}
42
43destroot {
44    delete ${destroot}${prefix}/bin ${destroot}${prefix}/share/man/man1
45    copy ${worksrcpath}/bin ${destroot}${prefix}/bin
46    copy ${worksrcpath}/man1 ${destroot}${prefix}/share/man/man1
47
48    xinstall -m 644 ${worksrcpath}/pdfjam.conf ${destroot}${prefix}/etc/pdfjam.conf.sample
49
50    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
51    xinstall -m 644 -W ${worksrcpath} COPYING PDFjam-README.html VERSION \
52       ${destroot}${prefix}/share/doc/${name}
53}
54
55pre-activate {
56    # texlive-bin-extra used to contain pdfjam, but doesn't
57    # anymore. If the old version is installed, deactivate it to avoid
58    # a conflict.
59    if {[file exists $prefix/bin/pdfjam] 
60        && ![catch {set vers [lindex [registry_active texlive-bin-extra] 0]}]
61        && [vercmp [lindex $vers 1] 19536] < 0} {
62        registry_deactivate_composite texlive-bin-extra "" [list ports_nodepcheck 1]
63    }
64}
Note: See TracBrowser for help on using the repository browser.