35 lines
1.9 KiB
Ruby
35 lines
1.9 KiB
Ruby
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"
|
|
license "GPL-2.0"
|
|
|
|
bottle do
|
|
sha256 cellar: :any, arm64_monterey: "ebc1bb78c1f8f5db4ecefbebed152042612d512d92e3339836410bfcbe3888a4"
|
|
sha256 cellar: :any, arm64_big_sur: "62a47721a948ccb49f1429fd8649daf1e894e90dacbd45566564b8cbac749a9c"
|
|
sha256 cellar: :any, monterey: "1bef37edda64611296ac2ba9df91d92d082dd2da0cac5673ef8735d0704330a8"
|
|
sha256 cellar: :any, big_sur: "2fca09b10fef4d8304ba4acdce164bbfc5f4fa9b8dd1eb6fcb60b8a58c7ac8d3"
|
|
sha256 cellar: :any, catalina: "5d2e503a9c94226f9d3c6d1da1a54424be1c9a16279bcc94253ab0e2da2a3718"
|
|
sha256 cellar: :any, mojave: "a0bb88705b97875de770b1979b5480521007b25efd627f092e178941b8ecd4ec"
|
|
sha256 cellar: :any, high_sierra: "9c65eb6694f74b513b707c237cf13bb6a54b9e4a188582355f78e94f9ac53407"
|
|
sha256 cellar: :any, sierra: "3238455d6329e9749700b9c12c2e7459b63ea400fb0e7e6818b8c7c9b77b4e6d"
|
|
sha256 cellar: :any, el_capitan: "7c6bd7ec1a220de95089d71f79baa61ce459ffa0d00d32af727435594ac7603a"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "5afa96bcdab63596529b9202a6c985a4a1cd634235b2a3ab099805046384e405"
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "libusb"
|
|
|
|
def install
|
|
# Fix a hardcoded `/usr/local` reference that breaks the ARM build
|
|
inreplace "lmicdiusb/Makefile", "/usr/local", HOMEBREW_PREFIX
|
|
system "make", "install", "PREFIX=#{prefix}"
|
|
end
|
|
|
|
test do
|
|
output = pipe_output("#{bin}/lm4flash - 2>&1", "data", 2)
|
|
assert_equal "Unable to find any ICDI devices\n", output
|
|
end
|
|
end
|