From mboxrd@z Thu Jan 1 00:00:00 1970 From: Theodoros Foradis Subject: [PATCH 1/1] gnu: icestorm: Replace reference in icebox_vlog. Date: Sat, 14 Jan 2017 20:56:52 +0200 Message-ID: <20170114185652.29952-2-theodoros.for@openmailbox.org> References: <20170114185652.29952-1-theodoros.for@openmailbox.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50434) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cSTdP-00043m-Lr for guix-devel@gnu.org; Sat, 14 Jan 2017 14:05:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cSTdN-0007CA-HG for guix-devel@gnu.org; Sat, 14 Jan 2017 14:05:03 -0500 Received: from lb1.openmailbox.org ([5.79.108.160]:42633) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cSTdN-0007Bs-Bi for guix-devel@gnu.org; Sat, 14 Jan 2017 14:05:01 -0500 In-Reply-To: <20170114185652.29952-1-theodoros.for@openmailbox.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * 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