Skip to content

Commit

Permalink
povray: adjust hard-coded /usr/local in scripts
Browse files Browse the repository at this point in the history
Some helper scripts have a hard-coded `/usr/local`, making them useless
for users with a non-standard Homebrew installation location.
  • Loading branch information
UniqMartin committed Apr 22, 2016
1 parent f01cc18 commit 52697ce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Formula/povray.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ def install

args << "--with-openexr=#{HOMEBREW_PREFIX}" if build.with? "openexr"

# Adjust some scripts to search for `etc` in HOMEBREW_PREFIX.
%w[allanim allscene portfolio].each do |script|
inreplace "unix/scripts/#{script}.sh",
/^DEFAULT_DIR=.*$/, "DEFAULT_DIR=#{HOMEBREW_PREFIX}"
end

cd "unix" do
system "./prebuild.sh"
end
Expand Down

0 comments on commit 52697ce

Please sign in to comment.