summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/libgain/package.py
blob: c796dd5f983945602a15f8d27b5899cbfbcad784 (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
# Copyright 2013-2021 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.package import *


class Libgain(AutotoolsPackage):
    """GaIn is intended to provide routines with a relatively simple interface
       for calculation of overlap, kinetic and 2,3 and 4 center Coulomb integrals
       over either Solid or Cubic Harmonics Gaussian basis sets."""

    homepage = "https://bigdft.org/"
    git      = "https://gitlab.com/l_sim/bigdft-suite.git"

    version('1.0.0',   sha256='3e02637433272f5edfee74ea47abf93ab7e3f1ce717664d22329468a5bd45c3a',
            url="https://gitlab.com/l_sim/bigdft-suite/-/raw/1.9.1/GaIn-1.0.tar.gz")

    @property
    def libs(self):
        shared = "+shared" in self.spec
        return find_libraries(
            'libGaIn', root=self.prefix, shared=shared, recursive=True
        )