requirement: convert Cellar path to opt path.
This commit is contained in:
parent
5de7ec394b
commit
f0b25b5482
@ -77,7 +77,11 @@ class Requirement
|
||||
|
||||
def satisfied_result_parent
|
||||
return unless @satisfied_result.is_a?(Pathname)
|
||||
@satisfied_result.resolved_path.parent
|
||||
parent = @satisfied_result.resolved_path.parent
|
||||
if parent.to_s =~ %r{^#{Regexp.escape(HOMEBREW_CELLAR)}/([\w+-.@]+)/[^/]+/(s?bin)/?$}
|
||||
parent = HOMEBREW_PREFIX/"opt/#{Regexp.last_match(1)}/#{Regexp.last_match(2)}"
|
||||
end
|
||||
parent
|
||||
end
|
||||
|
||||
# Overriding #modify_build_environment is deprecated.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user