Add list_url for packages from http://ab-initio.mit.edu/ (#4471)

This commit is contained in:
Adam J. Stewart
2017-06-12 09:48:20 -05:00
committed by GitHub
parent 0de653ff01
commit 14aa3b63e3
3 changed files with 25 additions and 34 deletions

View File

@@ -25,24 +25,25 @@
from spack import *
class Libctl(Package):
class Libctl(AutotoolsPackage):
"""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"
list_url = "http://ab-initio.mit.edu/libctl/old"
version('3.2.2', '5fd7634dc9ae8e7fa70a68473b9cbb68')
depends_on('guile')
def install(self, spec, prefix):
configure('--prefix={0}'.format(prefix),
'--enable-shared',
'GUILE={0}'.format(join_path(
spec['guile'].prefix.bin, 'guile')),
'GUILE_CONFIG={0}'.format(join_path(
spec['guile'].prefix.bin, 'guile-config')))
def configure_args(self):
spec = self.spec
make()
make('install')
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')),
]