From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: [PATCH] Add cufflinks. Date: Sat, 23 Jan 2016 09:14:41 +0100 Message-ID: <874me4vhji.fsf@elephly.net> References: <871tdycmtr.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46769) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMtLQ-0006r9-J7 for guix-devel@gnu.org; Sat, 23 Jan 2016 03:14:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aMtLP-0000Je-Ea for guix-devel@gnu.org; Sat, 23 Jan 2016 03:14:52 -0500 In-reply-to: <871tdycmtr.fsf@gnu.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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel Ludovic Courtès writes: > Ricardo Wurmus skribis: > >> From e8186326701df11ee4bdb22d4717cf4b8c27dd50 Mon Sep 17 00:00:00 2001 >> From: Ricardo Wurmus >> Date: Wed, 16 Sep 2015 17:42:41 +0200 >> Subject: [PATCH] gnu: Add cufflinks. >> >> * gnu/packages/bioinformatics.scm (boost-1.55, cufflinks): New >> variables. > > [...] > >> +(define boost-1.55 >> + (package (inherit boost) > > I would keep it next to ‘boost’. Since the update to boost 1.60 this is no longer needed. >> + (lambda* (#:key inputs #:allow-other-keys) >> + ;; The includes for "eigen" are located in a subdirectory. >> + (setenv "CPATH" (string-append (assoc-ref inputs "eigen") >> + "/include/eigen3/" ":" >> + (or (getenv "CPATH") ""))) > > It should be using ‘pkg-config eigen3 --cflags’, but pkg-config is > missing. > > Could you check if adding pkg-config makes this hack unnecessary? > > Otherwise LGTM. Cufflinks does not use pkg-config. I have modified this to use EIGEN_CPPFLAGS instead of the much broader CPATH: + (arguments + `(#:make-flags + (list + ;; The includes for "eigen" are located in a subdirectory. + (string-append "EIGEN_CPPFLAGS=" + "-I" (assoc-ref %build-inputs "eigen") + "/include/eigen3/") I have also cleaned up the package to use “modify-phases”, clarified the description (“transcript” -> “RNA transcript”), and replaced the license with “license:boost1.0”. ~~ Ricardo