Ticket #16782: Portfile

File Portfile, 1.8 KB (added by jjstickel@…, 16 years ago)

textproc/pdfjam/Portfile

Line 
1# JJS 10/7/08
2
3PortSystem              1.0
4
5name                    pdfjam
6version                 1.20
7categories              textproc pdf
8maintainers             <nomaintainer>
9platforms               darwin
10homepage                http://go.warwick.ac.uk/pdfjam
11master_sites            ${homepage}
12distname                ${name}_${version}
13extract.suffix          .tgz
14worksrcdir              ${name}
15use_configure           no
16
17description             A few PDF manipulation tools.
18
19long_description \
20    PDFjam is a small collection of shell scripts which provide a  \
21    simple interface to some of the functionality of the excellent \
22    pdfpages package (by Andreas Matthias) for pdfLaTeX.
23
24
25checksums \
26    md5 3e443fd2c0063330313c1c079053e622
27
28depends_lib \
29    port:texlive
30
31post-extract {
32    reinplace "s|/usr/local/etc|${prefix}/etc|" ${worksrcpath}/scripts/pdf90
33    reinplace "s|/usr/local/etc|${prefix}/etc|" ${worksrcpath}/scripts/pdfjoin
34    reinplace "s|/usr/local/etc|${prefix}/etc|" ${worksrcpath}/scripts/pdfnup
35    reinplace "s|/usr/local/etc|${prefix}/etc|" ${worksrcpath}/man1/pdf90.1
36    reinplace "s|/usr/local/etc|${prefix}/etc|" ${worksrcpath}/man1/pdfjoin.1
37    reinplace "s|/usr/local/etc|${prefix}/etc|" ${worksrcpath}/man1/pdfnup.1
38    reinplace "s|/usr/local/etc|${prefix}/etc|" ${worksrcpath}/PDFjam-README.html
39}
40
41build {}
42
43destroot {
44    xinstall -m 755 -d ${destroot}${prefix}/bin
45    xinstall -m 755 -W ${worksrcpath}/scripts pdf90 pdfjoin pdfnup \
46       ${destroot}${prefix}/bin
47    xinstall -m 755 -d ${destroot}${prefix}/share/man/man1
48    xinstall -m 644 -W ${worksrcpath}/man1 pdf90.1 pdfjoin.1 pdfnup.1 \
49       ${destroot}${prefix}/share/man/man1
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}