From 837dc22a0b4a6480900034bfd44ffcbd93ee6b42 Mon Sep 17 00:00:00 2001 From: Miles Perry <37849532+Miles-Perry@users.noreply.github.com> Date: Thu, 25 Oct 2018 19:53:22 -0500 Subject: new package: karma (#9571) --- var/spack/repos/builtin/packages/karma/package.py | 39 +++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 var/spack/repos/builtin/packages/karma/package.py (limited to 'var') diff --git a/var/spack/repos/builtin/packages/karma/package.py b/var/spack/repos/builtin/packages/karma/package.py new file mode 100644 index 0000000000..b1a45f6919 --- /dev/null +++ b/var/spack/repos/builtin/packages/karma/package.py @@ -0,0 +1,39 @@ +# Copyright 2013-2018 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 * + + +class Karma(Package): + """Karma is a toolkit for interprocess communications, authentication, + encryption, graphics display, user interface and manipulating the Karma + network data structure. It contains KarmaLib (the structured libraries + and API) and a large number of modules (applications) + to perform many standard tasks. """ + + homepage = "https://www.atnf.csiro.au/computing/software/karma/" + url = "ftp://ftp.atnf.csiro.au/pub/software/karma/karma-1.7.25-common.tar.bz2" + + version('1.7.25-common', sha256='afda682d79c0923df5a6c447a32b09294da1582933abae3205c008104da54fbd') + + depends_on('libx11', type=('build', 'run')) + depends_on('libxaw', type=('build', 'run')) + + phases = ['install'] + + resource( + name='karma-linux', + url='ftp://ftp.atnf.csiro.au/pub/software/karma/karma-1.7.25-amd64_Linux_libc6.3.tar.bz2', + sha256='effc3ed61c28b966b357147d90357d03c22d743c6af6edb49a863c6eb625a441', + destination='./' + ) + + def setup_environment(self, spack_env, run_env): + run_env.prepend_path('LIBRARY_PATH', self.prefix.lib) + run_env.prepend_path('LD_LIBRARY_PATH', self.prefix.lib) + + def install(self, spec, prefix): + install_tree('./karma-1.7.25/amd64_Linux_libc6.3/bin', prefix.bin) + install_tree('./karma-1.7.25/amd64_Linux_libc6.3/lib', prefix.lib) -- cgit v1.2.3-70-g09d2