source: trunk/dports/textproc/pdftk/Portfile @ 14706

Last change on this file since 14706 was 14706, checked in by blb, 14 years ago

Port: Many

Update my ports
Bugzilla finally let me change my email address, so change all my ports
to match (sorry for the spam)

  • Property svn:eol-style set to native
File size: 2.1 KB
Line 
1# $Id: Portfile,v 1.6 2005/10/19 08:10:16 blb Exp $
2
3PortSystem                      1.0
4name                            pdftk
5version                         1.12
6revision                        2
7categories                      textproc graphics pdf
8maintainers                     blb@opendarwin.org
9description                     pdftk - PDF Toolkit, for various operations on PDF files
10long_description \
11        pdftk is a simple tool for doing everyday things with PDF documents: \
12        Merge PDF Documents \
13        Split PDF Pages into a New Document \
14        Decrypt Input as Necessary (Password Required) \
15        Encrypt Output as Desired \
16        Fill PDF Forms with FDF Data and/or Flatten Forms \
17        Apply a Background Watermark \
18        Report on PDF Metrics such as Metadata, Bookmarks, and Page Labels \
19        Update PDF Metadata \
20        Attach Files to PDF Pages or the PDF Document \
21        Unpack PDF Attachments \
22        Burst a PDF Document into Single Pages \
23        Uncompress and Re-Compress Page Streams \
24        Repair Corrupted PDF (Where Possible)
25
26platforms                       darwin
27
28homepage                        http://www.pdfhacks.com/pdftk/
29master_sites            ${homepage}
30use_bzip2                       yes
31
32checksums                       md5 ec1b6d9e06109c6f05e19033f1d91d8a \
33                                        sha1 caab4ae9ede56b12b007e9b5c9a78c6a4873dc44
34
35depends_lib                     bin:gcj:gcj34
36
37worksrcdir                      ${distname}/${name}
38
39use_configure           no
40
41# Yes, that is a question mark; if we use a glob here (as once we did), that
42# glob is run prior to the dependency being installed, which would mean that
43# the glob would not see gcj yet, and think TOOLPATH should be /bin/.  Using
44# the question mark lets the shell deal with it later, after the dependency
45# has been handled if necessary.
46build.args                      -f Makefile.MacOSX TOOLPATH=${prefix}/gcj34-3.4.?/bin/
47
48destroot {
49        xinstall -m 755 -d ${destroot}/${prefix}/share/doc/${name}
50        xinstall -m 755 -W ${worksrcpath} pdftk ${destroot}/${prefix}/bin
51        xinstall -m 644 -W ${worksrcpath}/.. pdftk.1.html pdftk.1.txt \
52                ${destroot}/${prefix}/share/doc/${name}
53        xinstall -m 644 -W ${worksrcpath}/../debian pdftk.1 \
54                ${destroot}/${prefix}/share/man/man1
55}
56
57variant gcc40 {
58        depends_lib-delete      bin:gcj:gcj34
59        depends_lib-append      port:gcc40
60        build.args-delete       TOOLPATH=${prefix}/gcj34-3.4.?/bin/
61        build.args-append       TOOLPATH=${prefix}/bin/ \
62                                                VERSUFF=-dp-4.0
63}
64
Note: See TracBrowser for help on using the repository browser.