homebrew-core/Formula/apel.rb

30 lines
1.1 KiB
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"
2016-02-15 23:09:30 +00:00
bottle do
cellar :any_skip_relocation
2016-09-26 19:36:51 +00:00
sha256 "f39010912a4a48b6dfce1b64e420bf3e3979a373a15a16dd5d5440c97c2d3a76" => :sierra
2016-02-15 23:09:30 +00:00
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
assert_equal "0", shell_output("emacs -Q --batch -l #{program}").strip
2015-03-07 14:28:33 +00:00
end
end