Update to 2.0.4, a bugfix release.
And while here, also:
- Fix building of documentation (--without-doc is explicitly needed when DOCS is off, otherwise it defaulted to on, causing documentation to be build regardless of DOCS setting.)
- reformat Makefile according to portfmt and portclippy
PR: 252295
Submitted by: Derek Schrock <dereks@lifeofadishwasher.com>
One open concern is:
If DOCS is on, then the configure script uses:
- lynx
- w3m
- elinks
in this particular order to distill html to text version of manual.
Right now, the port's Makefile sets the build dependency to www/lynx
deliberately. On my build system (it could as well concern many other users)
there is already elinks installed that could be used for this purpose.
Some other user(s) may have w3m installed and they do not need to have
another browser installed.
My thought was to enclose the particular BUILD_DEPEND line into
.if ... .endif block to check for ${LOCALBASE}/bin/elinks and/or
${LOCALBASE}/bin/w3m and if none of them is present, only then
use www/lynx as a fallback.
Some other porters stated that these .if blocks are ill-advised,
but by looking into various ports Makefiles, I can see that this
approach is quite widely used.
What are *your* thoughts about this?