Skip to content

Commit

Permalink
Fix xcodebuild based formulae
Browse files Browse the repository at this point in the history
Add SYMROOT for xcodebuild in case the Xcode defaults
PBXApplicationwideBuildSettings specify a custom build location

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information
afh authored and adamv committed Mar 5, 2011
1 parent 64a844f commit da9151e
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Library/Formula/abfind.rb
Expand Up @@ -6,7 +6,7 @@ class Abfind <Formula
homepage 'http://iharder.sourceforge.net/current/macosx/abfind/'

def install
system "xcodebuild"
system "xcodebuild SYMROOT=build"
bin.install "build/Release/abfind"
end
end
2 changes: 1 addition & 1 deletion Library/Formula/aqua-less.rb
Expand Up @@ -12,7 +12,7 @@ def patches
end

def install
system "xcodebuild", "-sdk", "macosx10.5"
system "xcodebuild", "-sdk", "macosx10.5", "SYMROOT=build"

bin.install "build/Release/aless"
prefix.install "build/Release/AquaLess.app"
Expand Down
2 changes: 1 addition & 1 deletion Library/Formula/chmox.rb
Expand Up @@ -5,7 +5,7 @@ class Chmox <Formula
homepage 'http://chmox.sourceforge.net'

def install
system "xcodebuild"
system "xcodebuild SYMROOT=build"
prefix.install "build/Default/Chmox.app"
end

Expand Down
2 changes: 1 addition & 1 deletion Library/Formula/imagesnap.rb
Expand Up @@ -6,7 +6,7 @@ class Imagesnap <Formula
md5 'eddd65d04782cc7538c009cf8a6f7568'

def install
system "xcodebuild -project ImageSnap.xcodeproj"
system "xcodebuild -project ImageSnap.xcodeproj SYMROOT=build"
bin.install "build/Release/imagesnap"
end
end
2 changes: 1 addition & 1 deletion Library/Formula/mailtomutt.rb
Expand Up @@ -6,7 +6,7 @@ class Mailtomutt <Formula
md5 'ce108e8574df129425d8156ff8b830bf'

def install
system "xcodebuild"
system "xcodebuild SYMROOT=build"
prefix.install "build/Default/MailtoMutt.app"
end

Expand Down
2 changes: 1 addition & 1 deletion Library/Formula/otx.rb
Expand Up @@ -5,7 +5,7 @@ class Otx <Formula
homepage 'http://otx.osxninja.com/'

def install
system 'xcodebuild'
system 'xcodebuild SYMROOT=build'
build = Pathname.getwd + 'build/Release'
bin.install build+"otx"
prefix.install build+"otx.app"
Expand Down
4 changes: 2 additions & 2 deletions Library/Formula/platypus.rb
Expand Up @@ -13,10 +13,10 @@ def install
end

# Build main command-line binary, we don't care about the App
system "xcodebuild", "-target", "platypus", "-configuration", "Deployment", "ONLY_ACTIVE_ARCH=YES", "SDKROOT=", "MACOSX_DEPLOYMENT_TARGET="
system "xcodebuild", "-target", "platypus", "-configuration", "Deployment", "ONLY_ACTIVE_ARCH=YES", "SYMROOT=build", "SDKROOT=", "MACOSX_DEPLOYMENT_TARGET="

# Build application sub-binary needed by command-line utility
system "xcodebuild", "-target", "ScriptExec", "-configuration", "Deployment", "ONLY_ACTIVE_ARCH=YES", "SDKROOT=", "MACOSX_DEPLOYMENT_TARGET="
system "xcodebuild", "-target", "ScriptExec", "-configuration", "Deployment", "ONLY_ACTIVE_ARCH=YES", "SYMROOT=build", "SDKROOT=", "MACOSX_DEPLOYMENT_TARGET="

# Install binary and man page
bin.install "build/Deployment/platypus"
Expand Down
2 changes: 1 addition & 1 deletion Library/Formula/skim.rb
Expand Up @@ -5,7 +5,7 @@ class Skim <Formula
homepage 'http://skim-app.sourceforge.net/'

def install
system "xcodebuild"
system "xcodebuild SYMROOT=build"
prefix.install "build/Release/Skim.app"
end

Expand Down
2 changes: 1 addition & 1 deletion Library/Formula/sleepnow.rb
Expand Up @@ -12,7 +12,7 @@ def install
inreplace "SleepNow.xcodeproj/project.pbxproj", /SDKROOT.*$/, ''

# Build binary
system "xcodebuild", "-target", "SleepNow", "-configuration", "Release", "ONLY_ACTIVE_ARCH=YES"
system "xcodebuild", "-target", "SleepNow", "-configuration", "Release", "ONLY_ACTIVE_ARCH=YES", "SYMROOT=build"

# Install binary and rename to lowercase
bin.install 'build/Release/SleepNow' => 'sleepnow'
Expand Down
2 changes: 1 addition & 1 deletion Library/Formula/sublercli.rb
Expand Up @@ -7,7 +7,7 @@ class Sublercli <Formula
def install
ENV.llvm
cd "SublerCLI" do
system "xcodebuild -configuration Release ARCHS='-arch i386 -arch x86_64'"
system "xcodebuild -configuration Release ARCHS='-arch i386 -arch x86_64' SYMROOT=build"
bin.install "build/Release/SublerCLI"
end
end
Expand Down

0 comments on commit da9151e

Please sign in to comment.