guix-devel
[Top][All Lists]
Advanced

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

[PATCH 2/2] gnu: icon-naming-utils: Wrap with PERL5LIB to find XML::Simp


From: 宋文武
Subject: [PATCH 2/2] gnu: icon-naming-utils: Wrap with PERL5LIB to find XML::Simple.
Date: Thu, 1 Jan 2015 09:47:34 +0800

Fixes <http://bugs.gnu.org/19367>.

* gnu/packages/gnome.scm (icon-naming-utils)[arguments]: New field.
---
 gnu/packages/gnome.scm | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 1ff9e85..a2ef712 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -312,6 +312,18 @@ for settings shared by various components of the GNOME 
desktop.")
     (inputs
      `(("perl" ,perl)
        ("perl-xml-simple" ,perl-xml-simple)))
+    (arguments
+     '(#:phases
+       (alist-cons-after
+        'install 'set-load-paths
+        ;; Tell 'icon-name-mapping' where XML::Simple is.
+        (lambda* (#:key outputs #:allow-other-keys)
+          (let* ((out  (assoc-ref outputs "out"))
+                 (prog (string-append out "/libexec/icon-name-mapping")))
+            (wrap-program
+             prog
+             `("PERL5LIB" = ,(list (getenv "PERL5LIB"))))))
+        %standard-phases)))
     (home-page 
"http://tango.freedesktop.org/Standard_Icon_Naming_Specification";)
     (synopsis
      "Utility to implement the Freedesktop Icon Naming Specification")
-- 
2.1.2




reply via email to

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