From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roel Janssen Subject: Re: [PATCH] gnu: Add nlopt. Date: Thu, 07 Apr 2016 22:49:42 +0200 Message-ID: <87d1q1xhy1.fsf@gnu.org> References: <87vb3twtgi.fsf@gnu.org> <20160407154451.GD18750@jasmine> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoGrq-0000nE-Ij for guix-devel@gnu.org; Thu, 07 Apr 2016 16:49:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoGrn-0004iR-Al for guix-devel@gnu.org; Thu, 07 Apr 2016 16:49:30 -0400 In-reply-to: <20160407154451.GD18750@jasmine> 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 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-Add-nlopt.patch >From bb41efffc5258b0fe79b744e96981411b94e6aad Mon Sep 17 00:00:00 2001 From: Roel Janssen Date: Thu, 7 Apr 2016 22:45:01 +0200 Subject: [PATCH] gnu: Add nlopt. * gnu/packages/maths.scm (nlopt): New variable. --- gnu/packages/maths.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index adebf09..6b9d79d 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -911,6 +911,26 @@ sparse system of linear equations A x = b using Guassian elimination.") (inputs (alist-delete "pt-scotch" (package-inputs mumps-openmpi))))) +(define-public nlopt + (package + (name "nlopt") + (version "2.4.2") + (source (origin + (method url-fetch) + (uri (string-append "http://ab-initio.mit.edu/nlopt/nlopt-" + version ".tar.gz")) + (sha256 + (base32 "12cfkkhcdf4zmb6h7y6qvvdvqjs2xf9sjpa3rl3bq76px4yn76c0")))) + (build-system gnu-build-system) + (arguments + `(#:configure-flags '("--enable-shared"))) ; Also create a shared library. + (home-page "http://ab-initio.mit.edu/wiki/") + (synopsis "Library for non-linear optimization") + (description "NLopt is a library for nonlinear optimization, providing a +common interface for a number of different free optimization routines available +online as well as original implementations of various other algorithms.") + (license license:lgpl3))) + (define-public superlu (package (name "superlu") -- 2.5.5 --=-=-= Content-Type: text/plain Dear Leo, Thanks again for reviewing my package. I really appreciate your time and effort. :) Leo Famulari writes: > On Thu, Apr 07, 2016 at 01:26:21PM +0200, Roel Janssen wrote: >> From 558175f69ba52446eca75ab79b641c8f0204093e Mon Sep 17 00:00:00 2001 >> From: Roel Janssen >> Date: Thu, 7 Apr 2016 13:22:35 +0200 >> Subject: [PATCH] gnu: Add nlopt. >> >> * gnu/packages/maths.scm (nlopt): New variable. > > Looks good, but for some reason I can't apply the patch to my source > tree. Does it work for you? Strangely enough, I couldn't apply it either. I don't know what happened.. I regenerated the patch, and now I was able to apply it to my source tree. Hopefully it works for you too now. Kind regards, Roel Janssen --=-=-=--