Skip to content

Instantly share code, notes, and snippets.

@nagae
Created November 14, 2011 05:12
Show Gist options
  • Select an option

  • Save nagae/1363294 to your computer and use it in GitHub Desktop.

Select an option

Save nagae/1363294 to your computer and use it in GitHub Desktop.
Install color-theme for cocoa-emacs
require 'formula'
class ColorTheme < Formula
url 'http://download.savannah.gnu.org/releases/color-theme/color-theme-6.6.0.tar.gz'
homepage 'http://www.nongnu.org/color-theme/'
md5 'a4de73c236a6af11ab378bfe18dabcca'
# depends_on 'cmake'
def install
inreplace 'Makefile.defs' do |s|
s.change_make_var! "EMACS", "/usr/local/Cellar/emacs/23.3a/Emacs.app/Contents/MacOS/Emacs"
s.change_make_var! "OPTIONCOMPILE", "-q --no-site-file --batch -L ."
s.change_make_var! "PREFIX", prefix
s.change_make_var! "ELISPDIR", "/usr/local/Cellar/color-theme/lisp"
s.change_make_var! "INFODIR", "/usr/local/share/info"
end
system "make"
system "mkdir -p /usr/local/Cellar/color-theme/lisp"
system "mkdir -p /usr/local/Cellar/color-theme/lisp/themes"
system "cp color-theme.el /usr/local/Cellar/color-theme/lisp/"
system "cp -r themes /usr/local/Cellar/color-theme/lisp/"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment