guix-commits
[Top][All Lists]
Advanced

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

02/05: gnu: aspell: Allow filters to be found.


From: Ludovic Courtès
Subject: 02/05: gnu: aspell: Allow filters to be found.
Date: Mon, 23 Jul 2018 06:25:38 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit a2908f5aae6484b537067ec854871f608ccce92f
Author: Ludovic Courtès <address@hidden>
Date:   Mon Jul 23 12:19:19 2018 +0200

    gnu: aspell: Allow filters to be found.
    
    Reported by Pierre-Antoine Rouby.
    
    * gnu/packages/aspell.scm (aspell)[arguments]: Add 'set-filter-path'
    phase.
---
 gnu/packages/aspell.scm | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/gnu/packages/aspell.scm b/gnu/packages/aspell.scm
index 82136a2..993dc56 100644
--- a/gnu/packages/aspell.scm
+++ b/gnu/packages/aspell.scm
@@ -27,6 +27,7 @@
   #:use-module (guix download)
   #:use-module (guix build-system gnu)
   #:use-module (guix licenses)
+  #:use-module (guix utils)
   #:use-module (gnu packages)
   #:use-module (gnu packages base)
   #:use-module (gnu packages compression)
@@ -49,6 +50,19 @@
     (arguments
      `(#:phases
        (modify-phases %standard-phases
+         (add-before 'build 'set-filter-path
+           (lambda* (#:key outputs #:allow-other-keys)
+             ;; Change the default value of 'filter-path' so that filters such
+             ;; as 'tex-filter.so' can be found.  By default none of the
+             ;; filters would be found.
+             (let* ((out    (assoc-ref outputs "out"))
+                    (libdir (string-append out "/lib/aspell-"
+                                           ,(version-major+minor version))))
+               (substitute* "common/config.cpp"
+                 (("\"filter-path(.*)DICT_DIR" _ middle)
+                  (string-append "\"filter-path" middle
+                                 "\"" libdir "\"")))
+               #t)))
          (add-after 'install 'wrap-aspell
            (lambda* (#:key outputs #:allow-other-keys)
              (let ((bin/aspell (string-append (assoc-ref outputs "out")



reply via email to

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