[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/03: gnu: emacs-php-mode: Adjust to changes in emacs-build-system.
From: |
guix-commits |
Subject: |
02/03: gnu: emacs-php-mode: Adjust to changes in emacs-build-system. |
Date: |
Tue, 6 Apr 2021 04:51:54 -0400 (EDT) |
leoprikler pushed a commit to branch wip-emacs
in repository guix.
commit 9c03b9c70bbc8861434ad863d63b95eb286c94f0
Author: Leo Prikler <leo.prikler@student.tugraz.at>
AuthorDate: Tue Apr 6 10:26:11 2021 +0200
gnu: emacs-php-mode: Adjust to changes in emacs-build-system.
* gnu/packages/emacs-xyz.scm (emacs-php-mode)[#:include]: Remove.
[#:phases]<add-lisp-dir-to-emacs-load-path>: Relocate.
<install>: Replace with a custom phase, that follows the subdir convention,
but strips the "lisp" prefix.
---
gnu/packages/emacs-xyz.scm | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 85ded00..89bb773 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -12520,13 +12520,18 @@ using Imenu, and Compilation mode support for
MSBuild, devenv and xbuild.")
(base32 "0bs9q62bd7885c39v7x1qz3w1fhpmpdgm72xwsk2yygw0ii425nn"))))
(build-system emacs-build-system)
(arguments
- `(#:include (cons "^lisp/" %default-include)
- #:phases
+ `(#:phases
(modify-phases %standard-phases
- (add-after 'add-source-to-load-path 'add-lisp-dir-to-emacs-load-path
+ (add-after 'expand-load-path 'add-lisp-dir-to-emacs-load-path
(lambda _
(setenv "EMACSLOADPATH"
- (string-append (getcwd) "/lisp:" (getenv
"EMACSLOADPATH"))))))))
+ (string-append (getcwd) "/lisp:" (getenv
"EMACSLOADPATH")))))
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (copy-recursively
+ "lisp"
+ (string-append (assoc-ref outputs "out")
+ "/share/emacs/site-lisp/php-mode-" ,version)))))))
(propagated-inputs `(("emacs-projectile" ,emacs-projectile)))
(home-page "https://github.com/ejmr/php-mode")
(synopsis "Major mode for editing PHP code")