diff options
| author | Kentaro Wada | 2015-03-07 23:28:33 +0900 |
|---|---|---|
| committer | Tim D. Smith | 2015-03-30 23:40:57 -0700 |
| commit | 74ee238708ecd1856b4d2465f4ea722da741ff75 (patch) | |
| tree | 4ee682b48d3b7fc4ade8489bc7cf303449a06056 /Library | |
| parent | 945abe58675c63e668eb021bc426645ea64531f0 (diff) | |
| download | homebrew-74ee238708ecd1856b4d2465f4ea722da741ff75.tar.bz2 | |
apel 10.8 (new formula)
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/apel.rb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Library/Formula/apel.rb b/Library/Formula/apel.rb new file mode 100644 index 000000000..0cc29870f --- /dev/null +++ b/Library/Formula/apel.rb @@ -0,0 +1,27 @@ +class Apel < Formula + homepage "http://git.chise.org/elisp/apel/" + url "http://git.chise.org/elisp/dist/apel/apel-10.8.tar.gz" + sha256 "a511cc36bb51dc32b4915c9e03c67a994060b3156ceeab6fafa0be7874b9ccfe" + + def install + system "make", "PREFIX=#{prefix}", + "LISPDIR=#{share}/emacs/site-lisp", + "VERSION_SPECIFIC_LISPDIR=#{share}/emacs/site-lisp" + system "make", "install", "PREFIX=#{prefix}", + "LISPDIR=#{share}/emacs/site-lisp", + "VERSION_SPECIFIC_LISPDIR=#{share}/emacs/site-lisp" + (share/"emacs/site-lisp").install Dir["#{share}/emacs/site-lisp/emu/*"], + Dir["#{share}/emacs/site-lisp/apel/*"] + end + + test do + program = testpath/"test-apel.el" + program.write <<-EOS.undent + (add-to-list 'load-path "#{share}/emacs/site-lisp") + (require 'poe) + (print (minibuffer-prompt-width)) + EOS + + assert_equal "0", shell_output("emacs -batch -l #{program}").strip + end +end |
