2014-04-27 20:50:06 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class TeensyLoaderCli < Formula
|
|
|
|
homepage "https://www.pjrc.com/teensy/loader_cli.html"
|
|
|
|
url "https://www.pjrc.com/teensy/teensy_loader_cli.2.1.zip"
|
|
|
|
sha1 "041459720e733f78ba4e6a14abdbaa8bf04eb007"
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV['OS'] = 'MACOSX'
|
2014-05-20 14:38:08 +00:00
|
|
|
ENV['SDK'] = MacOS.sdk_path || "/"
|
2014-04-27 20:50:06 +00:00
|
|
|
system "make"
|
|
|
|
bin.install "teensy_loader_cli"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
assert `#{bin}/teensy_loader_cli 2>&1`.include?('<MCU> = atmega32u4 | at90usb162 | at90usb646 | at90usb1286')
|
|
|
|
end
|
|
|
|
end
|