2019-12-31 14:36:56 +08:00
|
|
|
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
|
2018-10-08 04:52:23 +08:00
|
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
2016-07-02 05:30:11 +08:00
|
|
|
#
|
2018-10-08 04:52:23 +08:00
|
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
2016-07-02 05:30:11 +08:00
|
|
|
from spack import *
|
|
|
|
|
|
|
|
|
2017-06-12 22:48:20 +08:00
|
|
|
class Libctl(AutotoolsPackage):
|
2016-07-02 05:30:11 +08:00
|
|
|
"""libctl is a free Guile-based library implementing flexible
|
|
|
|
control files for scientific simulations."""
|
|
|
|
|
|
|
|
homepage = "http://ab-initio.mit.edu/wiki/index.php/Libctl"
|
|
|
|
url = "http://ab-initio.mit.edu/libctl/libctl-3.2.2.tar.gz"
|
2017-06-12 22:48:20 +08:00
|
|
|
list_url = "http://ab-initio.mit.edu/libctl/old"
|
2016-07-02 05:30:11 +08:00
|
|
|
|
2019-10-11 13:44:41 +08:00
|
|
|
version('3.2.2', sha256='8abd8b58bc60e84e16d25b56f71020e0cb24d75b28bc5db86d50028197c7efbc')
|
2016-07-02 05:30:11 +08:00
|
|
|
|
|
|
|
depends_on('guile')
|
|
|
|
|
2017-06-12 22:48:20 +08:00
|
|
|
def configure_args(self):
|
|
|
|
spec = self.spec
|
2016-07-02 05:30:11 +08:00
|
|
|
|
2017-06-12 22:48:20 +08:00
|
|
|
return [
|
|
|
|
'--enable-shared',
|
|
|
|
'GUILE={0}'.format(join_path(
|
|
|
|
spec['guile'].prefix.bin, 'guile')),
|
|
|
|
'GUILE_CONFIG={0}'.format(join_path(
|
|
|
|
spec['guile'].prefix.bin, 'guile-config')),
|
|
|
|
]
|