xdotool: import from homebrew/x11.
This commit is contained in:
parent
fa1f2c21f2
commit
a6b69db465
1 changed files with 28 additions and 0 deletions
28
Formula/xdotool.rb
Normal file
28
Formula/xdotool.rb
Normal file
|
@ -0,0 +1,28 @@
|
|||
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"
|
||||
|
||||
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
|
Loading…
Reference in a new issue