aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAlex Dunn2015-10-31 21:45:40 -0700
committerAlex Dunn2015-11-01 17:34:28 -0800
commite8916993421d7586adb72ecba5b067a75d80b895 (patch)
treef9f60d629f485cd1893a144ce51474e5ab994170 /Library
parent168a2687f8ca00d59d8c4e1d1c50dc650f67cab8 (diff)
downloadbrew-e8916993421d7586adb72ecba5b067a75d80b895.tar.bz2
formula.rb: define `elisp` and `opt_elisp`
Closes Homebrew/homebrew#45567. Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index ffbd02cfc..d0d1e269b 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -600,6 +600,15 @@ class Formula
prefix+"share"+name
end
+ # The directory where Emacs Lisp files should be installed, with the
+ # formula name appended to avoid linking conflicts.
+ #
+ # Install an Emacs mode included with a software package:
+ # <pre>elisp.install "contrib/emacs/example-mode.el"</pre>
+ def elisp
+ prefix+"share/emacs/site-lisp"+name
+ end
+
# The directory where the formula's Frameworks should be installed.
# This is symlinked into `HOMEBREW_PREFIX` after installation or with
# `brew link` for formulae that are not keg-only.
@@ -759,6 +768,10 @@ class Formula
opt_prefix+"share"+name
end
+ def opt_elisp
+ opt_prefix+"share/emacs/site-lisp"+name
+ end
+
def opt_frameworks
opt_prefix+"Frameworks"
end