# HG changeset patch # User Hans-G?nter Theisgen # Date 1646923699 -3600 # Node ID 699084c53652ef48517d9aba054eec76352f57d3 # Parent 2a8e7fee7f1427a67d58d9ee9a52fdf4c01c2135 updated html2text (1.3.2a -> 2.0.0) diff -r 2a8e7fee7f14 -r 699084c53652 html2text/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/html2text/description.txt Thu Mar 10 15:48:19 2022 +0100 @@ -0,0 +1,16 @@ +Html2text is a command line utility, written in C++, that converts HTML +documents into plain text. + +Each HTML document is loaded from a location indicated by a URI or read +from standard input, and formatted into a stream of plain text characters +that is written to standard output or into an output-file. +The input-URI may specify a remote site, from that the documents are +loaded via the Hypertext Transfer Protocol (HTTP). + +The program is able to preserve the original positions of table fields, +allows you to set the screen width (to a given number of output +characters), and accepts also syntactically incorrect input (attempting +to interpret it "reasonably"). Boldface and underlined text is rendered +by default with backspace sequences (which is particulary usefull when +piping the program's output into "less" or an other pager). All rendering +properties can largely be costomised trough an RC-file. diff -r 2a8e7fee7f14 -r 699084c53652 html2text/receipt --- a/html2text/receipt Thu Mar 10 14:02:17 2022 +0100 +++ b/html2text/receipt Thu Mar 10 15:48:19 2022 +0100 @@ -1,17 +1,18 @@ # SliTaz package receipt. PACKAGE="html2text" -VERSION="1.3.2a" +VERSION="2.0.0" CATEGORY="utilities" -SHORT_DESC="Command line utility that converts HTML into plain text" +SHORT_DESC="Command line utility that converts HTML into plain text." MAINTAINER="al.bobylev@gmail.com" LICENSE="GPL" WEB_SITE="http://www.mbayer.de/html2text/" + TARBALL="$PACKAGE-$VERSION.tar.gz" -WGET_URL="http://ftp.ibiblio.org/pub/linux/apps/www/converters/$TARBALL" +WGET_URL="https://github.com/grobian/$PACKAGE/archive/v$VERSION.tar.gz" -DEPENDS="" -BUILD_DEPENDS="" +DEPENDS="gcc83-lib-base" +BUILD_DEPENDS="gcc83" # What is the latest version available today? current_version() @@ -24,21 +25,19 @@ compile_rules() { # http://www.mbayer.de/html2text/downloads/patch-utf8-html2text-1.3.2a.diff - patch -p1 -i $stuff/patch-utf8-html2text-1.3.2a.diff +# patch -p1 -i $stuff/patch-utf8-html2text-1.3.2a.diff + + export CC=gcc-83 + export CXX=g++-83 ./configure $CONFIGURE_ARGS - sed -i 's|/usr/local/bin|/usr/bin|; s|/usr/local/man|/usr/share/man|; - s|$(BINDIR)|$(DESTDIR)&|; s|$(MANDIR)|$(DESTDIR)&|; s|$(DOCDIR)|$(DESTDIR)&|' \ - $src/Makefile - make - mkdir -p $install/usr/bin $install/usr/share/man/man1 \ - $install/usr/share/man/man5 - make install + sed -i 's|/usr/local|/usr|' Makefile + make DESTDIR=$DESTDIR + make install DESTDIR=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - cp -a $install/* $fs - rm -r $fs/usr/share/doc + cook_copy_folders bin }