diff options
author | asmaahassan90 <31959389+asmaahassan90@users.noreply.github.com> | 2019-09-04 16:25:43 +0200 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2019-09-04 09:25:43 -0500 |
commit | 5953336c3e8ca8334be135bb89e9e0cbf540d626 (patch) | |
tree | df514a682bb3fe7d73a8c95cd292306ab4bbdd68 | |
parent | 3181021c11148ff86efa1a7830157b5f7ef9378d (diff) | |
download | spack-5953336c3e8ca8334be135bb89e9e0cbf540d626.tar.gz spack-5953336c3e8ca8334be135bb89e9e0cbf540d626.tar.bz2 spack-5953336c3e8ca8334be135bb89e9e0cbf540d626.tar.xz spack-5953336c3e8ca8334be135bb89e9e0cbf540d626.zip |
Add tecplot recipe (#12688)
* Add tecplot recipe
* break down description to pass lint
* fix format to match python 2.6 requiremnets
* importing os
-rw-r--r-- | var/spack/repos/builtin/packages/tecplot/package.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/tecplot/package.py b/var/spack/repos/builtin/packages/tecplot/package.py new file mode 100644 index 0000000000..8d2ab796ef --- /dev/null +++ b/var/spack/repos/builtin/packages/tecplot/package.py @@ -0,0 +1,30 @@ +# Copyright 2013-2019 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 Tecplot(Package): + """Tecplot 360 is a Computational Fluid Dynamics (CFD) and numerical + simulation software package used in post-processing simulation results. + It is also used in chemistry applications to visualize molecule structure + by post-processing charge density data.""" + + homepage = "https://www.tecplot.com/" + version('2017r1', '06a8057d33a519607720d4c621cd3f50', expand=False) + version('2018r2', 'd3cf54a7555e0259b7ba0d82fef23bc3', expand=False) + + def url_for_version(self, version): + return "file://{0}/tecplot360ex{1}_linux64.sh".format(os.getcwd(), version) + + def install(self, spec, prefix): + makefile = FileFilter(self.stage.archive_file) + makefile.filter('interactive=TRUE', 'interactive=FALSE') + makefile.filter('cpack_skip_license=FALSE', 'cpack_skip_license=TRUE') + + set_executable(self.stage.archive_file) + installer = Executable(self.stage.archive_file) + installer('--prefix=%s' % prefix) |