git: 1ed14f6c7a4d - main - japanese/aobook: Update 2.0.3 => 2.0.4

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Mon, 17 Mar 2025 03:04:36 UTC
The branch main has been updated by vvd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1ed14f6c7a4da650a5c192039dd9989c92231b32

commit 1ed14f6c7a4da650a5c192039dd9989c92231b32
Author:     mew14930xvi <mew14930xvi@inbox.lv>
AuthorDate: 2025-03-17 02:49:49 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-03-17 02:49:49 +0000

    japanese/aobook: Update 2.0.3 => 2.0.4
    
    Changelog:
    https://gitlab.com/azelpg/aobook/-/blob/v2.0.4/ChangeLog
    
    PR:     285455
---
 japanese/aobook/Makefile               | 10 +++-------
 japanese/aobook/distinfo               |  6 +++---
 japanese/aobook/files/patch-src_main.c | 11 +++++++++++
 3 files changed, 17 insertions(+), 10 deletions(-)

diff --git a/japanese/aobook/Makefile b/japanese/aobook/Makefile
index d50838df62ff..5c14b189f532 100644
--- a/japanese/aobook/Makefile
+++ b/japanese/aobook/Makefile
@@ -1,11 +1,11 @@
 PORTNAME=	aobook
 DISTVERSIONPREFIX=	v
-DISTVERSION=	2.0.3
+DISTVERSION=	2.0.4
 CATEGORIES=	japanese
 
 MAINTAINER=	mew14930xvi@inbox.lv
 COMMENT=	Aozora Bunko Text Viewer
-WWW=		http://azsky2.html.xdomain.jp/soft/aobook.html
+WWW=		https://azelpg.gitlab.io/azsky2/soft/aobook.html
 
 LICENSE=	MIT OFL11
 LICENSE_COMB=	multi
@@ -16,7 +16,7 @@ LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
 		libfreetype.so:print/freetype2 \
 		libpng16.so:graphics/png
 
-USES=		compiler:c11 desktop-file-utils iconv jpeg ninja pkgconfig xorg
+USES=		compiler:c11 iconv:wchar_t jpeg ninja pkgconfig xorg
 
 USE_GITLAB=	yes
 GL_ACCOUNT=	azelpg
@@ -30,10 +30,6 @@ ALL_TARGET=	${PORTNAME}
 BUILD_WRKSRC=	${WRKSRC}/build
 INSTALL_WRKSRC=	${BUILD_WRKSRC}
 
-post-extract:
-		@${REINPLACE_CMD} -e "/HELP_TEXT/s/exe/${PORTNAME}/" \
-			${WRKSRC}/src/main.c
-
 post-install:
 		${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
 
diff --git a/japanese/aobook/distinfo b/japanese/aobook/distinfo
index 11ed2e84b7ce..3b665017106e 100644
--- a/japanese/aobook/distinfo
+++ b/japanese/aobook/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1715406939
-SHA256 (aobook-v2.0.3.tar.bz2) = 20c05cf8b6414375a394b63ad886759c1896e897d26312269b0c9f0a09bcaed8
-SIZE (aobook-v2.0.3.tar.bz2) = 345026
+TIMESTAMP = 1742090486
+SHA256 (aobook-v2.0.4.tar.bz2) = eca5cf68608ebe89d1f4ce50e42afc54324d67c5137e0f63ee62e12410cab6b9
+SIZE (aobook-v2.0.4.tar.bz2) = 349119
diff --git a/japanese/aobook/files/patch-src_main.c b/japanese/aobook/files/patch-src_main.c
new file mode 100644
index 000000000000..27094c47183b
--- /dev/null
+++ b/japanese/aobook/files/patch-src_main.c
@@ -0,0 +1,11 @@
+--- src/main.c.orig	2025-03-16 00:42:53 UTC
++++ src/main.c
+@@ -62,7 +62,7 @@ GlobalData *g_globaldat;
+ 
+ #define CONFIG_FILENAME  "main.conf"
+ 
+-#define _HELP_TEXT "[usage] exe <file>\n\n" \
++#define _HELP_TEXT "[usage] aobook <file>\n\n" \
+  "--help-mlk : show mlk options"
+ 
+ //----------------------