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 7, 2024
1 parent 000f6e4 commit c365b7b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Casks/g/ghdl.rb
Expand Up @@ -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 c365b7b

Please sign in to comment.