From 698af549ae92c9d15a60641076dc1270e0be22cb Mon Sep 17 00:00:00 2001 From: Michael <19788068+TheMDev@users.noreply.github.com> Date: Thu, 7 Mar 2024 15:56:02 -0600 Subject: [PATCH] Fix GHDL 4.0.0 --- Casks/g/ghdl.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Casks/g/ghdl.rb b/Casks/g/ghdl.rb index dee1c27911828..29309a88d9741 100644 --- a/Casks/g/ghdl.rb +++ b/Casks/g/ghdl.rb @@ -16,6 +16,18 @@ end binary "bin/ghdl" + binary "bin/ghwdump" + + postflight do + puts "Creating library symlinks in #{HOMEBREW_PREFIX}/include and #{HOMEBREW_PREFIX}/lib" + File.symlink("#{staged_path}/include/ghdl", "#{HOMEBREW_PREFIX}/include/ghdl") + File.symlink("#{staged_path}/lib/ghdl", "#{HOMEBREW_PREFIX}/lib/ghdl") + end + + uninstall_postflight do + puts "Removing library symlinks in #{HOMEBREW_PREFIX}/include and #{HOMEBREW_PREFIX}/lib" + File.unlink("#{HOMEBREW_PREFIX}/include/ghdl", "#{HOMEBREW_PREFIX}/lib/ghdl") + end # No zap stanza required end