blob: 72d1b02adb4f7ffc5b2c659a7c42f26f93e9ac64 (
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
  | 
require 'formula'
class DBus <Formula
  url 'http://dbus.freedesktop.org/releases/dbus/dbus-1.4.0.tar.gz'
  homepage 'http://www.freedesktop.org/wiki/Software/dbus'
  md5 'f59618b18d2fb2bd1fce9e1c5a2a3282'
  # Don't clean the empty directories that D-Bus needs
  skip_clean "etc/dbus-1/session.d"
  skip_clean "etc/dbus-1/system.d"
  skip_clean "var/run/dbus"
  def install
    # Fix the TMPDIR to one D-Bus doesn't reject due to odd symbols
    ENV["TMPDIR"] = "/tmp"
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--disable-xml-docs",
                          "--disable-doxygen-docs",
	                        "--without-x"
    system "make install"
    # Generate D-Bus's UUID for this machine
    system "#{bin}/dbus-uuidgen", "--ensure=#{prefix}/var/lib/dbus/machine-id"
  end
end
  |