37 lines
1.5 KiB
Ruby
37 lines
1.5 KiB
Ruby
class Lcdproc < Formula
|
|
desc "Display real-time system information on a LCD"
|
|
homepage "http://www.lcdproc.org/"
|
|
url "https://github.com/lcdproc/lcdproc/releases/download/v0.5.9/lcdproc-0.5.9.tar.gz"
|
|
sha256 "d48a915496c96ff775b377d2222de3150ae5172bfb84a6ec9f9ceab962f97b83"
|
|
license "GPL-2.0"
|
|
|
|
bottle do
|
|
sha256 big_sur: "6ae05c9a6476f0c469cd9e434f486cc7900745a70605df3b70827738fcd83538"
|
|
sha256 catalina: "73cd6420af4af10ee768e8aa5e9fd17621d9216d55a3cb9d3b96a94955166a16"
|
|
sha256 mojave: "1a875cd265136e02f28f31cd9138c8814deaf793704792be5f2cccf5aa6736fb"
|
|
sha256 high_sierra: "59439a9e18e3e8e636a60e1710cd10f8a4bad8632d08782fc4442a2427fe1ddb"
|
|
sha256 sierra: "2371b10dc3bd2644ac83ced35dcde1960110217385f9f5547917ebbbb823e332"
|
|
sha256 el_capitan: "1de4bece6e781dc6d88d000039095cbf6edbd10313163ef9644152d67778171c"
|
|
sha256 yosemite: "2ac794ede644c1c86b321af648eb2b0197762cb7e5eb09cd0a31e8eed842e2f9"
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "libftdi0"
|
|
depends_on "libhid"
|
|
depends_on "libusb"
|
|
|
|
def install
|
|
system "./configure", "--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--disable-silent-rules",
|
|
"--prefix=#{prefix}",
|
|
"--enable-drivers=all",
|
|
"--enable-libftdi=yes"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
assert_match version.to_s, shell_output("#{bin}/lcdproc -v 2>&1")
|
|
end
|
|
end
|