aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorTim D. Smith2015-07-03 10:03:00 -0700
committerTim D. Smith2015-07-07 17:39:20 -0700
commit10495fb1fa29a4229d9f1edbc3ab5a90f84c3fd0 (patch)
tree9c9a5d85a4a995293af3e420a5bd708bf3dd0821 /Library
parent2456c9a4c4869313b3e9433c0ab6f478ed58edd0 (diff)
downloadbrew-10495fb1fa29a4229d9f1edbc3ab5a90f84c3fd0.tar.bz2
add Formula#pkgshare path
Formalizes the (share/"foo").install idiom. Closes Homebrew/homebrew#41333.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 8335cf96f..bf11af009 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -387,6 +387,12 @@ class Formula
# `brew link` for formulae that are not keg-only.
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.
# This is symlinked into `HOMEBREW_PREFIX` after installation or with
# `brew link` for formulae that are not keg-only.