Subject: [PATCH] gnu: emacs-smartparens: Fix package cl deprecation.
From: Nicolas Graves <[email-masked]>
To: [email-masked]
Cc: [email-masked]
Date: Sun, 22 Jan 2023 17:29:13 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/emacs-xyz.scm (emacs-smartparens):
[arguments] Fix package cl deprecation.
---
 gnu/packages/emacs-xyz.scm | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index ed5c3bd71d..8bde2825f1 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -10575,6 +10575,17 @@ (define-public emacs-smartparens
        (sha256
         (base32 "0zij2f2rjjym98w68jkp10n1ckpfprlkk217c3fg16hz5nq4vnm6"))))
     (build-system emacs-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'fix-deprecated-cl-warning
+            (lambda _
+              (substitute* "smartparens.el"
+                ((string-append
+                  "\\(eval-when-compile \\(require 'cl\\)\\) "
+                  " ; for `lexical-let'")
+                 "")))))))
     (propagated-inputs
      (list emacs-dash emacs-markdown-mode))
     (home-page "https://github.com/Fuco1/smartparens")
-- 
2.39.1