1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Converts HTML documents into plain text
8 HOMEPAGE= http://www.mbayer.de/html2text/
12 SITES[main]= http://www.mbayer.de/html2text/downloads/
13 DISTFILE[1]= html2text-1.3.2a.tar.gz:main
15 SPKGS[standard]= single
17 OPTIONS_AVAILABLE= none
18 OPTIONS_STANDARD= none
22 LICENSE= GPLv2+:single
23 LICENSE_TERMS= single:{{WRKDIR}}/TERMS
24 LICENSE_FILE= GPLv2+:{{WRKSRC}}/COPYING
25 LICENSE_AWK= TERMS:"^\#include"
26 LICENSE_SOURCE= TERMS:{{WRKSRC}}/html2text.C
29 FPC_EQUIVALENT= textproc/html2text
33 CXXFLAGS= -Wno-write-strings
34 -Wno-deprecated-declarations
37 ${REINPLACE_CMD} -e '/echo=/s/ -e//' ${WRKSRC}/configure
38 .for fle in Makefile.in libstd/Makefile.in
39 ${REINPLACE_CMD} -e '/^DEBUG/s/^/#/; \
40 /^CXXFLAGS/s/=/+=/' ${WRKSRC}/${fle}
42 .for fle in Area.h HTMLControl.h Properties.h format.h
43 ${REINPLACE_CMD} -e 's/<istream>/<iostream>/' ${WRKSRC}/${fle}
47 ${INSTALL_PROGRAM} ${WRKSRC}/html2text ${STAGEDIR}${PREFIX}/bin
48 ${INSTALL_MAN} ${WRKSRC}/html2text.1.gz ${STAGEDIR}${MANPREFIX}/man/man1
49 ${INSTALL_MAN} ${WRKSRC}/html2textrc.5.gz ${STAGEDIR}${MANPREFIX}/man/man5
51 [FILE:674:descriptions/desc.single]
52 html2text is a command line utility, written in C++, that converts
53 HTML documents (HTML 3.2) into plain text (ISO 8859-1).
55 Each HTML document is loaded from a location indicated by an URI or read
56 from standard input, and formatted into a stream of plain text characters
57 that is written to standard output or into an output-file. The input-URI
58 may specify a remote site, from that the documents are loaded with the
59 Hypertext Transfer Protocol (HTTP). The program is even able to preserve
60 the original positions of table fields and accepts also syntactically
61 incorrect input, attempting to interpret it "reasonably". The rendering
62 is largely customisable through an RC file.
66 000b39d5d910b867ff7e087177b470a1e26e2819920dcffd5991c33f6d480392 130088 html2text-1.3.2a.tar.gz
69 [FILE:76:manifests/plist.single]
71 share/man/man1/html2text.1.gz
72 share/man/man5/html2textrc.5.gz
75 [FILE:902:patches/patch-configure]
76 --- configure.orig 2004-01-12 15:47:18 UTC
78 @@ -38,8 +38,7 @@ int main(int, char **) {
83 -for i in "CC" "g++" "cc" "$CC"; do
84 +for i in "$CXX" "c++"; do
85 if $i -c $tmp_file.C 2>/dev/null; then
88 @@ -205,12 +204,19 @@ cat <<EOF >$tmp_file.C;
92 -void func() { map<string, string> x; }
94 + map<string, string> x;
98 -if $CXX -c $tmp_file.C 2>/dev/null; then
99 +if $CXX $tmp_file.C 2>/dev/null; then
100 LIBSTDCXX_INCLUDES="";
102 $echo 'works; no need to make "./libstd"';
103 +elif $CXX $tmp_file.C -lstdc++ 2>/dev/null; then
104 + LIBSTDCXX_INCLUDES="";
105 + LIBSTDCXX_LIBS="-lstdc++";
106 + $echo 'works with libstdc++; no need to make "./libstd"';
108 LIBSTDCXX_INCLUDES='-Ilibstd/include';
109 LIBSTDCXX_LIBS='libstd/libstd.a';