Skip to content

Instantly share code, notes, and snippets.

@nagae
Created June 15, 2012 19:59
Show Gist options
  • Select an option

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

Select an option

Save nagae/2938445 to your computer and use it in GitHub Desktop.
require 'formula'
class Wl < Formula
url 'http://www.ring.gr.jp/archives/elisp/wl/stable/wl-2.14.0.tar.gz'
homepage 'http://www.gohome.org/wl/'
depends_on 'emacs'
depends_on 'apel'
depends_on 'flim'
depends_on 'semi'
def install
inreplace 'WL-CFG', ';(setq wl-install-utils t)', '(setq wl-install-utils t)'
File.open("wl/wl-vars.el", "a") do |f|
f.puts '(setq wl-icon-directory "' + HOMEBREW_PREFIX + '/share/emacs/etc/wl/icons")'
end
system "make", "EMACS=/Applications/Emacs.app/Contents/MacOS/Emacs"
system "make", "install", "EMACS=/Applications/Emacs.app/Contents/MacOS/Emacs", "LISPDIR=#{share}/emacs/site-lisp", "PIXMAPDIR=#{share}/emacs/etc/wl/icons"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment