diff options
| author | Shane da Silva | 2013-10-11 09:01:23 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-10-11 09:01:23 +0100 |
| commit | 6e40529e235477ded51724f2ef6c09c1e21b704b (patch) | |
| tree | ecf51475fd316a70ec8ac12cffad19223ddae148 /Library | |
| parent | de95d0b8b8f96ffa3708f51ead59ea7d525af939 (diff) | |
| download | homebrew-6e40529e235477ded51724f2ef6c09c1e21b704b.tar.bz2 | |
clipper 0.1 (new formula)
Clipper is an OSX launch agent that exposes the local clipboard to
processes running both locally and remotely.
This makes it useful for tools like `tmux`, as you can integrate `tmux`
with Clipper for seamless copy/pasting between a remote `tmux` instance
and your local clipboard.
More information and documentation can be found at:
https://github.com/wincent/clipper
Closes #23039.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/clipper.rb | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/Library/Formula/clipper.rb b/Library/Formula/clipper.rb new file mode 100644 index 000000000..1f1512428 --- /dev/null +++ b/Library/Formula/clipper.rb @@ -0,0 +1,43 @@ +require 'formula' + +class Clipper < Formula + homepage 'https://wincent.com/products/clipper' + url 'https://github.com/wincent/clipper/archive/0.1.zip' + sha1 'c0659968bf4ed4c6ac2e01c6608f55d5e22f96c3' + + depends_on 'go' => :build + + def install + ENV['GOPATH'] = buildpath + system 'go', 'build', 'clipper.go' + bin.install 'clipper' + end + + plist_options :manual => 'clipper' + + def plist; <<-EOS.undent + <?xml version="1.0" encoding="UTF-8"?> + <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> + <plist version="1.0"> + <dict> + <key>Label</key> + <string>#{plist_name}</string> + <key>RunAtLoad</key> + <true/> + <key>KeepAlive</key> + <true/> + <key>WorkingDirectory</key> + <string>#{HOMEBREW_PREFIX}</string> + <key>ProgramArguments</key> + <array> + <string>#{opt_prefix}/bin/clipper</string> + <string>--address</string> + <string>127.0.0.1</string> + <string>--port</string> + <string>8377</string> + </array> + </dict> + </plist> + EOS + end +end |
