apel: formula-specific directory in site-lisp
This commit is contained in:
parent
216c891b63
commit
8d99ee9894
1 changed files with 4 additions and 10 deletions
|
@ -5,24 +5,18 @@ class Apel < Formula
|
|||
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/*"]
|
||||
"LISPDIR=#{share}/emacs/site-lisp/apel",
|
||||
"VERSION_SPECIFIC_LISPDIR=#{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")
|
||||
(add-to-list 'load-path "#{share}/emacs/site-lisp/apel/emu")
|
||||
(require 'poe)
|
||||
(print (minibuffer-prompt-width))
|
||||
EOS
|
||||
|
||||
assert_equal "0", shell_output("emacs -batch -l #{program}").strip
|
||||
assert_equal "0", shell_output("emacs -Q --batch -l #{program}").strip
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue