Skip to content

Instantly share code, notes, and snippets.

@Yasushi
Forked from kawaguchi/ddskk.rb
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Yasushi/c0f347ff9e6c5446b34a to your computer and use it in GitHub Desktop.
Save Yasushi/c0f347ff9e6c5446b34a to your computer and use it in GitHub Desktop.
require 'formula'
class Ddskk < Formula
url 'http://openlab.ring.gr.jp/skk/maintrunk/ddskk-15.2.tar.gz'
homepage 'http://openlab.ring.gr.jp/skk/index-j.html'
sha1 '23b7c83dfa4997a0be47fca8cfd316e68f4342ec'
patch do
url "https://gist.githubusercontent.com/Yasushi/d69a49dc3eb6780952c6/raw/21becd1e99864a1924786d481172855992452b08/ddskk-rename-queue-func.diff"
sha1 "ef07cb6707f33d46cc364afa8c1cb829d3670e14"
end
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