guix-commits
[Top][All Lists]
Advanced

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

01/02: gnu: aspell: Wrap binary to find dictionaries.


From: Ludovic Courtès
Subject: 01/02: gnu: aspell: Wrap binary to find dictionaries.
Date: Tue, 02 Feb 2016 20:44:32 +0000

civodul pushed a commit to branch master
in repository guix.

commit 81fc64da7e9fa5eed782d0c52ebd5c76598e045a
Author: Federico Beffa <address@hidden>
Date:   Fri Jan 8 14:23:12 2016 +0100

    gnu: aspell: Wrap binary to find dictionaries.
    
    * gnu/packages/aspell.scm (aspell): Add 'wrap-aspell' phase.
    * gnu/system.scm (operating-system-etc-service): Remove 'ASPELL_CONF'
    definition.
    
    Co-authored-by: Ludovic Courtès <address@hidden>
---
 gnu/packages/aspell.scm |   10 ++++++++++
 gnu/system.scm          |    3 ---
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/aspell.scm b/gnu/packages/aspell.scm
index 2425d1c..ede2170 100644
--- a/gnu/packages/aspell.scm
+++ b/gnu/packages/aspell.scm
@@ -38,6 +38,16 @@
        (base32
         "1qgn5psfyhbrnap275xjfrzppf5a83fb67gpql0kfqv37al869gm"))))
     (build-system gnu-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'install 'wrap-aspell
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let ((bin/aspell (string-append (assoc-ref outputs "out")
+                                              "/bin/aspell")))
+               (wrap-program bin/aspell
+                 '("ASPELL_CONF" "" =
+                   ("${ASPELL_CONF:-\"dict-dir 
${GUIX_PROFILE:-$HOME/.guix-profile}/lib/aspell\"}")))))))))
     (inputs `(("perl" ,perl)))
     (home-page "http://aspell.net/";)
     (synopsis "Spell checker")
diff --git a/gnu/system.scm b/gnu/system.scm
index b4264fe..76a9f1f 100644
--- a/gnu/system.scm
+++ b/gnu/system.scm
@@ -465,9 +465,6 @@ else
   export PATH=\"$HOME/.guix-profile/bin:$PATH\"
 fi
 
-# Allow Aspell to find dictionaries installed in the user profile.
-export ASPELL_CONF=\"dict-dir $HOME/.guix-profile/lib/aspell\"
-
 # Allow GStreamer-based applications to find plugins.
 export GST_PLUGIN_PATH=\"$HOME/.guix-profile/lib/gstreamer-1.0\"
 



reply via email to

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