summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2022-11-17 12:21:03 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2022-11-17 12:28:09 +0100
commit22960a79a6abd60371ebee37f4b64cb2a1fb0bad (patch)
treef04f672f517e6eab158e718f493a06c82887a1dc
parent5a375fe48aff1c2b950f5a473647764f1dd0230a (diff)
downloadguix-22960a79a6abd60371ebee37f4b64cb2a1fb0bad.tar.gz
gnu: emacs-use-package: Improve package style.
* gnu/packages/emacs-xyz.scm (emacs-use-package)[arguments]: Use
G-expressions.
<#:phases>: Remove trailing #T.  Remove unnecessary call to MKDIR-P.
-rw-r--r--gnu/packages/emacs-xyz.scm33
1 files changed, 15 insertions, 18 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 92f13fdf9c..47d376d8d3 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -15487,28 +15487,25 @@ abbreviation of the mode line displays (lighters) of minor modes.")
                  (base32
                   "1zpf9xv65jg813k90x8g9k4lja896nqfh48pjinicmz1rn0rf51a"))))
       (build-system emacs-build-system)
+      (arguments
+       (list
+        #:tests? #t
+        #:test-command #~(list "emacs" "--batch"
+                               "-l" "use-package-tests.el"
+                               "-f" "ert-run-tests-batch-and-exit")
+        #:phases
+        #~(modify-phases %standard-phases
+            (add-before 'install 'install-manual
+              (lambda _
+                (let ((info-dir (string-append #$output "/share/info")))
+                  (install-file "use-package.info" info-dir))))
+            (add-before 'install-manual 'build-manual
+              (lambda _
+                (invoke "makeinfo" "use-package.texi"))))))
       (native-inputs
        (list texinfo))
       (propagated-inputs
        (list emacs-diminish))
-      (arguments
-       `(#:tests? #t
-         #:test-command '("emacs" "--batch"
-                          "-l" "use-package-tests.el"
-                          "-f" "ert-run-tests-batch-and-exit")
-         #:phases
-         (modify-phases %standard-phases
-           (add-before 'install 'install-manual
-             (lambda* (#:key outputs #:allow-other-keys)
-               (let* ((out (assoc-ref outputs "out"))
-                      (info-dir (string-append out "/share/info")))
-                 (mkdir-p info-dir)
-                 (install-file "use-package.info" info-dir)
-                 #t)))
-           (add-before 'install-manual 'build-manual
-             (lambda _
-               (invoke "makeinfo" "use-package.texi")
-               #t)))))
       (home-page "https://github.com/jwiegley/use-package")
       (synopsis "Declaration for simplifying your .emacs")
       (description "The use-package macro allows you to isolate package