brotli: fix darwin install name (#13258)

This commit is contained in:
Adam J. Stewart 2019-10-19 12:18:06 -05:00 committed by GitHub
parent 327a7368e9
commit 306346356c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,3 +13,9 @@ class Brotli(CMakePackage):
url = "https://github.com/google/brotli/archive/v1.0.7.tar.gz"
version('1.0.7', sha256='4c61bfb0faca87219ea587326c467b95acb25555b53d1a421ffa3c8a9296ee2c')
@run_after('install')
def darwin_fix(self):
# The shared library is not installed correctly on Darwin; fix this
if self.spec.satisfies('platform=darwin'):
fix_darwin_install_name(self.prefix.lib)