summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorFrancine Lapid <55203623+francinelapid@users.noreply.github.com>2020-07-30 21:17:35 -0600
committerGitHub <noreply@github.com>2020-07-30 22:17:35 -0500
commit32b070a76bdc8b81b3ad8da7e51708f13fe94bbe (patch)
tree4f78587777f16d302aead1a6abe6d4986e1c2214 /var
parent9c7c4a739f39988207e6597f9f6d2bd7bb1cc9e7 (diff)
downloadspack-32b070a76bdc8b81b3ad8da7e51708f13fe94bbe.tar.gz
spack-32b070a76bdc8b81b3ad8da7e51708f13fe94bbe.tar.bz2
spack-32b070a76bdc8b81b3ad8da7e51708f13fe94bbe.tar.xz
spack-32b070a76bdc8b81b3ad8da7e51708f13fe94bbe.zip
New package: IDL (#17451)
* New package: IDL * Update var/spack/repos/builtin/packages/idl/package.py Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> * Update var/spack/repos/builtin/packages/idl/package.py Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> * added license header and changed url_for_version to just url * removed unused imports, addressed comments * removed trailing whitespace on line 14 Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/idl/package.py41
1 files changed, 41 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/idl/package.py b/var/spack/repos/builtin/packages/idl/package.py
new file mode 100644
index 0000000000..21804ed11a
--- /dev/null
+++ b/var/spack/repos/builtin/packages/idl/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 Idl(Package):
+ """IDL Software: Interactive Data Visulation.
+
+ Note: IDL is a licensed software. You will also need an existing
+ downloaded tarball of IDL in your current directory or in a
+ spack mirror in order to install."""
+
+ homepage = "https://www.harrisgeospatial.com/Software-Technology/IDL"
+ manual_download = True
+ url = "file://{0}/idl8.7-linux.tar.gz".format(os.getcwd())
+
+ maintainers = ['francinelapid']
+
+ license_required = True
+
+ def install(self, spec, prefix):
+
+ # replace default install dir to self.prefix by editing answer file
+ filter_file('/usr/local/harris', prefix, 'silent/idl_answer_file')
+
+ # execute install script
+ install_script = Executable('./install.sh')
+ install_script('-s', input='silent/idl_answer_file')
+
+ def setup_run_environment(self, env):
+
+ # set necessary environment variables
+ env.prepend_path('EXELIS_DIR', self.prefix)
+ env.prepend_path('IDL_DIR', self.prefix.idl)
+
+ # add bin to path
+ env.prepend_path('PATH', self.prefix.idl.bin)