44 lines
1.2 KiB
Ruby
44 lines
1.2 KiB
Ruby
class Gkrellm < Formula
|
|
desc "Extensible GTK system monitoring application"
|
|
homepage "https://billw2.github.io/gkrellm/gkrellm.html"
|
|
url "http://gkrellm.srcbox.net/releases/gkrellm-2.3.11.tar.bz2"
|
|
sha256 "1ee0643ed9ed99f88c1504c89d9ccb20780cf29319c904b68e80a8e7c8678c06"
|
|
revision 1
|
|
|
|
bottle do
|
|
sha256 "3b86db152211ed9f214f5dad4253e48d98374dbe6bfa1f83eb6d64da1088185b" => :mojave
|
|
sha256 "9dedbb84cb896a7b2210068d7930a83351388b45ca07443e628f58753f51fb7a" => :high_sierra
|
|
sha256 "ebfc3b5e027f4c577d2b5383a0930c91656e7fa108fc35f6a21800b87ef9220c" => :sierra
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "atk"
|
|
depends_on "cairo"
|
|
depends_on "fontconfig"
|
|
depends_on "freetype"
|
|
depends_on "gdk-pixbuf"
|
|
depends_on "gettext"
|
|
depends_on "glib"
|
|
depends_on "gtk+"
|
|
depends_on "openssl@1.1"
|
|
depends_on "pango"
|
|
|
|
def install
|
|
system "make", "INSTALLROOT=#{prefix}", "macosx"
|
|
system "make", "INSTALLROOT=#{prefix}", "install"
|
|
end
|
|
|
|
test do
|
|
pid = fork do
|
|
exec "#{bin}/gkrellmd --pidfile #{testpath}/test.pid"
|
|
end
|
|
sleep 2
|
|
|
|
begin
|
|
assert_predicate testpath/"test.pid", :exist?
|
|
ensure
|
|
Process.kill "SIGINT", pid
|
|
Process.wait pid
|
|
end
|
|
end
|
|
end
|