From eb290d63c24115b2a941c6cc47abe0ab46084ed2 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Wed, 2 Dec 2009 15:06:01 +0000 Subject: Fix Parrot on Leopard; Fixes #146 --- Library/Formula/parrot.rb | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/parrot.rb b/Library/Formula/parrot.rb index 9e3ab4be1..03b7b0a1e 100644 --- a/Library/Formula/parrot.rb +++ b/Library/Formula/parrot.rb @@ -1,20 +1,24 @@ require 'formula' class Parrot = 10.6 + + system "perl", "Configure.pl", *confargs + system "make" system "make install" - h = "#{HOMEBREW_PREFIX}/Cellar/parrot/1.6.0/bin/" - l = %x{otool -L #{h}parrot}[/\S*blib\/lib\S*/] - %w{parrot parrot_config parrot_debugger}.each do |f| - system "install_name_tool -change #{l} #{HOMEBREW_PREFIX}/lib/libparrot.dylib #{h}#{f}" + l = %x{otool -L #{bin}/parrot}[/\S*blib\/lib\S*/] + %w{parrot parrot_config parrot_debugger}.each do |fn| + system "install_name_tool -change #{l} #{lib}/libparrot.dylib #{bin+fn}" end end end -- cgit v1.2.3