Ravenports generated: 02 Dec 2019 21:21
[ravenports.git] / bucket_57 / html2text
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               html2text
4 VERSION=                1.3.2a
5 KEYWORDS=               textproc
6 VARIANTS=               standard
7 SDESC[standard]=        Converts HTML documents into plain text
8 HOMEPAGE=               http://www.mbayer.de/html2text/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            http://www.mbayer.de/html2text/downloads/
13 DISTFILE[1]=            html2text-1.3.2a.tar.gz:main
14 DF_INDEX=               1
15 SPKGS[standard]=        single
16
17 OPTIONS_AVAILABLE=      none
18 OPTIONS_STANDARD=       none
19
20 USES=                   c++:single
21
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
27 LICENSE_SCHEME=         solo
28
29 FPC_EQUIVALENT=         textproc/html2text
30
31 MUST_CONFIGURE=         yes
32
33 CXXFLAGS=               -Wno-write-strings
34                         -Wno-deprecated-declarations
35
36 post-patch:
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}
41 .endfor
42 .for fle in Area.h HTMLControl.h Properties.h format.h
43         ${REINPLACE_CMD} -e 's/<istream>/<iostream>/' ${WRKSRC}/${fle}
44 .endfor
45
46 do-install:
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
50
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).
54
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.
63
64
65 [FILE:102:distinfo]
66 000b39d5d910b867ff7e087177b470a1e26e2819920dcffd5991c33f6d480392       130088 html2text-1.3.2a.tar.gz
67
68
69 [FILE:76:manifests/plist.single]
70 bin/html2text
71 share/man/man1/html2text.1.gz
72 share/man/man5/html2textrc.5.gz
73
74
75 [FILE:902:patches/patch-configure]
76 --- configure.orig      2004-01-12 15:47:18 UTC
77 +++ configure
78 @@ -38,8 +38,7 @@ int main(int, char **) {
79    return 0;
80  }
81  EOF
82 -CXX=unknown;
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
86      CXX="$i";
87      break;
88 @@ -205,12 +204,19 @@ cat <<EOF >$tmp_file.C;
89  #include <new>
90  #include <vector>
91  using namespace std;
92 -void func() { map<string, string> x; }
93 +int main(void) {
94 +  map<string, string> x;
95 +  return 0;
96 +}
97  EOF
98 -if $CXX -c $tmp_file.C 2>/dev/null; then
99 +if $CXX $tmp_file.C 2>/dev/null; then
100    LIBSTDCXX_INCLUDES="";
101    LIBSTDCXX_LIBS="";
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"';
107  else
108    LIBSTDCXX_INCLUDES='-Ilibstd/include';
109    LIBSTDCXX_LIBS='libstd/libstd.a';
110