1 | # $Id: Portfile,v 1.3 2005/01/05 03:53:30 blb Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name pdftk |
---|
5 | version 1.12 |
---|
6 | categories textproc graphics pdf |
---|
7 | maintainers blb@pobox.com |
---|
8 | description pdftk - PDF Toolkit, for various operations on PDF files |
---|
9 | long_description \ |
---|
10 | pdftk is a simple tool for doing everyday things with PDF documents: \ |
---|
11 | Merge PDF Documents \ |
---|
12 | Split PDF Pages into a New Document \ |
---|
13 | Decrypt Input as Necessary (Password Required) \ |
---|
14 | Encrypt Output as Desired \ |
---|
15 | Fill PDF Forms with FDF Data and/or Flatten Forms \ |
---|
16 | Apply a Background Watermark \ |
---|
17 | Report on PDF Metrics such as Metadata, Bookmarks, and Page Labels \ |
---|
18 | Update PDF Metadata \ |
---|
19 | Attach Files to PDF Pages or the PDF Document \ |
---|
20 | Unpack PDF Attachments \ |
---|
21 | Burst a PDF Document into Single Pages \ |
---|
22 | Uncompress and Re-Compress Page Streams \ |
---|
23 | Repair Corrupted PDF (Where Possible) |
---|
24 | |
---|
25 | platforms darwin |
---|
26 | |
---|
27 | homepage http://www.pdfhacks.com/pdftk/ |
---|
28 | master_sites ${homepage} |
---|
29 | use_bzip2 yes |
---|
30 | |
---|
31 | checksums md5 ec1b6d9e06109c6f05e19033f1d91d8a \ |
---|
32 | sha1 caab4ae9ede56b12b007e9b5c9a78c6a4873dc44 |
---|
33 | |
---|
34 | depends_lib bin:gcj:gcj34 |
---|
35 | |
---|
36 | worksrcdir ${distname}/${name} |
---|
37 | |
---|
38 | use_configure no |
---|
39 | |
---|
40 | # Use glob's -nocomplain so portindex succeeds on systems without gcj34 |
---|
41 | build.args -f Makefile.MacOSX \ |
---|
42 | TOOLPATH=[glob -nocomplain ${prefix}/gcj34-*]/bin/ |
---|
43 | |
---|
44 | destroot { |
---|
45 | xinstall -m 755 -d ${destroot}/${prefix}/share/doc/${name} |
---|
46 | xinstall -m 755 -W ${worksrcpath} pdftk ${destroot}/${prefix}/bin |
---|
47 | xinstall -m 644 -W ${worksrcpath}/.. pdftk.1.html pdftk.1.txt \ |
---|
48 | ${destroot}/${prefix}/share/doc/${name} |
---|
49 | xinstall -m 644 -W ${worksrcpath}/../debian pdftk.1 \ |
---|
50 | ${destroot}/${prefix}/share/man/man1 |
---|
51 | } |
---|
52 | |
---|