aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Eager2011-03-21 22:02:44 -0400
committerAdam Vandenberg2011-03-21 22:47:40 -0700
commitb86cc4b37b4a53346c2b910d33cb39653fafc2ea (patch)
tree107e411e233b0ae1ef7c9131075cf65630f5ac3d
parent829f5cb65b80781fb4361f2fad6aabe4c77601f4 (diff)
downloadhomebrew-b86cc4b37b4a53346c2b910d33cb39653fafc2ea.tar.bz2
JSTalk 1.0.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/jstalk.rb48
1 files changed, 48 insertions, 0 deletions
diff --git a/Library/Formula/jstalk.rb b/Library/Formula/jstalk.rb
new file mode 100644
index 000000000..797b4206c
--- /dev/null
+++ b/Library/Formula/jstalk.rb
@@ -0,0 +1,48 @@
+require 'formula'
+
+class Jstalk < Formula
+ url 'git://github.com/ccgus/jstalk.git', :tag => "v1.0.1"
+ homepage 'http://jstalk.org/'
+ version '1.0.1'
+
+ def install
+ if MACOS_VERSION < 10.6
+ onoe "jstalk requires Mac OS X 10.6+"
+ exit 1
+ end
+
+ # JSTalk specifies its particular compiler needs in jstalk.xcodeproj
+ ENV.delete 'CC'
+ ENV.delete 'CXX'
+
+ args = ["-configuration", "Release", "ONLY_ACTIVE_ARCH=YES"]
+ targets = ["JSTalk Framework", "jstalk command line", "JSTalk Editor"]
+
+ targets.each do |target|
+ system "xcodebuild", "-target", target, *args
+ end
+
+ cd 'build/Release' do
+ bin.install 'jstalk'
+ prefix.install "JSTalk Editor.app"
+ (prefix+'Frameworks').install 'JSTalk.framework'
+ end
+ end
+
+ def caveats; <<-EOS.undent
+ Framework JSTalk was installed to:
+ #{prefix}/Frameworks/JSTalk.framework
+
+ You may want to symlink this Framework to a standard OS X location,
+ such as:
+ mkdir ~/Frameworks
+ ln -s "#{prefix}/Frameworks/JSTalk.framework" ~/Frameworks
+
+ JSTalk Editor.app was installed in:
+ #{prefix}
+
+ To symlink into ~/Applications, you can do:
+ brew linkapps
+ EOS
+ end
+end