38 lines
1.0 KiB
Ruby
38 lines
1.0 KiB
Ruby
class Ddcutil < Formula
|
|
desc "Control monitor settings using DDC/CI and USB"
|
|
homepage "https://www.ddcutil.com"
|
|
url "https://www.ddcutil.com/tarballs/ddcutil-1.4.1.tar.gz"
|
|
sha256 "9803e7da37f6034c22b330de77a1ca70aaead754dd07916b8fcae76221f6b8f9"
|
|
license "GPL-2.0-or-later"
|
|
|
|
livecheck do
|
|
url "https://www.ddcutil.com/releases/"
|
|
regex(/href=.*?ddcutil[._-]v?(\d+(?:\.\d+)+)\.t/i)
|
|
end
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "52583dfb866c178c7b47ff0d804df360adbd18b85f6ae76ca0a80d9a7372e18d"
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "glib"
|
|
depends_on "i2c-tools"
|
|
depends_on "kmod"
|
|
depends_on "libdrm"
|
|
depends_on "libusb"
|
|
depends_on "libxrandr"
|
|
depends_on :linux
|
|
depends_on "systemd"
|
|
|
|
def install
|
|
system "./configure", *std_configure_args, "--disable-silent-rules"
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
assert_match "The following tests probe the runtime environment using \
|
|
multiple overlapping methods.", shell_output("#{bin}/ddcutil environment")
|
|
end
|
|
end
|