1 | # $Id: $ |
---|
2 | PortSystem 1.0 |
---|
3 | name pstotext |
---|
4 | version 1.8g |
---|
5 | categories textproc |
---|
6 | maintainers blb@pobox.com |
---|
7 | description Extract ASCII text from a PostScript or PDF file |
---|
8 | |
---|
9 | long_description \ |
---|
10 | pstotext reads one or more PostScript or PDF files, and writes to standard \ |
---|
11 | output (or a file) a representation of the plain text that would be \ |
---|
12 | displayed if the PostScript/PDF file were printed. |
---|
13 | |
---|
14 | homepage http://www.research.compaq.com/SRC/virtualpaper/pstotext.html |
---|
15 | master_sites http://www.research.compaq.com/SRC/virtualpaper/binaries/ |
---|
16 | distfiles ${name}.tar.Z |
---|
17 | |
---|
18 | platforms darwin |
---|
19 | checksums md5 1be0be028ccc85be1bf55d7e90976b18 |
---|
20 | |
---|
21 | depends_lib bin:gs:ghostscript |
---|
22 | extract.cmd uncompress |
---|
23 | worksrcdir ${name} |
---|
24 | |
---|
25 | use_configure no |
---|
26 | |
---|
27 | destroot { |
---|
28 | file mkdir "${destroot}/${prefix}/bin" |
---|
29 | file mkdir "${destroot}/${prefix}/share/man/man1" |
---|
30 | file mkdir "${destroot}/${prefix}/share/doc/pstotext" |
---|
31 | system "install -m 755 ${worksrcpath}/pstotext ${destroot}/${prefix}/bin" |
---|
32 | system "install -m 644 ${worksrcpath}/pstotext.1 ${destroot}/${prefix}/share/man/man1" |
---|
33 | system "install -m 644 ${worksrcpath}/pstotext.txt ${destroot}/${prefix}/share/doc/pstotext" |
---|
34 | } |
---|
35 | |
---|