git: 0c65752da63b - main - textproc/uim-el: Suppress missing lexical-binding cookie warning with Emacs 31

From: MANTANI Nobutaka <nobutaka_at_FreeBSD.org>
Date: Sun, 20 Sep 2026 05:57:52 UTC
The branch main has been updated by nobutaka:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0c65752da63be2ec622da111a07383cb6dde5612

commit 0c65752da63be2ec622da111a07383cb6dde5612
Author:     MANTANI Nobutaka <nobutaka@FreeBSD.org>
AuthorDate: 2026-09-20 05:56:27 +0000
Commit:     MANTANI Nobutaka <nobutaka@FreeBSD.org>
CommitDate: 2026-09-20 05:57:20 +0000

    textproc/uim-el: Suppress missing lexical-binding cookie warning with Emacs 31
---
 textproc/uim-el/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/textproc/uim-el/Makefile b/textproc/uim-el/Makefile
index 75cf8caf588f..af13d470bc21 100644
--- a/textproc/uim-el/Makefile
+++ b/textproc/uim-el/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	uim-el
 PORTVERSION=	1.9.6
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	textproc
 
 MAINTAINER=	nobutaka@FreeBSD.org
@@ -42,6 +42,10 @@ PLIST_SUB+=	DOCSDIR_JA="${DOCSDIR_JA:S,^${PREFIX}/,,}"
 
 OPTIONS_DEFINE=	DOCS
 
+post-patch:
+	@${FIND} ${BUILD_WRKSRC} -name "*.el" -or -name "*.el.in" | \
+		${XARGS} ${REINPLACE_CMD} -e "1s/^/;; -*- lexical-binding: nil; -*-\n/"
+
 pre-configure:
 	cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ./autogen.sh