git: 284726dcce77 - main - japanese/eblook: Take maintainership

From: Kousuke Kannagi <mce_at_FreeBSD.org>
Date: Thu, 10 Sep 2026 08:10:22 UTC
The branch main has been updated by mce:

URL: https://cgit.FreeBSD.org/ports/commit/?id=284726dcce77bf61584845f97be860827249d119

commit 284726dcce77bf61584845f97be860827249d119
Author:     Kousuke Kannagi <mce@FreeBSD.org>
AuthorDate: 2026-09-08 00:41:38 +0000
Commit:     Kousuke Kannagi <mce@FreeBSD.org>
CommitDate: 2026-09-10 08:05:02 +0000

    japanese/eblook: Take maintainership
    
    Remove iconv-related processing, as base's iconv is used.
    Add a patch for cases where simd(7) is enabled.
    
    PR:             298303
    Approved by:    fluffy (mentor)
---
 japanese/eblook/Makefile             | 20 ++++++--------------
 japanese/eblook/files/patch-eblook.c | 20 ++++++++++++++++++++
 2 files changed, 26 insertions(+), 14 deletions(-)

diff --git a/japanese/eblook/Makefile b/japanese/eblook/Makefile
index 561944ee1ef4..62640c51fd25 100644
--- a/japanese/eblook/Makefile
+++ b/japanese/eblook/Makefile
@@ -1,11 +1,11 @@
 PORTNAME=	eblook
-PORTVERSION=	1.6.1
-PORTREVISION=	10
+DISTVERSION=	1.6.1
+PORTREVISION=	11
 CATEGORIES=	japanese textproc
 MASTER_SITES=	http://openlab.ring.gr.jp/edict/eblook/dist/
 DIST_SUBDIR=	eb
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	mce@FreeBSD.org
 COMMENT=	Command to lookup words in EB format dictionaries
 WWW=		http://openlab.ring.gr.jp/edict/eblook/index.html.ja
 
@@ -14,26 +14,18 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 
 LIB_DEPENDS=	libeb.so:japanese/eb
 
-USES=		iconv
+USES=		gettext-runtime iconv
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--with-eb-conf=${PREFIX}/etc/eb.conf
-CPPFLAGS+=	-I${ICONV_PREFIX}/include
-LIBS+=		-L${ICONV_PREFIX}/lib ${ICONV_LIB}
 
 INFO=		eblook
 PLIST_FILES=	bin/eblook
-PORTDOCS=	AUTHORS COPYING ChangeLog NEWS README
+PORTDOCS=	AUTHORS ChangeLog NEWS README
 
 OPTIONS_DEFINE=	DOCS
 
-.include <bsd.port.pre.mk>
-
-.if !empty(ICONV_LIB)
-CONFIGURE_ARGS+=ac_cv_func_iconv=yes
-.endif
-
 post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/japanese/eblook/files/patch-eblook.c b/japanese/eblook/files/patch-eblook.c
new file mode 100644
index 000000000000..12d55d57e52d
--- /dev/null
+++ b/japanese/eblook/files/patch-eblook.c
@@ -0,0 +1,20 @@
+--- eblook.c.orig	2026-09-07 23:53:53 UTC
++++ eblook.c
+@@ -765,7 +765,7 @@ parse_command_line (command_line, argv)
+ 	argv[num++] = p;
+ 	reserved = 1;
+       }
+-      strcpy (p, p + 1);
++      memmove (p, p + 1, strlen (p));
+       p--;
+       in_quote = !in_quote;
+       break;
+@@ -779,7 +779,7 @@ parse_command_line (command_line, argv)
+       break;
+ 
+     case '\\':
+-      strcpy (p, p + 1);
++      memmove (p, p + 1, strlen (p));
+     default:
+       if (!reserved) {
+ 	argv[num++] = p;