* 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