liquidctl 1.3.2 (new formula)
Closes #46442. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
da96bbde9a
commit
0b5803eb9d
1 changed files with 46 additions and 0 deletions
46
Formula/liquidctl.rb
Normal file
46
Formula/liquidctl.rb
Normal file
|
@ -0,0 +1,46 @@
|
|||
class Liquidctl < Formula
|
||||
include Language::Python::Virtualenv
|
||||
|
||||
desc "Cross-platform tool and drivers for liquid coolers and other devices"
|
||||
homepage "https://github.com/jonasmalacofilho/liquidctl"
|
||||
url "https://files.pythonhosted.org/packages/source/l/liquidctl/liquidctl-1.3.2.tar.gz"
|
||||
sha256 "bb742947c15f4a3987685641c0dd73184c4a40add5ad818ced68e5ace3631b6b"
|
||||
|
||||
head "https://github.com/jonasmalacofilho/liquidctl.git"
|
||||
|
||||
depends_on "libusb"
|
||||
depends_on "python"
|
||||
|
||||
resource "docopt" do
|
||||
url "https://files.pythonhosted.org/packages/source/d/docopt/docopt-0.6.2.tar.gz"
|
||||
sha256 "49b3a825280bd66b3aa83585ef59c4a8c82f2c8a522dbe754a8bc8d08c85c491"
|
||||
end
|
||||
|
||||
resource "hidapi" do
|
||||
url "https://files.pythonhosted.org/packages/source/h/hidapi/hidapi-0.7.99.post21.tar.gz"
|
||||
sha256 "e0be1aa6566979266a8fc845ab0e18613f4918cf2c977fe67050f5dc7e2a9a97"
|
||||
end
|
||||
|
||||
resource "pyusb" do
|
||||
url "https://files.pythonhosted.org/packages/source/p/pyusb/pyusb-1.0.2.tar.gz"
|
||||
sha256 "4e9b72cc4a4205ca64fbf1f3fff39a335512166c151ad103e55c8223ac147362"
|
||||
end
|
||||
|
||||
def install
|
||||
# customize liquidctl --version
|
||||
ENV["DIST_NAME"] = "homebrew"
|
||||
ENV["DIST_PACKAGE"] = "liquidctl #{version}"
|
||||
|
||||
virtualenv_install_with_resources
|
||||
|
||||
man_page = buildpath/"liquidctl.8"
|
||||
# setting the is_macos register to 1 adjusts the man page for macOS
|
||||
inreplace man_page, ".nr is_macos 0", ".nr is_macos 1"
|
||||
man.mkpath
|
||||
man8.install man_page
|
||||
end
|
||||
|
||||
test do
|
||||
shell_output "#{bin}/liquidctl list --verbose --debug"
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue