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
|
# 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)
import os
from spack import *
class Adf(Package):
"""Amsterdam Density Functional (ADF) is a program for first-principles
electronic structure calculations that makes use of density functional
theory."""
homepage = "https://www.scm.com/product/adf/"
manual_download = True
version('2017.113', '666ef15d253b74c707dd14da35e7cf283ca20e21e24ed43cb953fb9d1f2f1e15')
def url_for_version(self, version):
return "file://{0}/adf/adf{1}.pc64_linux.openmpi.bin.tgz".format(
os.getcwd(), version)
# Licensing
license_required = True
license_files = ['license.txt']
license_vars = ['SCMLICENSE']
def setup_run_environment(self, env):
env.set('ADFHOME', self.prefix)
env.set('ADFBIN', self.prefix.bin)
env.set('ADFRESOURCES', self.prefix.atomicdata)
env.set('SCMLICENSE', join_path(self.prefix, 'license.txt'))
env.set('SCM_TMPDIR', '/tmp')
def install(self, spec, prefix):
install_tree('.', prefix)
|