summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Lacroix <remi.lacroix@idris.fr>2021-03-30 20:54:12 +0200
committerGitHub <noreply@github.com>2021-03-30 18:54:12 +0000
commitd3a9824ea2f7675e9e0008b5d914f02e63e19d85 (patch)
treeea69661be886352896e278b7ca1096af6247a509
parentc1f1dc163e5749f07c9b7d788df17ac29c0b80a5 (diff)
downloadspack-d3a9824ea2f7675e9e0008b5d914f02e63e19d85.tar.gz
spack-d3a9824ea2f7675e9e0008b5d914f02e63e19d85.tar.bz2
spack-d3a9824ea2f7675e9e0008b5d914f02e63e19d85.tar.xz
spack-d3a9824ea2f7675e9e0008b5d914f02e63e19d85.zip
libLBFGS: Add new package. (#22639)
-rw-r--r--var/spack/repos/builtin/packages/liblbfgs/package.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/liblbfgs/package.py b/var/spack/repos/builtin/packages/liblbfgs/package.py
new file mode 100644
index 0000000000..fa6b0703ba
--- /dev/null
+++ b/var/spack/repos/builtin/packages/liblbfgs/package.py
@@ -0,0 +1,29 @@
+# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class Liblbfgs(AutotoolsPackage):
+ """libLBFGS is a C port of the implementation of Limited-memory
+ Broyden-Fletcher-Goldfarb-Shanno (L-BFGS) method written by Jorge Nocedal.
+
+ The L-BFGS method solves the unconstrainted minimization problem:
+ minimize F(x), x = (x1, x2, ..., xN),
+ only if the objective function F(x) and its gradient G(x) are computable."""
+
+ homepage = "http://www.chokkan.org/software/liblbfgs/"
+ url = "https://github.com/downloads/chokkan/liblbfgs/liblbfgs-1.10.tar.gz"
+ git = "https://github.com/chokkan/liblbfgs.git"
+
+ maintainers = ['RemiLacroix-IDRIS']
+
+ version('master', branch='master')
+ version('1.10', sha256='4158ab7402b573e5c69d5f6b03c973047a91e16ca5737d3347e3af9c906868cf')
+
+ depends_on('autoconf', type='build', when='@master')
+ depends_on('automake', type='build', when='@master')
+ depends_on('libtool', type='build', when='@master')
+ depends_on('m4', type='build', when='@master')