Ticket #1297: Portfile

File Portfile, 1.1 KB (added by blb@…, 21 years ago)

Portfile

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