homebrew-core/Formula/i3status.rb

33 lines
1,010 B
Ruby
Raw Normal View History

2017-01-25 10:24:17 +00:00
class I3status < Formula
desc "Status bar for i3"
homepage "https://i3wm.org/i3status"
url "https://i3wm.org/i3status/i3status-2.11.tar.bz2"
sha256 "98db7e730f0ce908eb656ac10d713ae6a885676621391d54f00b719752f18c5f"
2017-01-25 10:24:17 +00:00
head "https://github.com/i3/i3status.git"
2017-01-27 02:33:30 +00:00
bottle do
cellar :any
2017-03-07 22:59:59 +00:00
sha256 "f9669cc65b7e4812786ff2f62e11921736898d1fe61dd15b52e0f475ef8d3375" => :sierra
sha256 "cc0b748443c7977bd647b2a612ea3a94d47feafc3b7f63bb1c67804d44b8c196" => :el_capitan
sha256 "af64dc8d801c8938e5f1d120f37c5086f9259ad0eeee83937d3cfdf426f801cf" => :yosemite
2017-01-27 02:33:30 +00:00
end
2017-01-25 10:24:17 +00:00
depends_on :x11
depends_on "yajl"
depends_on "confuse"
depends_on "pulseaudio"
depends_on "asciidoc" => :build
depends_on "i3"
def install
system "make", "A2X_FLAGS=--no-xmllint"
system "make", "install", "PREFIX=#{prefix}"
end
test do
result = shell_output("#{bin}/i3status -v")
result.force_encoding("UTF-8") if result.respond_to?(:force_encoding)
assert_match version.to_s, result
end
end