Skip to content

Commit

Permalink
Merge pull request #156019 from cho-m/texlive-fix-perl5.38
Browse files Browse the repository at this point in the history
texlive: fix build with Perl 5.38
  • Loading branch information
BrewTestBot authored Nov 30, 2023
2 parents b596ca8 + 2e850d1 commit 71b8e84
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Formula/t/texlive.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 71b8e84

Please sign in to comment.