Skip to content

Commit

Permalink
Fix GHDL 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMDev committed Apr 18, 2024
1 parent fd1388b commit b87a521
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions Casks/g/ghdl.rb
@@ -1,9 +1,9 @@
cask "ghdl" do
arch arm: "llvm", intel: "mcode"

version "4.0.0"
sha256 arm: "55140a3fd5762f051d751db1aeb8f42d53100beb8ac6468e4b1b517b7c50ab02",
intel: "d35d2e9bba77759721268ef032642ac9120d223e05675a3005bc933495089f21"
version "4.1.0"
sha256 arm: "f46cfeee85c4d76720f5c0d6ad283754bc1dae57ce9f1a3942086bc270094ddc",
intel: "8521aafad389eb769de25db13ecaaaade8444431447eb5e801dc2fcf981cdeed"

url "https://github.com/ghdl/ghdl/releases/download/v#{version}/ghdl-macos-11-#{arch}.tgz"
name "ghdl"
Expand All @@ -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

0 comments on commit b87a521

Please sign in to comment.