Skip to content

Instantly share code, notes, and snippets.

@kawaguchi
Last active September 5, 2015 15:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kawaguchi/515462 to your computer and use it in GitHub Desktop.
Save kawaguchi/515462 to your computer and use it in GitHub Desktop.
Emacsでddskkを使うためのhomebrew formula
require 'formula'
class Ddskk < Formula
homepage 'http://openlab.ring.gr.jp/skk/'
url 'http://openlab.ring.gr.jp/skk/maintrunk/ddskk-15.1.tar.gz'
sha1 'df4e7305c94cb8966e843dff9a0c9f1fabdcb082'
depends_on 'emacs'
def install
open("SKK-CFG", 'a'){|f| f.puts(<<-CFG) }
(setq SKK_DATADIR "#{share}/skk")
(setq SKK_LISPDIR "#{share}/emacs/site-lisp")
(setq SKK_INFODIR "#{share}/info")
(setq SKK_SET_JISYO nil)
(setq SKK_TUTORIALS nil)
CFG
system "make"
system "make install PREFIX=#{prefix}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment