summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/karma/package.py
blob: 439369f69719319dcb47aba011a5d2656a75790b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# 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 *


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)