Skip to content

Instantly share code, notes, and snippets.

@mojca
Created June 1, 2012 11:50
Show Gist options
  • Save mojca/2851543 to your computer and use it in GitHub Desktop.
Save mojca/2851543 to your computer and use it in GitHub Desktop.
AquaTerm recipe for Homebrew
require 'formula'
class Aquaterm < Formula
homepage 'https://github.com/AquaTerm/AquaTerm'
url 'https://github.com/AquaTerm/AquaTerm/tarball/tempv1.1.1a'
md5 'a91bd7c6fc188fb33d2f1684eed600fd'
version '1.1.1'
head 'https://github.com/AquaTerm/AquaTerm.git', :using => :git
def install
apppath = prefix + "Applications"
frameworkpath = prefix + "Library/Frameworks"
sharepath = share + "aquaterm"
Dir.chdir('aquaterm') do
# one can add
# ARCHS="i386 x86_64" to environment to build universally
system "xcodebuild", "-target", "AquaTerm", "-configuration", "Default", "LOCAL_FRAMEWORKS_DIR=#{frameworkpath}", "LOCAL_APPS_DIR=#{apppath}"
apppath.install 'build/Default/AquaTerm.app'
frameworkpath.install 'build/Default/AquaTerm.framework'
end
sharepath.install 'adapters'
end
def caveats
# the same for AquaTerm.app?
framework = prefix + "Library/Frameworks/AquaTerm.framework"
if self.installed? and File.exists? framework
return <<-EOS.undent
AquaTerm.framework was installed to:
#{framework}
You may want to symlink this Framework to a standard OS X location,
such as:
ln -s "#{framework}" /Library/Frameworks
EOS
end
return nil
end
end
@ns-1m
Copy link

ns-1m commented Aug 15, 2012

I tried to use your formula in Mountain Lion.

I got this problem (below).

How you fix this?

Thanks.

Nolis-MacBook-Pro:gnuplot-4.6.0 nsicad$ brew install aquaterm
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
==> Downloading https://github.com/AquaTerm/AquaTerm/tarball/tempv1.1.1a

################################################################## 100.0%

==> xcodebuild -target AquaTerm -configuration Default LOCAL_FRAMEWORKS_DIR=/usr/local/Cellar/aquaterm/1.1.1/Library/Frameworks LOCAL_A
Error: undefined method length' for nil:NilClass Please report this bug: https://github.com/mxcl/homebrew/wiki/bug-fixing-checklist /usr/local/Library/Homebrew/extend/string.rb:3:inundent'
/usr/local/Library/Formula/aquaterm.rb:33:in caveats' /usr/local/Library/Homebrew/formula_installer.rb:144:incaveats'
/usr/local/Library/Homebrew/cmd/install.rb:79:in install_formulae' /usr/local/Library/Homebrew/cmd/install.rb:75:ineach'
/usr/local/Library/Homebrew/cmd/install.rb:75:in install_formulae' /usr/local/Library/Homebrew/cmd/install.rb:23:ininstall'
/usr/local/bin/brew:83:in `send'
/usr/local/bin/brew:83

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment