From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] Add googletest Date: Wed, 01 Jun 2016 09:47:47 +0200 Message-ID: <87k2i9mjto.fsf@gnu.org> References: <874m9fwa0k.fsf@openmailbox.org> <87lh2q2v1u.fsf@openmailbox.org> <20160531214400.GA22303@jasmine> 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]:56808) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b80sd-0007q9-RV for guix-devel@gnu.org; Wed, 01 Jun 2016 03:47:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b80sa-0007kn-Mg for guix-devel@gnu.org; Wed, 01 Jun 2016 03:47:55 -0400 In-Reply-To: <20160531214400.GA22303@jasmine> (Leo Famulari's message of "Tue, 31 May 2016 17:44:00 -0400") 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: Leo Famulari Cc: guix-devel@gnu.org Leo Famulari skribis: > On Tue, May 31, 2016 at 08:53:17AM -0500, Lukas Gradl wrote: [...] >> + (replace 'install >> + (lambda _ >> + (let ((out (assoc-ref %outputs "out"))) >> + (and >> + (mkdir-p (string-append out "/lib")) >> + (mkdir-p (string-append out "/include")) >> + (zero? >> + (system* "cp" "-r" >> + "../googletest-release-1.7.0/include" >> + out)) >> + (zero? (system* "cp" "libgtest.a" "libgtest_ma= in.a" >> + (string-append out "/lib")))))= ))))) > > I think these uses of (system*) could be replaced by (copy-recursively) > and (install-file), respectively. s/could/should/ even ;-) Ludo=E2=80=99.