From 5953336c3e8ca8334be135bb89e9e0cbf540d626 Mon Sep 17 00:00:00 2001 From: asmaahassan90 <31959389+asmaahassan90@users.noreply.github.com> Date: Wed, 4 Sep 2019 16:25:43 +0200 Subject: Add tecplot recipe (#12688) * Add tecplot recipe * break down description to pass lint * fix format to match python 2.6 requiremnets * importing os --- .../repos/builtin/packages/tecplot/package.py | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 var/spack/repos/builtin/packages/tecplot/package.py (limited to 'var') 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) -- cgit v1.2.3-70-g09d2