formula.rb: define elisp
and opt_elisp
Closes Homebrew/homebrew#45567. Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
This commit is contained in:
parent
168a2687f8
commit
e891699342
@ -600,6 +600,15 @@ class Formula
|
|||||||
prefix+"share"+name
|
prefix+"share"+name
|
||||||
end
|
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.
|
# The directory where the formula's Frameworks should be installed.
|
||||||
# This is symlinked into `HOMEBREW_PREFIX` after installation or with
|
# This is symlinked into `HOMEBREW_PREFIX` after installation or with
|
||||||
# `brew link` for formulae that are not keg-only.
|
# `brew link` for formulae that are not keg-only.
|
||||||
@ -759,6 +768,10 @@ class Formula
|
|||||||
opt_prefix+"share"+name
|
opt_prefix+"share"+name
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def opt_elisp
|
||||||
|
opt_prefix+"share/emacs/site-lisp"+name
|
||||||
|
end
|
||||||
|
|
||||||
def opt_frameworks
|
def opt_frameworks
|
||||||
opt_prefix+"Frameworks"
|
opt_prefix+"Frameworks"
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user