summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorasmaahassan90 <31959389+asmaahassan90@users.noreply.github.com>2020-06-10 01:58:34 +0200
committerGitHub <noreply@github.com>2020-06-09 16:58:34 -0700
commit0de12be52a0a3672cc2e3268e3048c65865ba950 (patch)
tree6e67cdc894c657230ae43753a042e01f391e8891
parent9a18fbbc3ede80d52bd70a984961728e0909cd86 (diff)
downloadspack-0de12be52a0a3672cc2e3268e3048c65865ba950.tar.gz
spack-0de12be52a0a3672cc2e3268e3048c65865ba950.tar.bz2
spack-0de12be52a0a3672cc2e3268e3048c65865ba950.tar.xz
spack-0de12be52a0a3672cc2e3268e3048c65865ba950.zip
add gaussian-view (#16890)
-rw-r--r--var/spack/repos/builtin/packages/gaussian-view/package.py41
1 files changed, 41 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/gaussian-view/package.py b/var/spack/repos/builtin/packages/gaussian-view/package.py
new file mode 100644
index 0000000000..4de3c9e02b
--- /dev/null
+++ b/var/spack/repos/builtin/packages/gaussian-view/package.py
@@ -0,0 +1,41 @@
+# Copyright 2013-2020 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 *
+import os
+
+
+class GaussianView(Package):
+ """GaussView 6 is the latest iteration of a graphical interface used with
+ Gaussian. It aids in the creation of Gaussian input files, enables the
+ user to run Gaussian calculations from a graphical interface without the
+ need for using a command line instruction, and helps in the interpretation
+ of Gaussian output"""
+
+ homepage = "https://gaussian.com/gaussview6/"
+ manual_download = True
+
+ version('6016',
+ '5dd6a8df8c81763e43a308b3a18d2d3b825d3597e9628dcf43e563d1867b9638',
+ extension='tbz')
+
+ depends_on('gaussian@16-B.01', type='run')
+
+ def url_for_version(self, version):
+ return "file://{0}/gv-{1}-Linux-x86_64.tbz".format(os.getcwd(),
+ version)
+
+ def install(self, spec, prefix):
+ install_tree(os.getcwd(), self.prefix)
+
+ def setup_run_environment(self, env):
+ env.set('GV_DIR', self.prefix)
+ env.prepend_path('PATH', self.prefix)
+ env.set('GV_LIB_PATH', self.prefix.lib)
+ env.prepend_path('GV_LIB_PATH', self.prefix.lib.MesaGL)
+ env.prepend_path('LD_LIBRARY_PATH', self.prefix.lib.MesaGL)
+ env.set('ALLOWINDIRECT', '1')
+ env.prepend_path('QT_PLUGIN_PATH', self.prefix.plugins)