2011-02-04 10:40:13 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class AdobeAirSdk < Formula
|
2011-02-04 10:40:13 +00:00
|
|
|
homepage 'http://www.adobe.com/products/air/sdk/'
|
2012-02-11 19:58:03 +00:00
|
|
|
url 'http://airdownload.adobe.com/air/mac/download/3.1/AdobeAIRSDK.tbz2'
|
2012-02-01 01:10:10 +00:00
|
|
|
md5 'f2137a34888ce71574da87e0cc3b7b06'
|
2012-01-09 23:30:37 +00:00
|
|
|
version '3.1'
|
2011-02-04 10:40:13 +00:00
|
|
|
|
|
|
|
def startup_script name
|
2012-02-11 19:58:03 +00:00
|
|
|
(bin+name).write <<-EOS.undent
|
2011-02-04 10:40:13 +00:00
|
|
|
#!/bin/bash
|
2012-02-11 19:58:03 +00:00
|
|
|
exec "#{libexec}/bin/#{name}" "$@"
|
2011-02-04 10:40:13 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
libexec.install Dir['*']
|
2012-02-11 19:58:03 +00:00
|
|
|
startup_script("adl")
|
|
|
|
startup_script("adt")
|
2011-02-04 10:40:13 +00:00
|
|
|
end
|
|
|
|
end
|