diff options
author | t-nojiri <68096132+t-nojiri@users.noreply.github.com> | 2020-10-16 19:08:59 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-16 12:08:59 +0200 |
commit | 4b9701a195f32ba054f94a375548ad224e887bca (patch) | |
tree | 4efbe192c2dd082ece671b7902782c74a24bb03a | |
parent | a481087695346828db4d5f9e7f489e15a54630cc (diff) | |
download | spack-4b9701a195f32ba054f94a375548ad224e887bca.tar.gz spack-4b9701a195f32ba054f94a375548ad224e887bca.tar.bz2 spack-4b9701a195f32ba054f94a375548ad224e887bca.tar.xz spack-4b9701a195f32ba054f94a375548ad224e887bca.zip |
opium : convert to be an autotools package (#18708)
-rw-r--r-- | var/spack/repos/builtin/packages/opium/package.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/opium/package.py b/var/spack/repos/builtin/packages/opium/package.py index f593889dd4..19f3b8fcf6 100644 --- a/var/spack/repos/builtin/packages/opium/package.py +++ b/var/spack/repos/builtin/packages/opium/package.py @@ -6,7 +6,7 @@ from spack import * -class Opium(Package): +class Opium(AutotoolsPackage): """DFT pseudopotential generation project""" homepage = "https://opium.sourceforge.net/index.html" @@ -17,15 +17,19 @@ class Opium(Package): depends_on('blas') depends_on('lapack') - def install(self, spec, prefix): + def configure_args(self): + spec = self.spec + options = [] libs = spec['lapack'].libs + spec['blas'].libs - options = ['LDFLAGS=%s' % libs.ld_flags] + options.append('LDFLAGS=%s' % libs.ld_flags) + return options - configure(*options) + def build(self, spec, prefix): with working_dir("src", create=False): make("all-subdirs") make("opium") + def install(self, spec, prefix): # opium not have a make install :-(( mkdirp(self.prefix.bin) install(join_path(self.stage.source_path, 'opium'), |