blob: 2311bee8989af9209d4121dd350698e7f97f4c48 (
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
|
# 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 *
class JsonFortran(CMakePackage):
"""A Fortran 2008 JSON API"""
homepage = "http://jacobwilliams.github.io/json-fortran/"
url = "https://github.com/jacobwilliams/json-fortran/archive/7.0.0.tar.gz"
version('7.1.0', sha256='e7aa1f6e09b25ebacb17188147380c3f8c0a254754cd24869c001745fcecc9e6')
version('7.0.0', sha256='9b5b6235489b27d572bbc7620ed8e039fa9d4d14d41b1581b279be9db499f32c')
depends_on('cmake@2.8.8:', type='build')
def cmake_args(self):
return [
'-DSKIP_DOC_GEN:BOOL=ON',
'-DUSE_GNU_INSTALL_CONVENTION=ON',
]
def check(self):
# `make check` works but `make test` doesn't:
# https://github.com/jacobwilliams/json-fortran/issues/154
with working_dir(self.build_directory):
make('check')
|