1 | # $Id: Portfile,v 1.7 2006/04/16 10:47:34 mww Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name html2text |
---|
5 | version 1.3.2a |
---|
6 | revision 3 |
---|
7 | categories textproc |
---|
8 | platforms darwin |
---|
9 | maintainers darwinports@opendarwin.org |
---|
10 | homepage http://www.mbayer.de/${name}/ |
---|
11 | description Utility to convert HTML documents into plain text. |
---|
12 | |
---|
13 | long_description html2text is a command line utility, written in C++, that converts \ |
---|
14 | HTML documents into plain text. \ |
---|
15 | Each HTML document is loaded from a location indicated by a URI or \ |
---|
16 | read from standard input, and formatted into a stream of plain text \ |
---|
17 | characters that is written to standard output or into an output-file. \ |
---|
18 | The input-URI may specify a remote site, from that the documents are \ |
---|
19 | loaded via the Hypertext Transfer Protocol (HTTP). |
---|
20 | |
---|
21 | master_sites http://userpage.fu-berlin.de/~mbayer/tools/ \ |
---|
22 | ftp://ftp.ibiblio.org/pub/linux/apps/www/converters/ |
---|
23 | |
---|
24 | checksums md5 6097fe07b948e142315749e6620c9cfc |
---|
25 | |
---|
26 | patchfiles patch-configure.diff |
---|
27 | |
---|
28 | # |
---|
29 | # The following makes a crude patch that forces -DAUTO_PTR_BROKEN |
---|
30 | # which is needed on my OS X 10.3.9 system |
---|
31 | # |
---|
32 | |
---|
33 | variant auto_ptr_broken { |
---|
34 | |
---|
35 | pre-configure { |
---|
36 | |
---|
37 | reinplace "248 s|^else||g" ${worksrcpath}/configure |
---|
38 | } |
---|
39 | } |
---|
40 | |
---|
41 | destroot { |
---|
42 | xinstall -m 755 ${worksrcpath}/html2text ${destroot}${prefix}/bin |
---|
43 | xinstall -m 644 ${worksrcpath}/html2text.1.gz \ |
---|
44 | ${destroot}${prefix}/share/man/man1 |
---|
45 | xinstall -m 644 ${worksrcpath}/html2textrc.5.gz \ |
---|
46 | ${destroot}${prefix}/share/man/man5 |
---|
47 | xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} |
---|
48 | xinstall -m 644 -v -W ${worksrcpath} \ |
---|
49 | CHANGES COPYING CREDITS KNOWN_BUGS README RELEASE_NOTES TODO \ |
---|
50 | ${destroot}${prefix}/share/doc/${name} |
---|
51 | } |
---|