unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: 宋文武 <iyzsong@gmail.com>
To: guix-devel@gnu.org
Subject: [PATCH] gnu: geiser: Symlink Guile modules to the right 'guilesitedir'.
Date: Sun, 21 Jun 2015 20:32:45 +0800	[thread overview]
Message-ID: <1434889965-10697-1-git-send-email-iyzsong@gmail.com> (raw)

* gnu/packages/emacs.scm (geiser)[arguments]: Symlink Guile modules
  to the right 'guilesitedir' in the 'post-install' phase.
---
 gnu/packages/emacs.scm | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 2502f29..337d00d 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -196,10 +196,17 @@ editor (without an X toolkit)" )
      '(#:phases (alist-cons-after
                  'install 'post-install
                  (lambda* (#:key outputs #:allow-other-keys)
-                   (symlink "geiser-install.el"
-                            (string-append (assoc-ref outputs "out")
-                                           "/share/emacs/site-lisp/"
-                                           "geiser-autoloads.el")))
+                   (let* ((out (assoc-ref outputs "out"))
+                          (guilesitedir (string-append
+                                         out "/share/guile/site/2.0")))
+                     (symlink "geiser-install.el"
+                              (string-append out
+                                             "/share/emacs/site-lisp/"
+                                             "geiser-autoloads.el"))
+                     ;; Symlink Guile modules to the right 'guilesitedir'.
+                     (mkdir-p guilesitedir)
+                     (symlink (string-append out "/share/geiser/guile/geiser")
+                              (string-append guilesitedir "/geiser"))))
                  %standard-phases)))
     (inputs `(("guile" ,guile-2.0)
               ("emacs" ,emacs-no-x)))
-- 
2.2.1

             reply	other threads:[~2015-06-21 12:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-21 12:32 宋文武 [this message]
2015-06-21 13:21 ` [PATCH] gnu: geiser: Symlink Guile modules to the right 'guilesitedir' 宋文武
2015-06-21 14:05   ` Alex Kost
2015-06-22 19:51 ` Ludovic Courtès
2015-06-23  6:20   ` 宋文武

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1434889965-10697-1-git-send-email-iyzsong@gmail.com \
    --to=iyzsong@gmail.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).