lm4tools 0.1.3 (new formula)

Closes #25140.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Hannu Hartikainen 2018-03-12 11:00:38 +02:00 committed by FX Coudert
parent 31ba7be4a0
commit f5b0b8fbb6

18
Formula/lm4tools.rb Normal file
View file

@ -0,0 +1,18 @@
class Lm4tools < Formula
desc "Tools for TI Stellaris Launchpad boards"
homepage "https://github.com/utzig/lm4tools"
url "https://github.com/utzig/lm4tools/archive/v0.1.3.tar.gz"
sha256 "e8064ace3c424b429b7e0b50e58b467d8ed92962b6a6dfa7f6a39942416b1627"
depends_on "pkg-config" => :build
depends_on "libusb"
def install
system "make", "install", "PREFIX=#{prefix}"
end
test do
output = shell_output("echo data | #{bin}/lm4flash - 2>&1", 2)
assert_equal "Unable to find any ICDI devices\n", output
end
end