[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
212/214: gnu: nlopt: Update to 2.7.1.
From: |
guix-commits |
Subject: |
212/214: gnu: nlopt: Update to 2.7.1. |
Date: |
Sat, 28 May 2022 04:37:58 -0400 (EDT) |
rekado pushed a commit to branch wip-r
in repository guix.
commit aff6a9ae01969b23a1af2b76ceb2ab29969b2ea0
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Sat May 28 09:48:15 2022 +0200
gnu: nlopt: Update to 2.7.1.
* gnu/packages/maths.scm (nlopt): Update to 2.7.1.
[source]: Fetch from git.
[build-system]: Use cmake-build-system.
[arguments]: Adjuts 'set-libnlopt-file-name phase.
[inputs]: Replace guile-2.0 with guile-3.0; add octave and python.
[native-inputs]: Add swig.
---
gnu/packages/maths.scm | 43 ++++++++++++++++++++++---------------------
1 file changed, 22 insertions(+), 21 deletions(-)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 98e239d5bd..16faf1ec18 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -5,7 +5,7 @@
;;; Copyright © 2014-2022 Eric Bavier <bavier@posteo.net>
;;; Copyright © 2014 Federico Beffa <beffa@fbengineering.ch>
;;; Copyright © 2014 Mathieu Lirzin <mathieu.lirzin@openmailbox.org>
-;;; Copyright © 2015–2021 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2015–2022 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com>
;;; Copyright © 2015, 2018 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021 Efraim Flashner
<efraim@flashner.co.il>
@@ -152,6 +152,7 @@
#:use-module (gnu packages serialization)
#:use-module (gnu packages shells)
#:use-module (gnu packages sphinx)
+ #:use-module (gnu packages swig)
#:use-module (gnu packages tcl)
#:use-module (gnu packages texinfo)
#:use-module (gnu packages tex)
@@ -1915,34 +1916,34 @@ with the provided training tools.")
(define-public nlopt
(package
(name "nlopt")
- (version "2.4.2")
+ (version "2.7.1")
(source (origin
- (method url-fetch)
- (uri (string-append "http://ab-initio.mit.edu/nlopt/nlopt-"
- version ".tar.gz"))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/stevengj/nlopt/")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32
"12cfkkhcdf4zmb6h7y6qvvdvqjs2xf9sjpa3rl3bq76px4yn76c0"))))
- (build-system gnu-build-system)
+ (base32
"1xpdza28i8w441fwv6a5f3qk4zi7ys6ws9fx6kr5ny27dfdz6rr1"))))
+ (build-system cmake-build-system)
(arguments
- `(;; Shared libraries are not built by default. They are required to
- ;; build the Guile, Octave, and Python bindings.
- #:configure-flags '("--enable-shared")
-
- #:phases
+ `(#:phases
(modify-phases %standard-phases
(add-before 'configure 'set-libnlopt-file-name
(lambda* (#:key outputs #:allow-other-keys)
;; Make sure the Scheme module refers to the library by its
- ;; absolute file name (we cannot do that from a snippet
- ;; because the expansion of @libdir@ contains
- ;; ${exec_prefix}.)
+ ;; absolute file name.
(let ((out (assoc-ref outputs "out")))
- (substitute* "swig/nlopt.scm.in"
- (("libnlopt")
- (string-append out "/lib/libnlopt")))
- #t))))))
- (inputs (list guile-2.0))
- (native-inputs (list pkg-config))
+ (substitute* "src/swig/nlopt-guile.i"
+ (("\"nlopt_guile\"")
+ (format #f "~s"
+ `(format #f "~anlopt_guile"
+ (if (getenv "NLOPT_UNINSTALLED")
+ ""
+ ,(format #f
"~a/lib/guile/3.0/extensions/" out))))))
+ (setenv "NLOPT_UNINSTALLED" "1")))))))
+ (inputs (list guile-3.0 octave python))
+ (native-inputs (list pkg-config swig))
(home-page "http://ab-initio.mit.edu/wiki/")
(synopsis "Library for nonlinear optimization")
(description "NLopt is a library for nonlinear optimization, providing a
- 42/214: gnu: r-statnet-common: Update to 4.6.0., (continued)
- 42/214: gnu: r-statnet-common: Update to 4.6.0., guix-commits, 2022/05/28
- 37/214: gnu: r-xfun: Update to 0.31., guix-commits, 2022/05/28
- 38/214: gnu: r-vctrs: Update to 0.4.1., guix-commits, 2022/05/28
- 46/214: gnu: r-shinyace: Update to 0.4.2., guix-commits, 2022/05/28
- 43/214: gnu: r-quantmod: Update to 0.4.20., guix-commits, 2022/05/28
- 169/214: gnu: r-keras: Update to 2.9.0., guix-commits, 2022/05/28
- 172/214: gnu: r-mlearning: Update to 1.1.1., guix-commits, 2022/05/28
- 174/214: gnu: r-dichromat: Update to 2.0-0.1., guix-commits, 2022/05/28
- 175/214: gnu: r-ggplot2: Update to 3.3.6., guix-commits, 2022/05/28
- 181/214: gnu: r-checkmate: Update to 2.1.0., guix-commits, 2022/05/28
- 212/214: gnu: nlopt: Update to 2.7.1.,
guix-commits <=
- 33/214: gnu: r-hardyweinberg: Update to 1.7.5., guix-commits, 2022/05/28
- 25/214: gnu: r-rmtstat: Update to 0.3.1., guix-commits, 2022/05/28
- 48/214: gnu: r-algdesign: Update to 1.2.1., guix-commits, 2022/05/28
- 60/214: gnu: r-drtmle: Update to 1.1.1., guix-commits, 2022/05/28
- 70/214: gnu: r-effectsize: Update to 0.7.0., guix-commits, 2022/05/28
- 82/214: gnu: r-rspectra: Update to 0.16-1., guix-commits, 2022/05/28
- 49/214: gnu: r-fnn: Update to 1.1.3.1., guix-commits, 2022/05/28
- 55/214: gnu: r-rjags: Update to 4-13., guix-commits, 2022/05/28
- 74/214: gnu: r-biocmanager: Update to 1.30.18., guix-commits, 2022/05/28
- 79/214: gnu: r-ouch: Update to 2.18., guix-commits, 2022/05/28