Ticket #8814: Portfile.2

File Portfile.2, 1.6 KB (added by oksmith77, 18 years ago)

updated port file

Line 
1# $Id: Portfile,v 1.7 2006/04/16 10:47:34 mww Exp $
2
3PortSystem 1.0
4name                    html2text
5version                 1.3.2a
6revision                3
7categories              textproc
8platforms               darwin
9maintainers             darwinports@opendarwin.org
10homepage                http://www.mbayer.de/${name}/
11description             Utility to convert HTML documents into plain text.
12
13long_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                       
21master_sites            http://userpage.fu-berlin.de/~mbayer/tools/ \
22                        ftp://ftp.ibiblio.org/pub/linux/apps/www/converters/
23
24checksums               md5 6097fe07b948e142315749e6620c9cfc
25
26patchfiles              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
33variant auto_ptr_broken {
34
35    pre-configure {
36   
37        reinplace "248 s|^else||g" ${worksrcpath}/configure
38    }
39}
40
41destroot {
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}