the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: html2text
Version: 1.3.2a
Revision: 1022
Description: Advanced HTML to text converter
License: GPL
Maintainer: Chris Zubrzycki
Source: ftp://ftp.ibiblio.org/pub/linux/apps/www/converters/%n-%v.tar.gz
Source-MD5: 6097fe07b948e142315749e6620c9cfc
Patch: %n.patch
GCC: 4.0
SetCC: gcc-4.0
SetCXX: g++-4.0
NoSetCXXFLAGS: true
SetCXXFLAGS: -DAUTO_PTR_BROKEN=1
InstallScript: <<
#!/bin/sh -ex
INSTALL=install
INSTALL_FILE="$INSTALL -p -m 644"
INSTALL_PROGRAM="$INSTALL -p -m 755"
INSTALL_DIR="$INSTALL -d -m 755"
$INSTALL_DIR %i/bin \
%i/share/man/man1 \
%i/share/man/man5
$INSTALL_PROGRAM html2text %i/bin
gunzip html2text.1.gz
$INSTALL_FILE html2text.1 %i/share/man/man1
gunzip html2textrc.5.gz
$INSTALL_FILE html2textrc.5 %i/share/man/man5
<<
DocFiles: CHANGES COPYING CREDITS INSTALL KNOWN_BUGS README TODO
DescDetail: <<
html2text was written because the author wasn't happy with the
output of "lynx -dump" and so he wrote something better.
<<
Homepage: http://userpage.fu-berlin.de/~mbayer/tools/html2text.html
--- html2text-1.3.2a/configure.orig Wed May 25 00:37:00 2005
+++ html2text-1.3.2a/configure Wed May 25 00:37:04 2005
@@ -19,7 +19,7 @@
# Tue Nov 11 21:30:26 CET 2003
-echo='/bin/echo -e'
+echo='/bin/echo'
rm -rf configure-tmp || exit 1;
mkdir configure-tmp || exit 1;
@@ -30,7 +30,7 @@
# $CXX
#
-$echo 'Checking C++ compiler... \c';
+$echo 'Checking C++ compiler... ';
cat <
#include
int main(int, char **) {
@@ -38,18 +38,21 @@
return 0;
}
EOF
-CXX=unknown;
-for i in "CC" "g++" "cc" "$CC"; do
+our_CXX=unknown;
+for i in "$CXX $CXXFLAGS"; do
if $i -c $tmp_file.C 2>/dev/null; then
- CXX="$i";
+ echo " ok $i";
+ our_CXX="$i";
break;
+ else
+ echo " no $i";
fi;
done;
+CXX=$our_CXX;
if test "$CXX" = unknown; then
$echo "Error: Could not find a working C++ compiler.";
exit 1;
fi;
-$echo "use \"$CXX\"";
#
# $SYS_POLL_MISSING
Package: html2text
Version: 1.3.2a
Revision: 1022
Description: Advanced HTML to text converter
License: GPL
Maintainer: Chris Zubrzycki
Source: ftp://ftp.ibiblio.org/pub/linux/apps/www/converters/%n-%v.tar.gz
Source-MD5: 6097fe07b948e142315749e6620c9cfc
Patch: %n.patch
GCC: 4.0
SetCC: gcc-4.0
SetCXX: g++-4.0
NoSetCXXFLAGS: true
SetCXXFLAGS: -DAUTO_PTR_BROKEN=1
InstallScript: <<
#!/bin/sh -ex
INSTALL=install
INSTALL_FILE="$INSTALL -p -m 644"
INSTALL_PROGRAM="$INSTALL -p -m 755"
INSTALL_DIR="$INSTALL -d -m 755"
$INSTALL_DIR %i/bin \
%i/share/man/man1 \
%i/share/man/man5
$INSTALL_PROGRAM html2text %i/bin
gunzip html2text.1.gz
$INSTALL_FILE html2text.1 %i/share/man/man1
gunzip html2textrc.5.gz
$INSTALL_FILE html2textrc.5 %i/share/man/man5
<<
DocFiles: CHANGES COPYING CREDITS INSTALL KNOWN_BUGS README TODO
DescDetail: <<
html2text was written because the author wasn't happy with the
output of "lynx -dump" and so he wrote something better.
<<
Homepage: http://userpage.fu-berlin.de/~mbayer/tools/html2text.html
--- html2text-1.3.2a/configure.orig Wed May 25 00:37:00 2005
+++ html2text-1.3.2a/configure Wed May 25 00:37:04 2005
@@ -19,7 +19,7 @@
# Tue Nov 11 21:30:26 CET 2003
-echo='/bin/echo -e'
+echo='/bin/echo'
rm -rf configure-tmp || exit 1;
mkdir configure-tmp || exit 1;
@@ -30,7 +30,7 @@
# $CXX
#
-$echo 'Checking C++ compiler... \c';
+$echo 'Checking C++ compiler... ';
cat <
#include
int main(int, char **) {
@@ -38,18 +38,21 @@
return 0;
}
EOF
-CXX=unknown;
-for i in "CC" "g++" "cc" "$CC"; do
+our_CXX=unknown;
+for i in "$CXX $CXXFLAGS"; do
if $i -c $tmp_file.C 2>/dev/null; then
- CXX="$i";
+ echo " ok $i";
+ our_CXX="$i";
break;
+ else
+ echo " no $i";
fi;
done;
+CXX=$our_CXX;
if test "$CXX" = unknown; then
$echo "Error: Could not find a working C++ compiler.";
exit 1;
fi;
-$echo "use \"$CXX\"";
#
# $SYS_POLL_MISSING