diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2016-07-01 16:30:11 -0500 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2016-08-01 13:35:20 -0500 |
commit | 7e53f4328fcb94190bf7c54287aee95df563af01 (patch) | |
tree | c2ae5e8b14e365d7560d1438dd4d0cdb242f1cf6 /var/spack/repos/builtin/packages/harminv | |
parent | cc3fc2ba4c789b198848a017361c2f36fa296567 (diff) | |
download | spack-7e53f4328fcb94190bf7c54287aee95df563af01.tar.gz spack-7e53f4328fcb94190bf7c54287aee95df563af01.tar.bz2 spack-7e53f4328fcb94190bf7c54287aee95df563af01.tar.xz spack-7e53f4328fcb94190bf7c54287aee95df563af01.zip |
Add py-meep package and dependencies
Diffstat (limited to 'var/spack/repos/builtin/packages/harminv')
-rw-r--r-- | var/spack/repos/builtin/packages/harminv/package.py | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/harminv/package.py b/var/spack/repos/builtin/packages/harminv/package.py new file mode 100644 index 0000000000..4b07d6687c --- /dev/null +++ b/var/spack/repos/builtin/packages/harminv/package.py @@ -0,0 +1,53 @@ +############################################################################## +# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC. +# Produced at the Lawrence Livermore National Laboratory. +# +# This file is part of Spack. +# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. +# LLNL-CODE-647188 +# +# For details, see https://github.com/llnl/spack +# Please also see the LICENSE file for our notice and the LGPL. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License (as +# published by the Free Software Foundation) version 2.1, February 1999. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and +# conditions of the GNU Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +############################################################################## +from spack import * + + +class Harminv(Package): + """Harminv is a free program (and accompanying library) to solve the + problem of harmonic inversion - given a discrete-time, finite-length + signal that consists of a sum of finitely-many sinusoids (possibly + exponentially decaying) in a given bandwidth, it determines the + frequencies, decay constants, amplitudes, and phases of those sinusoids.""" + + homepage = "http://ab-initio.mit.edu/wiki/index.php/Harminv" + url = "http://ab-initio.mit.edu/harminv/harminv-1.4.tar.gz" + + version('1.4', 'b95e24a9bc7e07d3d2202d1605e9e86f') + + depends_on('blas') + depends_on('lapack') + + def install(self, spec, prefix): + config_args = [ + '--prefix={0}'.format(prefix), + '--with-blas={0}'.format(spec['blas'].prefix.lib), + '--with-lapack={0}'.format(spec['lapack'].prefix.lib) + ] + + configure(*config_args) + + make() + make('install') |