blob: bcdf8a5b1a7e504e34fb98de7876228d14195daa (
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
|
# 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 MctcLib(MesonPackage):
"""Modular computation toolchain library for quantum chemistry file IO"""
homepage = "https://github.com/grimme-lab/mctc-lib"
url = "https://github.com/grimme-lab/mctc-lib/releases/download/v0.3.0/mctc-lib-0.3.0.tar.xz"
git = "https://github.com/grimme-lab/mctc-lib"
maintainers = ["awvwgk"]
version("main", branch="main")
version('0.3.0', '81f3edbf322e6e28e621730a796278498b84af0f221f785c537a315312059bf0')
variant("json", default=False, description="Enable support for JSON")
depends_on("meson@0.57.2:", type="build")
depends_on("json-fortran@8:", when="+json")
depends_on("pkgconfig", type="build")
def meson_args(self):
return [
"--wrap-mode=nodownload",
"-Djson={0}".format("enabled" if "+json" in self.spec else "disabled"),
]
|