Update emacs rakefile

This commit is contained in:
Henrik Lissner 2015-04-28 13:34:28 -04:00
parent df15a6164c
commit 1b09e9c4b3

View file

@ -3,7 +3,7 @@ if is_mac?
ENV["EMACS_D"] = File.expand_path("~/.emacs.d") ENV["EMACS_D"] = File.expand_path("~/.emacs.d")
def emacs_reqs def emacs_reqs
[ "emacs --with-gnutls --cocoa", [ "emacs-mac --with-gnutls --with-imagemagick --with-modern-icon --HEAD",
"ispell", "ispell",
"cask", "cask",
"markdown" ] "markdown" ]
@ -43,7 +43,10 @@ if is_mac?
desc "Setup required homebrew packages" desc "Setup required homebrew packages"
task :setup do task :setup do
setup if !emacs_installed? || ENV["FORCE"] if !emacs_installed? || ENV["FORCE"]
Package.tap "railwaycat/emacsmacport"
setup
end
end end
desc "Setup required node & node plugins" desc "Setup required node & node plugins"
@ -70,6 +73,7 @@ if is_mac?
echo "Uninstalling emacs" echo "Uninstalling emacs"
Package.remove "emacs" Package.remove "emacs"
Package.remove "homebrew/dupes/tidy" Package.remove "homebrew/dupes/tidy"
Package.untap "railwaycat/emacsmacport"
emacs_reqs.each { |pkg| Package.remove pkg.split.first } emacs_reqs.each { |pkg| Package.remove pkg.split.first }
rm_rf ENV["EMACS_D"] if Dir.exists? ENV["EMACS_D"] rm_rf ENV["EMACS_D"] if Dir.exists? ENV["EMACS_D"]