aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorblogabe2014-04-27 19:08:00 -0700
committerMike McQuaid2014-05-05 13:49:01 +0100
commit7b25ec0718f2ea0c10066c05ff678b33a4668500 (patch)
tree8b024e11997c7423e1b3344fe162940c7da1fff9 /Library/Formula
parent1616079d946db30688c782792e3326e7131d0754 (diff)
downloadhomebrew-7b25ec0718f2ea0c10066c05ff678b33a4668500.tar.bz2
perlmagick: fix to install to any $(brew --prefix)
not just /usr/local removing unnecessary ENV appends only one additional change to Makefile.PL from original formula to install to non /usr/local
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/perlmagick.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Formula/perlmagick.rb b/Library/Formula/perlmagick.rb
index 6e99dbb23..3c0b9e12e 100644
--- a/Library/Formula/perlmagick.rb
+++ b/Library/Formula/perlmagick.rb
@@ -16,6 +16,7 @@ class Perlmagick < Formula
def install
inreplace "Makefile.PL" do |s|
+ s.gsub! "INC_magick = '-I/usr/local/include/ImageMagick-6", "INC_magick = '-I#{Formula["imagemagick"].include}/ImageMagick-6"
s.gsub! "-I/usr/include/freetype2", "-I#{Formula["freetype"].include}/freetype2"
s.gsub! "'INSTALLBIN' => '/usr/local/bin'", "'INSTALLBIN' => '#{bin}'"
s.gsub! "# 'PREFIX' => '/usr/local'", "'PREFIX' => '#{prefix}'"