From 0de12be52a0a3672cc2e3268e3048c65865ba950 Mon Sep 17 00:00:00 2001 From: asmaahassan90 <31959389+asmaahassan90@users.noreply.github.com> Date: Wed, 10 Jun 2020 01:58:34 +0200 Subject: add gaussian-view (#16890) --- .../builtin/packages/gaussian-view/package.py | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 var/spack/repos/builtin/packages/gaussian-view/package.py 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) -- cgit v1.2.3-70-g09d2