blob: 40210d75cdb16573a3d0a1654d89d05d70bad022 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
 | require 'formula'
class Mpdscribble < Formula
  homepage 'http://mpd.wikia.com/wiki/Client:Mpdscribble'
  url 'http://www.musicpd.org/download/mpdscribble/0.22/mpdscribble-0.22.tar.gz'
  sha1 '3b4a1a71130deea1720bbfeb104fdcae298f52de'
  bottle do
    sha1 "975024cac5d4bc41221f7f9a6fcd889a487e658d" => :mavericks
    sha1 "bc541d05e57c74932ae0151d2271fd51bcb022fe" => :mountain_lion
    sha1 "3d45208c83304423bdca07e5c26d7d37d2271170" => :lion
  end
  depends_on 'pkg-config' => :build
  depends_on 'glib'
  depends_on 'libmpdclient'
  def install
    system "./configure", "--prefix=#{prefix}", "--sysconfdir=#{etc}"
    system "make install"
  end
  def caveats; <<-EOS.undent
    The configuration file was placed in #{etc}/mpdscribble.conf
    EOS
  end
  plist_options :manual => "mpdscribble"
  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>WorkingDirectory</key>
        <string>#{HOMEBREW_PREFIX}</string>
        <key>ProgramArguments</key>
        <array>
            <string>#{opt_bin}/mpdscribble</string>
            <string>--no-daemon</string>
        </array>
        <key>RunAtLoad</key>
        <true/>
        <key>KeepAlive</key>
        <true/>
    </dict>
    </plist>
    EOS
  end
end
 |