2015-03-07 14:28:33 +00:00
|
|
|
class Apel < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
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"
|
|
|
|
|
2016-02-15 23:09:30 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
|
|
|
sha256 "f47d90fd2aea06a0e52a75b84af03c7a97f479f00f621168eb5afb6f911e999f" => :el_capitan
|
|
|
|
sha256 "90038f974eb80c5d670990f349a13d629e2139098720ca13b5a26c7c9a8c9360" => :yosemite
|
|
|
|
sha256 "00acef6949043235fc8a613c1d5dc9f58d8e365bde486d42461fc89449ff834b" => :mavericks
|
|
|
|
end
|
|
|
|
|
2015-03-07 14:28:33 +00:00
|
|
|
def install
|
|
|
|
system "make", "install", "PREFIX=#{prefix}",
|
2016-07-22 03:13:59 +00:00
|
|
|
"LISPDIR=#{elisp}", "VERSION_SPECIFIC_LISPDIR=#{elisp}"
|
2015-03-07 14:28:33 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
program = testpath/"test-apel.el"
|
|
|
|
program.write <<-EOS.undent
|
2016-07-22 03:13:59 +00:00
|
|
|
(add-to-list 'load-path "#{elisp}/emu")
|
2015-03-07 14:28:33 +00:00
|
|
|
(require 'poe)
|
|
|
|
(print (minibuffer-prompt-width))
|
|
|
|
EOS
|
2015-08-01 21:55:35 +00:00
|
|
|
assert_equal "0", shell_output("emacs -Q --batch -l #{program}").strip
|
2015-03-07 14:28:33 +00:00
|
|
|
end
|
|
|
|
end
|