Subject: bug#45316: [PATCH 07/26] gnu: emacs-flycheck-grammalecte: Adjust following emacs-build-system changes.

From: Maxim Cournoyer <[email-masked]>
Date: Fri, 18 Dec 2020 17:17:04 -0500

* gnu/packages/emacs-xyz.scm (emacs-flycheck-grammalecte)[arguments]{include}:
Extend rather than override %default-include.
{exclude}: Extend rather than override %default-exclude.
* gnu/packages/emacs-xyz.scm (emacs-flycheck-grammalecte): Adjust the
installation directory.
---
 gnu/packages/emacs-xyz.scm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 2702738fc0..202db888d4 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -4558,8 +4558,8 @@ for Flow files.")
         (base32 "1mzmzyik843r4j0ibpwqrxmb0g4xmirrf3lxr010bddkmmxf749a"))))
     (build-system emacs-build-system)
     (arguments
-     `(#:include '("\\.(el|py)$")
-       #:exclude '("^test-profile.el$")
+     `(#:include (cons "^[^/]*\\.py$" %default-include)
+       #:exclude (cons "^test-profile.el$" %default-exclude)
        #:emacs ,emacs                   ;need libxml support
        #:phases
        (modify-phases %standard-phases
@@ -4583,7 +4583,7 @@ for Flow files.")
                     (grammalecte (assoc-ref inputs "grammalecte"))
                     (version ,(version-major+minor (package-version python))))
                (with-directory-excursion
-                   (string-append out "/share/emacs/site-lisp")
+                   (outputs->elpa-install-dir outputs)
                  (symlink (string-append grammalecte "/lib/"
                                          "python" version "/site-packages/"
                                          "grammalecte")
-- 
2.29.2