From f5b0b8fbb66d725233ab13bfc0eaf8a86f786e8e Mon Sep 17 00:00:00 2001 From: Hannu Hartikainen Date: Mon, 12 Mar 2018 11:00:38 +0200 Subject: [PATCH] lm4tools 0.1.3 (new formula) Closes #25140. Signed-off-by: FX Coudert --- Formula/lm4tools.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Formula/lm4tools.rb diff --git a/Formula/lm4tools.rb b/Formula/lm4tools.rb new file mode 100644 index 0000000000..e261e6cb6f --- /dev/null +++ b/Formula/lm4tools.rb @@ -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