guix-devel
[Top][All Lists]
Advanced

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

[PATCH 1/1] gnu: icestorm: Replace reference in icebox_vlog.


From: Theodoros Foradis
Subject: [PATCH 1/1] gnu: icestorm: Replace reference in icebox_vlog.
Date: Sat, 14 Jan 2017 20:56:52 +0200

* gnu/packages/fpga.scm (icestorm)[arguments]: Modify phases
"fix-usr-local" to replace reference to /usr/local/share.
---
 gnu/packages/fpga.scm | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/fpga.scm b/gnu/packages/fpga.scm
index f65eae8..eb05a39 100644
--- a/gnu/packages/fpga.scm
+++ b/gnu/packages/fpga.scm
@@ -225,11 +225,12 @@ For synthesis, the compiler generates netlists in the 
desired format.")
                           (string-append "PREFIX=" (assoc-ref %outputs "out")))
        #:phases
         (modify-phases %standard-phases
-          (add-after 'unpack 'remove-usr-local
-            (lambda _
-              (substitute* "iceprog/Makefile"
+          (add-after 'unpack 'fix-usr-local
+            (lambda* (#:key outputs #:allow-other-keys)
+              (substitute* '("iceprog/Makefile" "icebox/icebox_vlog.py")
                 (("-I/usr/local/include") "")
-                (("-L/usr/local/lib") ""))
+                (("-L/usr/local/lib") "")
+                (("/usr/local/share") (string-append (assoc-ref outputs "out") 
"/share")))
               #t))
           (delete 'configure))))
     (inputs
-- 
2.10.2




reply via email to

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