require 'formula' class FlexSdk < Formula url 'http://fpdownload.adobe.com/pub/flex/sdk/builds/flex4.5/flex_sdk_4.5.1.21328_mpl.zip' homepage 'http://opensource.adobe.com/' version 'v4.5.1.21328' def install Dir.glob('bin/*').each { |file| bin.install file unless file.match /\.bat$|\.exe$/ } Dir.glob('lib/*').each { |file| lib.install file } end end