From fbbc96eff49ba5e7a8aae4831b3fea6440f7acf8 Mon Sep 17 00:00:00 2001 From: nibbles 2bits Date: Sat, 12 May 2012 02:41:19 -0700 Subject: appswitch 1.1.1 Upgrade appswitch to version 1.1.1 which has changes for Lion. This software has only one 22k source file, but it now needs a full XCode and xcodebuild to compile it. Luckily the developer includes a precompiled binary in the source tarball. So this commit just installs that, allowing CLT only users to run it. Fixes #12198. Closes #12212. Signed-off-by: Jack Nagel --- Library/Formula/appswitch.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/appswitch.rb b/Library/Formula/appswitch.rb index 96e1215f9..07b4ddb1f 100644 --- a/Library/Formula/appswitch.rb +++ b/Library/Formula/appswitch.rb @@ -1,12 +1,14 @@ require 'formula' class Appswitch < Formula - url 'http://web.sabi.net/nriley/software/appswitch-1.1.tar.gz' homepage 'http://web.sabi.net/nriley/software/' - md5 '07cf9884a07939da487898cddba0c296' + url 'http://web.sabi.net/nriley/software/appswitch-1.1.1.tar.gz' + sha1 'df5535adadfcf219c60d28397b99627ae7be3148' def install - system "#{ENV.cc} -o appswitch #{ENV.cflags} main.c -framework ApplicationServices" + # Because the tarball always comes with a precompiled binary and because + # compiling this now would require using xcodebuild from a full XCode + # install, let's just use the binary so that we can support CLT only. man1.install gzip('appswitch.1') bin.install 'appswitch' end -- cgit v1.2.3