r-textshaping,r-ragg: Add dep on pkgconfig, type="build" and handle freetype@2.13.3 (#47091)
* r-textshaping: build-dep on pkgconfig to find harfbuzz * r-ragg: Fix build with freetype@2.13.3
This commit is contained in:
parent
f889b2a95e
commit
ffc904aa6b
@ -28,3 +28,9 @@ class RRagg(RPackage):
|
||||
depends_on("libpng")
|
||||
depends_on("libtiff")
|
||||
depends_on("jpeg")
|
||||
|
||||
def flag_handler(self, name, flags):
|
||||
# Freetype 2.13.3 broke the public interface by switching char/unsigned char:
|
||||
if name == "cxxflags" and self.spec["freetype"].version >= Version("2.13.3"):
|
||||
flags.append("-fpermissive")
|
||||
return (flags, None, None)
|
||||
|
@ -23,6 +23,7 @@ class RTextshaping(RPackage):
|
||||
depends_on("r@3.2.0:", type=("build", "run"))
|
||||
depends_on("r-systemfonts@1.0.0:", type=("build", "run"))
|
||||
depends_on("r-cpp11@0.2.1:", type=("build", "run"))
|
||||
depends_on("pkgconfig", type="build")
|
||||
depends_on("freetype")
|
||||
depends_on("harfbuzz")
|
||||
depends_on("fribidi")
|
||||
|
Loading…
Reference in New Issue
Block a user