34 lines
1.0 KiB
Ruby
34 lines
1.0 KiB
Ruby
class Xdotool < Formula
|
|
desc "Fake keyboard/mouse input and window management for X"
|
|
homepage "http://www.semicomplete.com/projects/xdotool/"
|
|
url "https://github.com/jordansissel/xdotool/archive/v3.20160805.1.tar.gz"
|
|
sha256 "ddafca1239075c203769c17a5a184587731e56fbe0438c09d08f8af1704e117a"
|
|
|
|
bottle do
|
|
sha256 "13b1b017e94c76bde510b06427cf517c0d78028994e3b1bb8501ec2cbd5c7ef1" => :sierra
|
|
sha256 "037a599194a39189e8d8397c358dce21c1425065fdeeb29e59db26b696425f63" => :yosemite
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "libxkbcommon"
|
|
|
|
depends_on :x11
|
|
|
|
def install
|
|
system "make", "PREFIX=#{prefix}", "INSTALLMAN=#{man}", "install"
|
|
end
|
|
|
|
def caveats; <<-EOS.undent
|
|
You will probably want to enable XTEST in your X11 server now by running:
|
|
defaults write org.x.X11 enable_test_extensions -boolean true
|
|
|
|
For the source of this useful hint:
|
|
http://stackoverflow.com/questions/1264210/does-mac-x11-have-the-xtest-extension
|
|
EOS
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/xdotool", "--version"
|
|
end
|
|
end
|