From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH 4/4] gnu: Add transfig. Date: Sun, 12 Oct 2014 00:03:06 +0200 Message-ID: <87iojq5ko5.fsf@gnu.org> References: <87mw93vlbt.fsf@member.fsf.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xd4km-0004Vf-FT for guix-devel@gnu.org; Sat, 11 Oct 2014 18:03:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xd4kg-0000G0-NR for guix-devel@gnu.org; Sat, 11 Oct 2014 18:03:08 -0400 Received: from hera.aquilenet.fr ([2a01:474::1]:54760) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xd4kd-0000DD-QC for guix-devel@gnu.org; Sat, 11 Oct 2014 18:03:02 -0400 In-Reply-To: <87mw93vlbt.fsf@member.fsf.org> (Eric Bavier's message of "Fri, 10 Oct 2014 13:19:50 -0500") 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: Eric Bavier Cc: guix-devel@gnu.org Eric Bavier skribis: > From ece0a8dec5d95ccf84156e9e6c0c582639163b1e Mon Sep 17 00:00:00 2001 > From: Eric Bavier > Date: Fri, 10 Oct 2014 13:11:22 -0500 > Subject: [PATCH 4/4] gnu: Add transfig. > > * gnu/packages/xfig.scm (transfig): New variable. OK! > + (lambda* (#:key inputs outputs #:allow-other-keys) > + (let ((imake (assoc-ref inputs "imake")) > + (out (assoc-ref outputs "out"))) > + (substitute* '("fig2dev/Imakefile" > + "transfig/Imakefile") > + (("XCOMM (BINDIR =3D )[[:graph:]]*" _ front) > + (string-append front out "/bin")) > + (("XCOMM USEINLINE") "USEINLINE") > + ;; The variable name is deceptive. The directory is used = as an > + ;; installation path for bitmaps. > + (("(XFIGLIBDIR =3D[[:blank:]]*)[[:graph:]]*" _ front) > + (string-append front out "/lib")) > + (("(XPMLIBDIR =3D )[[:graph:]]*" _ front) > + (string-append front (assoc-ref inputs "libxpm") "/lib")) > + (("(XPMINC =3D -I)[[:graph:]]*" _ front) > + (string-append front (assoc-ref inputs "libxpm") "/includ= e/X11")) > + (("/usr/local/lib/fig2dev") (string-append out "/lib"))) I feel you=E2=80=99ll end up writing an =E2=80=98imake-build-system=E2=80= =99. :-) Thanks, Ludo=E2=80=99.