emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#50287: closed ([PATCH] emacs-org-roam: Add new phase after unpack.)


From: GNU bug Tracking System
Subject: bug#50287: closed ([PATCH] emacs-org-roam: Add new phase after unpack.)
Date: Tue, 07 Sep 2021 14:00:02 +0000

Your message dated Tue, 07 Sep 2021 15:58:54 +0200
with message-id <87v93c4hcx.fsf@gnu.org>
and subject line Re: bug#50287: [PATCH] emacs-org-roam: Add new phase after 
unpack.
has caused the debbugs.gnu.org bug report #50287,
regarding [PATCH] emacs-org-roam: Add new phase after unpack.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
50287: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=50287
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] emacs-org-roam: Add new phase after unpack. Date: Mon, 30 Aug 2021 21:42:43 +0000
* gnu/packages/emacs-xyz.scm (emacs-org-roam)[arguments]<phases>:
After the unpack phase add a move-source-files phase to include
the org-roam extensions to the package.
---
 gnu/packages/emacs-xyz.scm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 70c4c30bc2..679636c123 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -28227,6 +28227,15 @@ snippets for Emacs.")
     (arguments
      `(#:phases
        (modify-phases %standard-phases
+         ;; Move the extensions source files to the top level, which is 
included in
+         ;; the EMACSLOADPATH.
+         (add-after 'unpack 'move-source-files
+           (lambda _
+             (let ((el-files (find-files "./extensions" ".*\\.el$")))
+               (for-each (lambda (f)
+                           (rename-file f (basename f)))
+                         el-files))
+             #t))
          (add-after 'install 'install-image
            (lambda* (#:key outputs #:allow-other-keys)
              (let ((out (assoc-ref outputs "out")))
-- 
2.33.0



-- 

Alexandr Vityazev



--- End Message ---
--- Begin Message --- Subject: Re: bug#50287: [PATCH] emacs-org-roam: Add new phase after unpack. Date: Tue, 07 Sep 2021 15:58:54 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Hi,

Alexandr Vityazev <avityazev@posteo.org> skribis:

> * gnu/packages/emacs-xyz.scm (emacs-org-roam)[arguments]<phases>:
> After the unpack phase add a move-source-files phase to include
> the org-roam extensions to the package.

Applied, thanks.

However, the newly installed files aren’t getting compiled.  Should we
do something about it?

Ludo’.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]