git: fc3a050cbe5e - main - math/ess: Fix Emacs deprecation warning

From: Rainer Hurling <rhurlin_at_FreeBSD.org>
Date: Sun, 24 Sep 2023 17:32:28 UTC
The branch main has been updated by rhurlin:

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

commit fc3a050cbe5e2e0d45d25cfd7ccec043720fc65f
Author:     Rainer Hurling <rhurlin@FreeBSD.org>
AuthorDate: 2023-09-24 17:23:06 +0000
Commit:     Rainer Hurling <rhurlin@FreeBSD.org>
CommitDate: 2023-09-24 17:31:57 +0000

    math/ess: Fix Emacs deprecation warning
    
    Fix 'Package cl is deprecated' warning for Emacs by replacing all remaining uses of cl with cl-lib.
---
 math/ess/Makefile | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/math/ess/Makefile b/math/ess/Makefile
index 609c16130c4b..8514c3674396 100644
--- a/math/ess/Makefile
+++ b/math/ess/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	ess
 DISTVERSION=	18.10.2
-PORTREVISION=	16
+PORTREVISION=	17
 CATEGORIES=	math
 MASTER_SITES=	http://ess.r-project.org/downloads/ess/ \
 		http://stat.ethz.ch/ESS/downloads/ess/
@@ -32,6 +32,13 @@ post-patch:
 		 s|share/info|${INFO_PATH}|' ${WRKSRC}/Makeconf
 	@${REINPLACE_CMD} -e \
 		'/^PDFs/s|=.*|=|' ${WRKSRC}/doc/Makefile
+	@${REINPLACE_CMD} -e \
+		"s|require 'cl)|require 'cl-lib)|g" \
+		${WRKSRC}/lisp/julia-mode.el
+	@${REINPLACE_CMD} -e \
+		"/require 'cl)/d" \
+		${WRKSRC}/lisp/ess-tracebug.el \
+		${WRKSRC}/lisp/ess.el \
 
 post-install:
 	@${CP} ${WRKSRC}/lisp/*.el ${STAGEDIR}${PREFIX}/share/emacs/site-lisp/ess/