From d62ead971137f16753176dec7f791e9b540b80c0 Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Sun, 23 Nov 2014 03:05:07 +0000 Subject: pulse 0.1.1 (new formula) New formula for Pulse. Closes #34393. Signed-off-by: Mike McQuaid --- Library/Formula/pulse.rb | 55 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Library/Formula/pulse.rb (limited to 'Library') diff --git a/Library/Formula/pulse.rb b/Library/Formula/pulse.rb new file mode 100644 index 000000000..8be9e0b10 --- /dev/null +++ b/Library/Formula/pulse.rb @@ -0,0 +1,55 @@ +require "formula" + +class Pulse < Formula + homepage "https://ind.ie/pulse/" + url "https://source.ind.ie/project/pulse.git", :tag => "0.1.1" + head "https://source.ind.ie/project/pulse.git" + + depends_on "go" => :build + depends_on :hg => :build + + def install + ENV["GOPATH"] = cached_download/".gopath" + ENV.append_path "PATH", "#{ENV["GOPATH"]}/bin" + + hack_dir = cached_download/".gopath/src/source.ind.ie/project/" + rm_rf hack_dir + mkdir_p hack_dir + ln_s cached_download, "#{hack_dir}/pulse" + ln_s cached_download/".git", ".git" + + system "./build.sh", "noupgrade" + prefix.install %w{ CONTRIBUTING.md CONTRIBUTORS LICENSE README.md } + bin.install "pulse" + end + + def plist; <<-EOS.undent + + + + + EnvironmentVariables + + STNORESTART + yes + + KeepAlive + + Label + #{plist_name} + ProgramArguments + + #{opt_bin}/pulse + -no-browser + + RunAtLoad + + + + EOS + end + + test do + system "#{bin}/pulse", "-generate", "./" + end +end -- cgit v1.2.3