html2text is a command line utility, written in C++, that converts
HTML documents (HTML 3.2) into plain text (ISO 8859-1).
Each HTML document is loaded from a location indicated by an 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 with the Hypertext Transfer Protocol (HTTP). The program is
even able to preserve the original positions of table fields and
accepts also syntactically incorrect input, attempting to interpret it
"reasonably". The rendering is largely customisable through an RC
file.
textproc/html2text: fix build with clang 16
Since clang 16 (and gcc 11) the default C++ standard is now gnu++17.
Because textproc/html2text's Makefile does not explicitly set its C++
standard, this leads to several errors:
/usr/local/lib/bison.cc:429:3: error: ISO C++17 does not allow 'register'
storage class specifier [-Wregister]
register int yystate;
^~~~~~~~~
/usr/local/lib/bison.cc:430:3: error: ISO C++17 does not allow 'register'
storage class specifier [-Wregister]
register int yyn;
^~~~~~~~~
/usr/local/lib/bison.cc:431:3: error: ISO C++17 does not allow 'register'
storage class specifier [-Wregister]
register short *yyssp;
^~~~~~~~~
/usr/local/lib/bison.cc:432:3: error: ISO C++17 does not allow 'register'
storage class specifier [-Wregister]
register YY_HTMLParser_STYPE *yyvsp;
^~~~~~~~~
Add USE_CXXSTD=gnu++98 to avoid these errors.
PR: 271031
Approved by: maintainer timeout (2 weeks)
MFH: 2023Q2
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
Fix CONFLICTS entries of multiple ports
There have been lots of missing CONFLICTS_INSTALL entries, either
because conflicting ports were added without updating existing ports,
due to name changes of generated packages, due to mis-understanding
the format and semantics of the conflicts entries, or just due to
typoes in package names.
This patch is the result of a comparison of all files contained in
the official packages with each other. This comparison was based on
packages built with default options and may therefore have missed
further conflicts with optionally installed files.
Where possible, version numbers in conflicts entries have been
generalized, some times taking advantage of the fact that a port
(Only the first 15 lines of the commit message are shown above )
*/*: Remove redundant '-[0-9]*' from CONFLICTS
The conflict checks compare the patterns first against the package
names without version (as reported by "pkg query "%n"), then - if
there was no match - agsinst the full package names including the
version (as reported by "pkg query "%n-%v").
Many CONFLICTS definitions used patterns like "bash-[0-9]*" to filter
for the bash package in any version. But that pattern is functionally
identical with just "bash".
Approved by: portmgr (blanket)
textproc/html2text: Update CONFLICTS
The CONFLICTS definition did only match conflicting packages built
for Python-2.7, not for later Python versions.
I have not checked whether CONFLICTS_INSTALL would suffice as used
in the conflicting ports. The PORTREVISION has not been bumped since
this parameter is relevant for port building, less so for installing
from a package (which detects the conflicting files).
Approved by: bapt (maintainer)
Revert the upgrade to 2.0.0 it is not backward compatible
and break minixmlto in some cases
bump portepoch
PR: 250028
Reported by: Stefan Ehmann <shoesoft@gmx.net>
MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.
While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.
Also, replace some EXTRACT_SUFX occurences with USES=tar:*.
Checked by: make fetch-urlall-list
With hat: portmgr
Sponsored by: Absolight
html2text uses patch letters which look like "alpha" and "beta" (a and b) so
tell portscout that these versions are actually newer.
Reviewed by: zi
Feature safe: yes