From 5dabf049bf767f2fcb9ad2f33b5fff901cab9e46 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Sat, 8 Feb 2014 19:38:42 -0800 Subject: john: separate out target argument --- Library/Formula/john.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/john.rb b/Library/Formula/john.rb index 6bb5a2e1e..0cd15d049 100644 --- a/Library/Formula/john.rb +++ b/Library/Formula/john.rb @@ -18,13 +18,14 @@ class John < Formula def install ENV.deparallelize - arch = Hardware.is_64_bit? ? '64' : 'sse2' + arch = MacOS.prefer_64_bit? ? '64' : 'sse2' + target = "macosx-x86-#{arch}" cd 'src' do inreplace 'Makefile' do |s| s.change_make_var! "CC", ENV.cc end - system "make", "clean", "macosx-x86-#{arch}" + system "make", "clean", target end # Remove the README symlink and install the real file -- cgit v1.2.3