2011-02-04 10:40:13 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class AdobeAirSdk < Formula
|
2011-08-16 05:15:53 +00:00
|
|
|
url 'http://airdownload.adobe.com/air/mac/download/2.7/AdobeAIRSDK.tbz2'
|
2011-02-04 10:40:13 +00:00
|
|
|
homepage 'http://www.adobe.com/products/air/sdk/'
|
2011-08-16 05:15:53 +00:00
|
|
|
md5 'f93c8a540a6db24509b4fbaddf2f1770'
|
|
|
|
version '2.7'
|
2011-02-04 10:40:13 +00:00
|
|
|
|
|
|
|
def startup_script name
|
|
|
|
<<-EOS.undent
|
|
|
|
#!/bin/bash
|
|
|
|
exec #{libexec}/bin/#{name} $@
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
libexec.install Dir['*']
|
|
|
|
|
|
|
|
bin.mkpath
|
|
|
|
%w[adl adt].each do |tool|
|
|
|
|
(bin+tool).write startup_script(tool)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|