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-06-24 07:46:29 +00:00
|
|
|
version "14.0"
|
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-06-24 07:46:29 +00:00
|
|
|
url "http://airdownload.adobe.com/air/mac/download/14.0/AIRSDK_Compiler.tbz2"
|
2014-07-12 08:28:46 +00:00
|
|
|
sha1 "0a51e590832e04cc74b6399265b788b4aa074f21"
|
2013-11-15 02:19:56 +00:00
|
|
|
else
|
2014-06-24 07:46:29 +00:00
|
|
|
url "http://airdownload.adobe.com/air/mac/download/14.0/AdobeAIRSDK.tbz2"
|
2014-07-12 08:28:46 +00:00
|
|
|
sha1 "512a88505c842377be18ec3dae87093eb4a7d69c"
|
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
|