add Formula#pkgshare path
Formalizes the (share/"foo").install idiom. Closes Homebrew/homebrew#41333.
This commit is contained in:
parent
2456c9a4c4
commit
10495fb1fa
@ -387,6 +387,12 @@ class Formula
|
|||||||
# `brew link` for formulae that are not keg-only.
|
# `brew link` for formulae that are not keg-only.
|
||||||
def share; prefix+'share' end
|
def share; prefix+'share' end
|
||||||
|
|
||||||
|
# The directory where the formula's shared files should be installed,
|
||||||
|
# with the name of the formula appended to avoid linking conflicts.
|
||||||
|
# This is symlinked into `HOMEBREW_PREFIX` after installation or with
|
||||||
|
# `brew link` for formulae that are not keg-only.
|
||||||
|
def pkgshare; prefix+'share'+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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user