From 2e850d1a50be726b0e175bbddfcbf91f591c6dd3 Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Thu, 30 Nov 2023 11:54:27 -0500 Subject: [PATCH] texlive: fix build with Perl 5.38 --- Formula/t/texlive.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Formula/t/texlive.rb b/Formula/t/texlive.rb index d125e98da7352..7924c084c1c64 100644 --- a/Formula/t/texlive.rb +++ b/Formula/t/texlive.rb @@ -350,8 +350,10 @@ def install next if tex_resources.include? r.name if File.exist? "Makefile.PL" - system "perl", "Makefile.PL", "INSTALL_BASE=#{libexec}", - "CCFLAGS=-I#{Formula["freetype"].opt_include}/freetype2" + args = ["INSTALL_BASE=#{libexec}"] + args += ["X11INC=#{HOMEBREW_PREFIX}/include", "X11LIB=#{HOMEBREW_PREFIX}/lib"] if r.name == "Tk" + + system "perl", "Makefile.PL", *args system "make" system "make", "install" else