homebrew-core/Formula/apel.rb

23 lines
764 B
Ruby
Raw Normal View History

2015-03-07 14:28:33 +00:00
class Apel < Formula
desc "Emacs Lisp library to help write portable Emacs programs"
2015-03-07 14:28:33 +00:00
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", "install", "PREFIX=#{prefix}",
"LISPDIR=#{share}/emacs/site-lisp/apel",
"VERSION_SPECIFIC_LISPDIR=#{share}/emacs/site-lisp/apel"
2015-03-07 14:28:33 +00:00
end
test do
program = testpath/"test-apel.el"
program.write <<-EOS.undent
(add-to-list 'load-path "#{share}/emacs/site-lisp/apel/emu")
2015-03-07 14:28:33 +00:00
(require 'poe)
(print (minibuffer-prompt-width))
EOS
assert_equal "0", shell_output("emacs -Q --batch -l #{program}").strip
2015-03-07 14:28:33 +00:00
end
end