From 10495fb1fa29a4229d9f1edbc3ab5a90f84c3fd0 Mon Sep 17 00:00:00 2001 From: "Tim D. Smith" Date: Fri, 3 Jul 2015 10:03:00 -0700 Subject: [PATCH] add Formula#pkgshare path Formalizes the (share/"foo").install idiom. Closes Homebrew/homebrew#41333. --- Library/Homebrew/formula.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 8335cf96f1..bf11af0096 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.