2013-10-11 08:01:23 +00:00
|
|
|
class Clipper < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Share OS X clipboard with tmux and other local and remote apps"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "https://wincent.com/products/clipper"
|
|
|
|
url "https://github.com/wincent/clipper/archive/0.2.tar.gz"
|
|
|
|
sha256 "4c202238e37ed313d467d933c6fd815f095e7e7c225208b2b710f981d58df72a"
|
2013-10-11 08:01:23 +00:00
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
depends_on "go" => :build
|
2013-10-11 08:01:23 +00:00
|
|
|
|
|
|
|
def install
|
2015-08-03 12:55:31 +00:00
|
|
|
ENV["GOPATH"] = buildpath
|
|
|
|
system "go", "build", "clipper.go"
|
|
|
|
bin.install "clipper"
|
2013-10-11 08:01:23 +00:00
|
|
|
end
|
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
plist_options :manual => "clipper"
|
2013-10-11 08:01:23 +00:00
|
|
|
|
|
|
|
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>
|
2014-03-06 05:28:31 +00:00
|
|
|
<string>#{opt_bin}/clipper</string>
|
2013-10-11 08:01:23 +00:00
|
|
|
<string>--address</string>
|
|
|
|
<string>127.0.0.1</string>
|
|
|
|
<string>--port</string>
|
|
|
|
<string>8377</string>
|
|
|
|
</array>
|
2013-11-03 03:33:29 +00:00
|
|
|
<key>EnvironmentVariables</key>
|
|
|
|
<dict>
|
|
|
|
<key>LANG</key>
|
|
|
|
<string>en_US.UTF-8</string>
|
|
|
|
</dict>
|
2013-10-11 08:01:23 +00:00
|
|
|
</dict>
|
|
|
|
</plist>
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|