2012-01-15 19:10:32 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class FlexSdk < Formula
|
|
|
|
homepage 'http://opensource.adobe.com/wiki/display/flexsdk/Flex+SDK'
|
2012-08-14 16:31:29 +00:00
|
|
|
url 'http://fpdownload.adobe.com/pub/flex/sdk/builds/flex4.6/flex_sdk_4.6.0.23201_mpl.zip'
|
|
|
|
version '4.6.0.23201'
|
2012-01-15 19:10:32 +00:00
|
|
|
md5 'ff7b362fff908b620573405510541ce0'
|
|
|
|
|
|
|
|
def install
|
|
|
|
libexec.install Dir['*']
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
To use the SDK you will need to:
|
|
|
|
|
|
|
|
(a) add the bin folder to your $PATH:
|
|
|
|
#{libexec}/bin
|
|
|
|
|
|
|
|
(b) set $FLEX_HOME:
|
|
|
|
export FLEX_HOME=#{libexec}
|
|
|
|
|
|
|
|
(c) add the tasks jar to ANT:
|
|
|
|
mkdir -p ~/.ant/lib
|
|
|
|
ln -s #{libexec}/ant/lib/flexTasks.jar ~/.ant/lib
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|