From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: Re: [PATCH] gnu: Add soxr. Date: Sun, 22 Feb 2015 11:52:19 +0100 Message-ID: <20150222105219.GA28626@debian> References: <87zj86kfvx.fsf@taylan.uni.cx> 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]:55715) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPU9E-0003FO-IU for guix-devel@gnu.org; Sun, 22 Feb 2015 05:52:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YPU99-0003ng-I9 for guix-devel@gnu.org; Sun, 22 Feb 2015 05:52:28 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:55181) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPU99-0003nX-8O for guix-devel@gnu.org; Sun, 22 Feb 2015 05:52:23 -0500 Content-Disposition: inline In-Reply-To: <87zj86kfvx.fsf@taylan.uni.cx> 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: Taylan Ulrich =?utf-8?B?QmF5xLFybMSxL0thbW1lcg==?= Cc: guix-devel@gnu.org Hello, On Sun, Feb 22, 2015 at 12:24:02AM +0100, Taylan Ulrich Bayırlı/Kammer wrote: > + (native-inputs `(("cmake" ,cmake))) > + (arguments > + '(#:phases > + (alist-delete > + 'configure > + (alist-replace > + 'build > + (lambda* (#:key outputs #:allow-other-keys) > + (substitute* '("go") > + (("^cmake ") > + (string-append "cmake -DCMAKE_INSTALL_PREFIX=" > + (assoc-ref outputs "out") " "))) > + (zero? (system* "./go"))) > + (alist-cons-before > + 'install 'chdir-to-release > + (lambda _ > + (chdir "Release")) > + %standard-phases))) looking at the more or less trivial file "go", I think you had better use our cmake build system (and drop the explicit cmake input). I tried it and it worked: (define-public soxr (package (name "soxr") (version "0.1.1") (source (origin (method url-fetch) (uri (string-append "mirror://sourceforge/soxr/soxr-" version "-Source.tar.xz")) (sha256 (base32 "1hmadwqfpg15vhwq9pa1sl5xslibrjpk6hpq2s9hfmx1s5l6ihfw")))) (build-system cmake-build-system) (arguments '(#:tests? #f)) ; no check target (home-page "http://sourceforge.net/p/soxr/wiki/Home/") (synopsis "One-dimensional sample-rate conversion library") (description "The SoX Resampler library (libsoxr) performs one-dimensional sample-rate conversion. It may be used, for example, to resample PCM-encoded audio.") (license license:lgpl2.1+))) Andreas