2014-06-19 03:26:08 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class Blink1 < Formula
|
|
|
|
homepage "http://thingm.com/products/blink-1.html"
|
2014-09-23 02:03:07 +00:00
|
|
|
url "https://github.com/todbot/blink1/archive/v1.93.tar.gz"
|
|
|
|
sha1 "7fee3042474bf04e58c980487fc6c0500cad29b1"
|
2014-06-30 23:44:35 +00:00
|
|
|
head "https://github.com/todbot/blink1.git"
|
2014-06-19 03:26:08 +00:00
|
|
|
|
2014-06-20 18:45:56 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-09-23 02:26:23 +00:00
|
|
|
sha1 "bc123f11ef3587b3afdf98f656b31283f6bde119" => :mavericks
|
|
|
|
sha1 "612bd29c27860748c99ebeb71bc592ebc35117d4" => :mountain_lion
|
|
|
|
sha1 "80d5675499d01370f54346a4d2b6324ecbe0ca8b" => :lion
|
2014-06-20 18:45:56 +00:00
|
|
|
end
|
|
|
|
|
2014-06-19 03:26:08 +00:00
|
|
|
def install
|
|
|
|
cd "commandline" do
|
|
|
|
system "make"
|
|
|
|
bin.install "blink1-tool"
|
|
|
|
lib.install "libBlink1.dylib"
|
|
|
|
include.install "blink1-lib.h"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/blink1-tool", "--version"
|
|
|
|
end
|
|
|
|
end
|