all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Roel Janssen <roel@gnu.org>
To: Leo Famulari <leo@famulari.name>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: Add nlopt.
Date: Thu, 07 Apr 2016 22:49:42 +0200	[thread overview]
Message-ID: <87d1q1xhy1.fsf@gnu.org> (raw)
In-Reply-To: <20160407154451.GD18750@jasmine>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0001-gnu-Add-nlopt.patch --]
[-- Type: text/x-patch, Size: 1539 bytes --]

From bb41efffc5258b0fe79b744e96981411b94e6aad Mon Sep 17 00:00:00 2001
From: Roel Janssen <roel@gnu.org>
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


[-- Attachment #2: Type: text/plain, Size: 746 bytes --]

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 <roel@gnu.org>
>> 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

  parent reply	other threads:[~2016-04-07 20:49 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-07 11:26 [PATCH] gnu: Add nlopt Roel Janssen
2016-04-07 15:44 ` Leo Famulari
2016-04-07 20:42   ` Alex Kost
2016-04-07 20:49   ` Roel Janssen [this message]
2016-04-08 10:18     ` Mathieu Lirzin
2016-04-09  5:56       ` Leo Famulari
2016-04-09 10:54         ` Mathieu Lirzin
2016-04-09 16:21           ` Leo Famulari
2016-04-07 20:48 ` Alex Kost
2016-04-07 21:20   ` Roel Janssen
2016-04-07 21:40 ` Ludovic Courtès
2016-04-07 22:52   ` Roel Janssen
2016-04-09 14:38     ` Ludovic Courtès
2016-05-03 11:02       ` Roel Janssen
2016-05-03 11:47         ` Ludovic Courtès
2016-05-03 12:34           ` Roel Janssen
2016-05-03 20:02             ` Ludovic Courtès
2016-05-03 20:17               ` Roel Janssen
2016-05-04  8:38                 ` Alex Kost
2016-05-04  8:52                   ` Roel Janssen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d1q1xhy1.fsf@gnu.org \
    --to=roel@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=leo@famulari.name \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.