2014-06-19 03:26:08 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class Blink1 < Formula
|
|
|
|
homepage "http://thingm.com/products/blink-1.html"
|
2014-07-20 17:53:25 +00:00
|
|
|
url "https://github.com/todbot/blink1/archive/v1.91.tar.gz"
|
|
|
|
sha1 "255a00e457e7559685060b2aa09b96c5589c2b9d"
|
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-07-21 02:27:35 +00:00
|
|
|
sha1 "3d9ad539d1e56cc22f17cdba283408674f885a4a" => :mavericks
|
|
|
|
sha1 "f8bb65ba7c626220a961f715c053825e8e6a808b" => :mountain_lion
|
|
|
|
sha1 "4b2d7582e802686b6208fd5b1f00f8bd11d21e99" => :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
|