emacs: fix icon permissions on 24.5

Fixes Homebrew/homebrew#47170.

Closes Homebrew/homebrew#47181.

Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
This commit is contained in:
Alex Dunn 2015-12-19 07:47:54 -08:00
parent ce28628354
commit 23ac44ac5a

View file

@ -91,6 +91,14 @@ class Emacs < Formula
system "./configure", *args
system "make"
system "make", "install"
# Remove when 25.1 is released
if build.stable?
chmod 0644, %w[nextstep/Emacs.app/Contents/PkgInfo
nextstep/Emacs.app/Contents/Resources/Credits.html
nextstep/Emacs.app/Contents/Resources/document.icns
nextstep/Emacs.app/Contents/Resources/Emacs.icns]
end
prefix.install "nextstep/Emacs.app"
# Replace the symlink with one that avoids starting Cocoa.