graphite2: fix build on macOS (#32636)

This commit is contained in:
Adam J. Stewart 2022-09-13 22:16:59 -05:00 committed by GitHub
parent 9f72962dd1
commit cb323b1f55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,8 +17,15 @@ class Graphite2(CMakePackage):
)
url = "https://github.com/silnrsi/graphite/releases/download/1.3.13/graphite2-1.3.13.tgz"
version("1.3.14", sha256="f99d1c13aa5fa296898a181dff9b82fb25f6cc0933dbaa7a475d8109bd54209d")
version("1.3.13", sha256="dd63e169b0d3cf954b397c122551ab9343e0696fb2045e1b326db0202d875f06")
depends_on("python@3.6:", type="test")
patch("regparm.patch")
@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)