diff options
| author | Bas Spaans | 2013-08-04 11:42:56 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2013-10-27 08:48:37 -0700 |
| commit | 7e665e0f692e697d030c3154a00fbe9df1c3db3f (patch) | |
| tree | 35f5f597adf7a6e79e59c7e5e5b4aa4c08e1a800 /Library | |
| parent | ecfdfc91b267b9d82ab506caae8057a3f70338d9 (diff) | |
| download | homebrew-7e665e0f692e697d030c3154a00fbe9df1c3db3f.tar.bz2 | |
Headphones 0.1.2
Closes #21650.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/headphones.rb | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/Library/Formula/headphones.rb b/Library/Formula/headphones.rb new file mode 100644 index 000000000..77dc670a9 --- /dev/null +++ b/Library/Formula/headphones.rb @@ -0,0 +1,48 @@ +require 'formula' + +class Headphones < Formula + homepage 'https://github.com/rembo10/headphones' + head 'https://github.com/rembo10/headphones.git' + url 'https://github.com/rembo10/headphones/archive/v0.1.2.zip' + sha1 'd02b4ba4b513e318abf08d72c5b8b9ed4e35de3a' + + depends_on 'Cheetah' => :python + + def startup_script; <<-EOS.undent + #!/bin/bash + python "#{libexec}/Headphones.py" --datadir="#{etc}/headphones" "$@" + EOS + end + + def install + libexec.install Dir['*'] + (bin+"headphones").write(startup_script) + end + + plist_options :manual => 'headphones' + + def plist; <<-EOS.undent + <?xml version="1.0" encoding="UTF-8"?> + <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/$ + <plist version="1.0"> + <dict> + <key>Label</key> + <string>#{plist_name}</string> + <key>ProgramArguments</key> + <array> + <string>#{opt_prefix}/bin/headphones</string> + <string>-q</string> + <string>-d</string> + <string>--nolaunch</string> + </array> + <key>RunAtLoad</key> + <true/> + </dict> + </plist> + EOS + end + + def caveats + "Headphones defaults to port 8181." + end +end |
