class Clipper < Formula desc "Share OS X clipboard with tmux and other local and remote apps" homepage "https://wincent.com/products/clipper" url "https://github.com/wincent/clipper/archive/0.2.tar.gz" sha256 "4c202238e37ed313d467d933c6fd815f095e7e7c225208b2b710f981d58df72a" 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 Label #{plist_name} RunAtLoad KeepAlive WorkingDirectory #{HOMEBREW_PREFIX} ProgramArguments #{opt_bin}/clipper --address 127.0.0.1 --port 8377 EnvironmentVariables LANG en_US.UTF-8 EOS end end