Reworking of lapack_shared_libs
and similar properties (#1682)
* Turned <provider>_libs into an iterable Modifications : - added class LibraryList + unit tests - added convenience functions `find_libraries` and `dedupe` - modifed non Intel blas/lapack providers - modified packages using blas_shared_libs and similar functions * atlas : added pthread variant * intel packages : added lapack_libs and blas_libs * find_library_path : removed unused function * PR review : fixed last issues * LibraryList : added test on __add__ return type * LibraryList : added __radd__ fixed unit tests fix : failing unit tests due to missing `self` * cp2k and dependecies : fixed blas-lapack related statements in package.py
This commit is contained in:

committed by
Todd Gamblin

parent
6b6f868f2a
commit
d848559f70
@@ -29,7 +29,7 @@ class Opium(Package):
|
||||
"""DFT pseudopotential generation project"""
|
||||
|
||||
homepage = "https://opium.sourceforge.net/index.html"
|
||||
url = "https://downloads.sourceforge.net/project/opium/opium/opium-v3.8/opium-v3.8-src.tgz"
|
||||
url = "https://downloads.sourceforge.net/project/opium/opium/opium-v3.8/opium-v3.8-src.tgz"
|
||||
|
||||
version('3.8', 'f710c0f869e70352b4a510c31e13bf9f')
|
||||
|
||||
@@ -37,12 +37,8 @@ class Opium(Package):
|
||||
depends_on('lapack')
|
||||
|
||||
def install(self, spec, prefix):
|
||||
options = [
|
||||
'LDFLAGS=%s %s' % (
|
||||
to_link_flags(spec['lapack'].lapack_shared_lib),
|
||||
to_link_flags(spec['blas'].blas_shared_lib)
|
||||
)
|
||||
]
|
||||
libs = spec['lapack'].lapack_libs + spec['blas'].blas_libs
|
||||
options = ['LDFLAGS=%s' % libs.ld_flags]
|
||||
|
||||
configure(*options)
|
||||
with working_dir("src", create=False):
|
||||
|
Reference in New Issue
Block a user