diff options
| author | blogabe | 2014-04-27 19:08:00 -0700 |
|---|---|---|
| committer | Mike McQuaid | 2014-05-05 13:49:01 +0100 |
| commit | 7b25ec0718f2ea0c10066c05ff678b33a4668500 (patch) | |
| tree | 8b024e11997c7423e1b3344fe162940c7da1fff9 /Library/Formula | |
| parent | 1616079d946db30688c782792e3326e7131d0754 (diff) | |
| download | homebrew-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.rb | 1 |
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}'" |
