xbraid: add libs method (#7233)

XBraid installs `libbraid.a`, but the default `libs` method
implementation will search for `libxbraid`, which does not exist. This
commit fixes the behavior of the `libs` method for the `xbraid`
package by overriding package's `libs` method.
This commit is contained in:
Geoffrey Oxberry 2018-02-14 01:40:56 -08:00 committed by Massimiliano Culpo
parent f36e83fa5f
commit a7b8d26fa7

View file

@ -66,3 +66,8 @@ def install(self, spec, prefix):
install_tree('test', prefix.share.test) install_tree('test', prefix.share.test)
install_tree('user_utils', prefix.share.user_utils) install_tree('user_utils', prefix.share.user_utils)
install_tree('docs', prefix.share.docs) install_tree('docs', prefix.share.docs)
@property
def libs(self):
return find_libraries('libbraid', root=self.prefix,
shared=False, recursive=True)