diff --git a/deskutils/xchm/Makefile b/deskutils/xchm/Makefile index a3017a6e6754..b97f7318139c 100644 --- a/deskutils/xchm/Makefile +++ b/deskutils/xchm/Makefile @@ -1,30 +1,30 @@ PORTNAME= xchm -PORTVERSION= 1.37 -PORTREVISION= 2 +PORTVERSION= 1.38 +PORTREVISION= 0 CATEGORIES= deskutils MAINTAINER= dinoex@FreeBSD.org COMMENT= Windows HTML Help (.chm) viewer for UNIX WWW= https://github.com/rzvncj/xCHM LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libchm.so:misc/chmlib USES= compiler:c++11-lang desktop-file-utils localbase autoreconf USE_GITHUB= yes GH_ACCOUNT= rzvncj GH_PROJECT= xCHM USE_WX= 3.0+ WX_CONF_ARGS= absolute GNU_CONFIGURE= yes GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share LDFLAGS+= -lpthread OPTIONS_DEFINE= NLS OPTIONS_SUB= yes NLS_USES= gettext NLS_CONFIGURE_ENABLE= nls .include diff --git a/deskutils/xchm/distinfo b/deskutils/xchm/distinfo index ce5a33640f65..3dbde7eba132 100644 --- a/deskutils/xchm/distinfo +++ b/deskutils/xchm/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1729758617 -SHA256 (rzvncj-xCHM-1.37_GH0.tar.gz) = 16d10b52bd98706c639866eebc30b904a963d10dc76ea7dc65fb20342e9f70a7 -SIZE (rzvncj-xCHM-1.37_GH0.tar.gz) = 647001 +TIMESTAMP = 1770701952 +SHA256 (rzvncj-xCHM-1.38_GH0.tar.gz) = f6db981faa426b29d432e0fcfc83fc5b6192972cd02fe9412b0348f425e9b60d +SIZE (rzvncj-xCHM-1.38_GH0.tar.gz) = 647679 diff --git a/deskutils/xchm/files/patch-chmhtmlwindow.cpp b/deskutils/xchm/files/patch-chmhtmlwindow.cpp new file mode 100644 index 000000000000..eeec0bd27d62 --- /dev/null +++ b/deskutils/xchm/files/patch-chmhtmlwindow.cpp @@ -0,0 +1,11 @@ +--- src/chmhtmlwindow.cpp.orig 2026-02-01 10:31:54 UTC ++++ src/chmhtmlwindow.cpp +@@ -42,7 +42,7 @@ class CHMDropTarget : public wxFileDropTarget { (publi + + bool OnDropFiles(wxCoord /* x */, wxCoord /* y */, const wxArrayString& filenames) override + { +- if (filenames.size() == 1 && filenames[0].Lower().ends_with(".chm")) { ++ if (filenames.size() == 1 && filenames[0].Lower().EndsWith(".chm")) { + _frame->LoadCHM(filenames[0]); + return true; + }