summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/nlopt/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/nlopt/package.py')
-rw-r--r--var/spack/repos/builtin/packages/nlopt/package.py62
1 files changed, 31 insertions, 31 deletions
diff --git a/var/spack/repos/builtin/packages/nlopt/package.py b/var/spack/repos/builtin/packages/nlopt/package.py
index 97dc7acd9a..4a9ab8b3f9 100644
--- a/var/spack/repos/builtin/packages/nlopt/package.py
+++ b/var/spack/repos/builtin/packages/nlopt/package.py
@@ -13,34 +13,34 @@ class Nlopt(CMakePackage):
other algorithms."""
homepage = "https://nlopt.readthedocs.io"
- url = "https://github.com/stevengj/nlopt/archive/v2.5.0.tar.gz"
- git = "https://github.com/stevengj/nlopt.git"
+ url = "https://github.com/stevengj/nlopt/archive/v2.5.0.tar.gz"
+ git = "https://github.com/stevengj/nlopt.git"
- version('master', branch='master')
+ version("master", branch="master")
- version('2.7.0', 'b881cc2a5face5139f1c5a30caf26b7d3cb43d69d5e423c9d78392f99844499f')
- version('2.6.2', 'cfa5981736dd60d0109c534984c4e13c615314d3584cf1c392a155bfe1a3b17e')
- version('2.6.1', '66d63a505187fb6f98642703bd0ef006fedcae2f9a6d1efa4f362ea919a02650')
- version('2.6.0', 'a13077cdf5f5f1127eaaac0bf1e06744bfe98d8a4a3430a15e0af50a69f451ab')
- version('2.5.0', 'c6dd7a5701fff8ad5ebb45a3dc8e757e61d52658de3918e38bab233e7fd3b4ae')
+ version("2.7.0", "b881cc2a5face5139f1c5a30caf26b7d3cb43d69d5e423c9d78392f99844499f")
+ version("2.6.2", "cfa5981736dd60d0109c534984c4e13c615314d3584cf1c392a155bfe1a3b17e")
+ version("2.6.1", "66d63a505187fb6f98642703bd0ef006fedcae2f9a6d1efa4f362ea919a02650")
+ version("2.6.0", "a13077cdf5f5f1127eaaac0bf1e06744bfe98d8a4a3430a15e0af50a69f451ab")
+ version("2.5.0", "c6dd7a5701fff8ad5ebb45a3dc8e757e61d52658de3918e38bab233e7fd3b4ae")
- variant('shared', default=True, description='Enables the build of shared libraries')
- variant('python', default=True, description='Build python wrappers')
- variant('guile', default=False, description='Enable Guile support')
- variant('octave', default=False, description='Enable GNU Octave support')
- variant('cxx', default=False, description='Build the C++ routines')
+ variant("shared", default=True, description="Enables the build of shared libraries")
+ variant("python", default=True, description="Build python wrappers")
+ variant("guile", default=False, description="Enable Guile support")
+ variant("octave", default=False, description="Enable GNU Octave support")
+ variant("cxx", default=False, description="Build the C++ routines")
# Note: matlab is licenced - spack does not download automatically
variant("matlab", default=False, description="Build the Matlab bindings.")
- depends_on('cmake@3.0:', type='build', when='@master')
- depends_on('python', when='+python', type=('build', 'run'))
- depends_on('py-numpy', when='+python', type=('build', 'run'))
- depends_on('swig', when='+python')
- depends_on('guile', when='+guile')
- depends_on('octave', when='+octave')
- depends_on('matlab', when='+matlab')
- extends('python', when='+python')
+ depends_on("cmake@3.0:", type="build", when="@master")
+ depends_on("python", when="+python", type=("build", "run"))
+ depends_on("py-numpy", when="+python", type=("build", "run"))
+ depends_on("swig", when="+python")
+ depends_on("guile", when="+guile")
+ depends_on("octave", when="+octave")
+ depends_on("matlab", when="+matlab")
+ extends("python", when="+python")
def cmake_args(self):
# Add arguments other than
@@ -52,21 +52,21 @@ class Nlopt(CMakePackage):
# eg: spack install nlopt@master +guile -octave +cxx
# Spack should locate python by default - but to point to a build
- if '+python' in spec:
- args.append("-DPYTHON_EXECUTABLE=%s" % spec['python'].command.path)
+ if "+python" in spec:
+ args.append("-DPYTHON_EXECUTABLE=%s" % spec["python"].command.path)
# On is default
- if '-shared' in spec:
- args.append('-DBUILD_SHARED_LIBS:Bool=OFF')
+ if "-shared" in spec:
+ args.append("-DBUILD_SHARED_LIBS:Bool=OFF")
# On is default
- if '-octave' in spec:
- args.append('-DNLOPT_OCTAVE:Bool=OFF')
+ if "-octave" in spec:
+ args.append("-DNLOPT_OCTAVE:Bool=OFF")
- if '+cxx' in spec:
- args.append('-DNLOPT_CXX:BOOL=ON')
+ if "+cxx" in spec:
+ args.append("-DNLOPT_CXX:BOOL=ON")
- if '+matlab' in spec:
- args.append("-DMatlab_ROOT_DIR=%s" % spec['matlab'].command.path)
+ if "+matlab" in spec:
+ args.append("-DMatlab_ROOT_DIR=%s" % spec["matlab"].command.path)
return args