2014-05-13 16:53:06 +00:00
|
|
|
require "formula"
|
2011-02-04 10:40:13 +00:00
|
|
|
|
2014-05-13 16:53:06 +00:00
|
|
|
# Find downloads at:
|
|
|
|
# https://helpx.adobe.com/air/kb/archived-air-sdk-version.html
|
2011-03-10 05:11:03 +00:00
|
|
|
class AdobeAirSdk < Formula
|
2014-05-13 16:53:06 +00:00
|
|
|
homepage "http://adobe.com/products/air/sdk"
|
2014-11-12 09:24:44 +00:00
|
|
|
version "15.0.0.356"
|
2013-11-15 02:19:56 +00:00
|
|
|
|
2014-05-13 16:53:06 +00:00
|
|
|
option "with-flex-support", "Do not download the new compiler with the SDK."
|
2013-11-15 02:19:56 +00:00
|
|
|
|
2014-05-13 16:53:06 +00:00
|
|
|
if build.without? "flex-support"
|
2014-09-10 18:46:50 +00:00
|
|
|
url "http://airdownload.adobe.com/air/mac/download/15.0/AIRSDK_Compiler.tbz2"
|
2014-11-12 09:24:44 +00:00
|
|
|
sha1 "3e80a9daa5e029f4b9a79ded3faa517a649e90b4"
|
2013-11-15 02:19:56 +00:00
|
|
|
else
|
2014-09-10 18:46:50 +00:00
|
|
|
url "http://airdownload.adobe.com/air/mac/download/15.0/AdobeAIRSDK.tbz2"
|
2014-11-12 09:24:44 +00:00
|
|
|
sha1 "47af192cebce5c08fcdde6bcc14aed5941a9ca85"
|
2013-11-15 02:19:56 +00:00
|
|
|
end
|
2011-02-04 10:40:13 +00:00
|
|
|
|
|
|
|
def install
|
2013-11-15 02:19:56 +00:00
|
|
|
rm_f Dir["bin/*.bat"]
|
2014-05-13 16:53:06 +00:00
|
|
|
libexec.install Dir["*"]
|
2013-11-15 02:19:56 +00:00
|
|
|
bin.write_exec_script Dir["#{libexec}/bin/*"]
|
2011-02-04 10:40:13 +00:00
|
|
|
end
|
2014-05-21 21:20:06 +00:00
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
To set AIR_HOME:
|
|
|
|
export AIR_HOME=#{libexec}
|
|
|
|
EOS
|
|
|
|
end
|
2011-02-04 10:40:13 +00:00
|
|
|
end
|