forked from Homebrew/homebrew-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apel.rb
28 lines (25 loc) · 1.02 KB
/
apel.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class Apel < Formula
desc "Emacs Lisp library to help write portable Emacs programs"
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