501d656940
2023-01-21 Tatsuya Kinoshita <tats@debian.org>
* NEWS: Update NEWS to 0.5.3+git20230121.
2023-01-15 Tatsuya Kinoshita <tats@debian.org>
* scripts/w3mman/w3mman2html.cgi.in:
Add GROFF_NO_SGR=1 to w3mman2html.cgi for non-Debian groff.
Bug-Debian: https://github.com/tats/w3m/pull/238
Bug-Debian: https://github.com/tats/w3m/issues/201
* scripts/w3mman/w3mman2html.cgi.in:
Revert "Turn ansi escape sequences into html tags".
This reverts commit 44af9271e0e984544762e2212549f134c86b4418.
cf. https://github.com/tats/w3m/pull/238
2023-01-12 Tatsuya Kinoshita <tats@debian.org>
* fm.h, rc.c: Do not expand config value of tmp_dir.
* config.h.dist, config.h.in, configure, configure.ac, rc.c:
Use faccessat for rc_dir and tmp_dir.
* local.c: Allow writeLocalCookie even when no_rc_dir.
* main.c, rc.c: Call wtf_init in sync_with_option.
* rc.c: Avoid modifying read-only rc_dir.
* fm.h, main.c, proto.h, rc.c: Make tmp_dir if not found.
2023-01-09 Tatsuya Kinoshita <tats@debian.org>
* NEWS: Prepare NEWS for w3m 0.5.3+git202301XX.
* doc-de/FAQ.html, doc-jp/FAQ.html, doc/FAQ.html:
Remove obsolete documents.
* doc-de/FAQ.html, doc-de/MANUAL.html:
Wrap long lines to avoid Lintian warnings.
2023-01-07 Tatsuya Kinoshita <tats@debian.org>
* file.c: Only read a first title.
* file.c, fm.h: Revert "Only read title when in head".
This reverts commit 0189e8aa5c4c4919a9bbc4dcbe0e521aada51e3c.
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1020215
2023-01-06 Tatsuya Kinoshita <tats@debian.org>
* file.c: Indentation fix for HTMLtagproc1.
2023-01-06 Robert Alm Nilsson <robert@robalni.org>
* file.c, fm.h: Only read title when in head.
Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1020215
2023-01-06 Tatsuya Kinoshita <tats@debian.org>
* libwc/charset.c: Avoid locale sensitive tolower in wc_charset_to_ces.
2023-01-06 Sertaç Ö. Yıldız <sertacyildiz@gmail.com>
* libwc/charset.c:
Fix charset declaration parser fails with turkish locale.
Origin: https://bugzilla-attachments.redhat.com/attachment.cgi?id=160014
Bug-Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=249675
* history.c: Use st_mtime instead of st_mtim.tv_sec to compile on macos.
cf. https://github.com/tats/w3m/pull/247
2023-01-06 Rene Kita <mail@rkta.de>
* html.c, html.h, tagtable.tab: Recognize link targets in dfn elements.
Refactor html.c. Align in html.c.
Origin: https://github.com/tats/w3m/pull/259
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1018696
* Makefile.in, form.c, main.c, util.c, util.h:
Handle failed system calls.
* display.c, display.h, file.c, form.c, main.c, proto.h, terms.h:
Move declarations to appropiate header files.
Origin: https://github.com/tats/w3m/pull/257
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=398989
* entity.js, etc.c, table.c, tests/allentity.expected:
* tests/allentity.html: Skip soft hyphen when reading token.
Fix generated HTML for entity test.
Origin: https://github.com/tats/w3m/pull/256
Bug-Debian: https://github.com/tats/w3m/issues/224
Bug-Debian: https://github.com/tats/w3m/issues/258
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=830173
* file.c: Check LESSOPEN to avoid undefined behaviour.
Refactor lessopen_stream.
Origin: https://github.com/tats/w3m/pull/254
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=991608
2023-01-05 Markus Hiereth <translation@hiereth.de>
* po/de.po: Update German message catalogue.
Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1011945#10
2023-01-05 Rene Kita <mail@rkta.de>
* buffer.c: Exit with error if a new buffer can't be allocated.
Origin: 1f88544c1a
Bug-Debian: https://github.com/tats/w3m/pull/232
Bug-Debian: https://github.com/tats/w3m/pull/233
* history.c, history.h:
Merge history file if it was modified after start.
* history.h, proto.h: Move declarations to the appropriate header file.
* history.c: Add comment to explain placement of the ifdef.
* history.c, proto.h: Let loadHistory return an error code.
* history.c: Use 'goto fail' to remove code duplication.
Origin: https://github.com/tats/w3m/pull/247
Bug-Debian: https://github.com/tats/w3m/issues/176
2023-01-05 Alberto Fanjul <albertofanjul@gmail.com>
* scripts/w3mman/w3mman2html.cgi.in:
Turn ansi escape sequences into html tags.
Origin: https://github.com/tats/w3m/pull/238
Bug-Debian: https://github.com/tats/w3m/issues/201
2023-01-04 Tatsuya Kinoshita <tats@debian.org>
* po/de.po, po/it.po, po/ja.po, po/sv_SE.po, po/w3m.pot, po/zh_CN.po:
* po/zh_TW.po: Update PO strings.
* doc/MANUAL.html, doc/README.img, libwc/wc_types.h, main.c, rc.c:
English fixes.
cf. https://github.com/tats/w3m/pull/241
2023-01-04 Rene Kita <mail@rkta.de>
* rc.c: Remove unused variable.
* table.c: Remove a warning for bzero with GCC 12.
* file.c: Fix potential null pointer dereference.
* .github/workflows/build.yml:
Don't error out on deprecated declaration warnings.
Origin: https://github.com/tats/w3m/pull/255
cf. https://github.com/tats/w3m/issues/252
2023-01-04 nico <smnicolas@gmail.com>
* doc/MANUAL.html, doc/w3m.1, fm.h, main.c, rc.c, terms.c:
Add high-intensity colors option and cli flag.
Origin: https://github.com/tats/w3m/pull/251
cf. https://github.com/tats/w3m/issues/250
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=626291
2023-01-04 Trafficone <trafficone@gmail.com>
* doc/README.SSL, doc/README.keymap, doc/README.menu: Translate from
doc-jp.
* doc/README.cookie, doc/README.func, doc/README.img, doc/README.m17n:
* doc/README.passwd: Clarified wording. Minor grammar changes.
Origin: https://github.com/tats/w3m/pull/241
2022-12-25 Tatsuya Kinoshita <tats@debian.org>
* configure: Update configure with acinclude.m4.
2022-12-25 Sam James <sam@gentoo.org>
* acinclude.m4: Fix configure tests broken with Clang 16.
Origin: https://github.com/tats/w3m/pull/248
2022-12-25 Rin Okuyama <rokuyama.rk@gmail.com>
* image.c, terms.c:
For sixel, no need to round image size to multiple of character size.
Origin: https://github.com/tats/w3m/pull/246
* image.c: Display resized image for OSC 5379 (mlterm).
Origin: https://github.com/tats/w3m/pull/245
2022-12-25 Rene Kita <mail@rkta.de>
* doc/README.siteconf: Say what the comment character is.
Use the comment character in Examples.
Origin: https://github.com/tats/w3m/pull/237
* main.c: Retry if loading of a file fails when argv_is_url.
Origin: https://github.com/tats/w3m/pull/235
Bug-Debian: https://github.com/tats/w3m/issues/210
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=537761
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=946440
2022-12-25 NRK <nrk@disroot.org>
* image.c: remove duplicate declaration.
* cookie.c, entity.c, file.c, frame.c, func.c, image.c, linein.c:
* mailcap.c, main.c, rc.c, rc.h, table.c, terms.c, terms.h:
* w3mbookmark.c, w3mhelperpanel.c:
fix all -Wmissing-prototypes warnings.
* file.c, history.c, history.h, indep.c, indep.h, mailcap.c, proto.h:
* rc.c, terms.c, url.c: fix some -Wstrict-prototypes warnings.
Origin: https://github.com/tats/w3m/pull/234
2022-12-25 Rene Kita <mail@rkta.de>
* .github/workflows/build.yml:
Add GitHub Action to build source when pushing.
Origin: https://github.com/tats/w3m/pull/228
2022-12-21 Tatsuya Kinoshita <tats@debian.org>
* po/de.po, po/it.po, po/ja.po, po/sv_SE.po, po/w3m.pot, po/zh_CN.po:
* po/zh_TW.po: Update PO strings.
2022-12-21 Rene Kita <mail@rkta.de>
* etc.c, fm.h, history.c, rc.c:
Add option to set directory for temporary files.
Origin: https://github.com/tats/w3m/pull/219
cf. https://github.com/tats/w3m/issues/130
2022-12-21 Yash Lala <yashlala@gmail.com>
* rc.c: Use `Strnew_charp()` to create `char *` instead of `strdup()`.
* rc.c:
refactor: Substitute some clunky code with a `strdup()`.
* doc/FAQ.html, doc/MANUAL.html, doc/w3m.1, rc.c:
Set `rc_dir` based on `W3M_DIR` environment variable.
Origin: https://github.com/tats/w3m/pull/207
cf. https://github.com/tats/w3m/issues/130
2022-12-20 Tatsuya Kinoshita <tats@debian.org>
* etc.c: Fix potential overflow in checkType.
* etc.c:
Fix m17n backspace handling causes out-of-bounds write in checkType.
[CVE-2022-38223]
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1019599
Bug-Debian: https://github.com/tats/w3m/issues/242
86 lines
2.3 KiB
Makefile
86 lines
2.3 KiB
Makefile
# $NetBSD: Makefile.common,v 1.76 2023/04/27 13:26:19 wiz Exp $
|
|
#
|
|
# used by www/w3m/Makefile
|
|
# used by www/w3m-img/Makefile
|
|
|
|
DISTNAME= w3m-${W3M_VERS}
|
|
CATEGORIES= www
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=tats/}
|
|
GITHUB_TAG= v${W3M_VERS}
|
|
|
|
MAINTAINER= uebayasi@NetBSD.org
|
|
HOMEPAGE= http://w3m.sourceforge.net/
|
|
# or https://github.com/tats/w3m
|
|
# or https://packages.qa.debian.org/w/w3m.html
|
|
|
|
WRKSRC= ${WRKDIR}/w3m-${W3M_VERS:S/+/-/}
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_LANGUAGES= c c++
|
|
USE_TOOLS+= gmake # Needed for some combinations of options...
|
|
USE_TOOLS+= msgfmt
|
|
USE_PKGLOCALEDIR= yes
|
|
|
|
W3M_VERS= 0.5.3+git20230121
|
|
W3M_PKGVERS= ${W3M_VERS:S/+git/.0./}
|
|
|
|
# For w3mman, xface2xpm, cgi scripts.
|
|
USE_TOOLS+= perl:run pax pkg-config
|
|
|
|
DOCDIR= share/doc/w3m
|
|
|
|
_W3M_USE_IMAGE?= NO
|
|
|
|
.include "options.mk"
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
# not supported by gcc 5
|
|
BUILDLINK_TRANSFORM+= rm:-Wnull-dereference
|
|
|
|
# Configurable by environment variables at run-time.
|
|
CONFIGURE_ARGS+= --with-charset=US-ASCII
|
|
|
|
# This *should* be set at run-time.
|
|
CONFIGURE_ARGS+= --disable-messagel10n
|
|
|
|
CONFIGURE_ARGS+= --disable-help_cgi
|
|
CONFIGURE_ARGS+= --enable-color
|
|
CONFIGURE_ARGS+= --enable-cookie
|
|
CONFIGURE_ARGS+= --enable-m17n
|
|
CONFIGURE_ARGS+= --enable-mouse
|
|
CONFIGURE_ARGS+= --enable-unicode
|
|
CONFIGURE_ARGS+= --with-browser=
|
|
CONFIGURE_ARGS+= --with-termlib
|
|
CONFIGURE_ARGS+= --with-editor=vi
|
|
CONFIGURE_ARGS+= --with-gc=${BUILDLINK_PREFIX.boehm-gc}
|
|
CONFIGURE_ARGS+= --with-mailer=${MAIL_CMD:Q}
|
|
CONFIGURE_ARGS+= --with-ssl=${SSLBASE:Q}
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
|
|
|
SUBST_CLASSES+= man-ja
|
|
SUBST_MESSAGE.man-ja= Fixing the path to Japanese manual pages.
|
|
SUBST_STAGE.man-ja= pre-configure
|
|
SUBST_FILES.man-ja= Makefile.in config.h.dist
|
|
SUBST_SED.man-ja= -e 's|/ja/|/ja_JP.eucJP/|g'
|
|
|
|
SUBST_CLASSES+= fh
|
|
SUBST_MESSAGE.fh= Rename file_handle.
|
|
SUBST_STAGE.fh= pre-configure
|
|
SUBST_FILES.fh= istream.*
|
|
SUBST_SED.fh= -e 's/file_handle/file_handle_rofl/g'
|
|
|
|
INSTALLATION_DIRS+= ${DOCDIR}
|
|
|
|
INSTALL_TARGET= install install-helpfile
|
|
|
|
post-install:
|
|
# Use pax to discard uid/gid. Exclude manuals (*.1).
|
|
set -e; cd ${WRKSRC}; pax -r -w -s ',.*\.1$$,,' doc doc-jp \
|
|
${DESTDIR}${PREFIX}/${DOCDIR}
|
|
|
|
.include "../../devel/boehm-gc/buildlink3.mk"
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
.include "../../mk/termcap.buildlink3.mk"
|