summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/eospac/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/eospac/package.py')
-rw-r--r--var/spack/repos/builtin/packages/eospac/package.py39
1 files changed, 39 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/eospac/package.py b/var/spack/repos/builtin/packages/eospac/package.py
new file mode 100644
index 0000000000..54000d6b5f
--- /dev/null
+++ b/var/spack/repos/builtin/packages/eospac/package.py
@@ -0,0 +1,39 @@
+# Copyright 2013-2018 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 Eospac(Package):
+ """A collection of C routines that can be used to access the Sesame data
+ library.
+ """
+
+ homepage = "https://laws.lanl.gov/projects/data/eos.html"
+ list_url = "https://laws.lanl.gov/projects/data/eos/eospacReleases.php"
+
+ version('6.4.0beta.2', '9b6e48090647221d5ffe7ec5f9ea4c71',
+ url="https://laws.lanl.gov/projects/data/eos/get_file.php?package=eospac&filename=eospac_v6.4.0beta.2_69196eadbc77506561eef711f19d2f03b4ab0ffa.tgz")
+ version('6.4.0beta.1', 'e4e4beabf946f0b8953532832002afc2',
+ url="https://laws.lanl.gov/projects/data/eos/get_file.php?package=eospac&filename=eospac_v6.4.0beta.1_r20171213193219.tgz")
+ version('6.3.1', '549fda008c4169a69b02ec2a9de1e434', preferred=True,
+ url="https://laws.lanl.gov/projects/data/eos/get_file.php?package=eospac&filename=eospac_v6.3.1_r20161202150449.tgz")
+
+ # This patch allows the use of spack's compile wrapper 'flang'
+ patch('flang.patch', when='@:6.4.0beta.2%clang')
+
+ def install(self, spec, prefix):
+ with working_dir('Source'):
+ make('install',
+ 'CC={0}'.format(spack_cc),
+ 'CXX={0}'.format(spack_cxx),
+ 'F77={0}'.format(spack_f77),
+ 'F90={0}'.format(spack_fc),
+ 'prefix={0}'.format(prefix),
+ 'INSTALLED_LIBRARY_DIR={0}'.format(prefix.lib),
+ 'INSTALLED_INCLUDE_DIR={0}'.format(prefix.include),
+ 'INSTALLED_EXAMPLE_DIR={0}'.format(prefix.example),
+ 'INSTALLED_BIN_DIR={0}'.format(prefix.bin))