Created
June 1, 2012 11:50
-
-
Save mojca/2851543 to your computer and use it in GitHub Desktop.
AquaTerm recipe for Homebrew
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:in
undent'/usr/local/Library/Formula/aquaterm.rb:33:in
caveats' /usr/local/Library/Homebrew/formula_installer.rb:144:in
caveats'/usr/local/Library/Homebrew/cmd/install.rb:79:in
install_formulae' /usr/local/Library/Homebrew/cmd/install.rb:75:in
each'/usr/local/Library/Homebrew/cmd/install.rb:75:in
install_formulae' /usr/local/Library/Homebrew/cmd/install.rb:23:in
install'/usr/local/bin/brew:83:in `send'
/usr/local/bin/brew:83