2011-03-10 05:11:03 +00:00
|
|
|
class DBus < Formula
|
2014-11-27 01:52:11 +00:00
|
|
|
# releases: even (1.8.x) = stable, odd (1.9.x) = development
|
2014-07-24 23:09:24 +00:00
|
|
|
homepage "http://www.freedesktop.org/wiki/Software/dbus"
|
2015-02-07 06:37:52 +00:00
|
|
|
url "http://dbus.freedesktop.org/releases/dbus/dbus-1.8.14.tar.gz"
|
|
|
|
sha1 "d0b84d6d7af47b8cad7f55befee8e9001daefe01"
|
2011-12-16 06:26:01 +00:00
|
|
|
|
2014-03-28 17:23:58 +00:00
|
|
|
bottle do
|
2015-02-07 06:56:25 +00:00
|
|
|
sha1 "22806b6107833bea3b69099848c6f12add3625cc" => :yosemite
|
|
|
|
sha1 "d9271e1f6906883e42c9782b4ce43ce288ad8f8e" => :mavericks
|
|
|
|
sha1 "4162df1d33f03d55472155728bd2911653702798" => :mountain_lion
|
2014-03-28 17:23:58 +00:00
|
|
|
end
|
|
|
|
|
2014-08-07 21:29:43 +00:00
|
|
|
# Upstream fix for O_CLOEXEC portability
|
|
|
|
# http://cgit.freedesktop.org/dbus/dbus/commit/?id=5d91f615d18629eaac074fbde2ee7e17b82e5472
|
2014-11-27 01:52:11 +00:00
|
|
|
# This is fixed in 1.9.x but won't be fixed upstream for 1.8.x
|
2014-08-07 21:29:43 +00:00
|
|
|
patch do
|
|
|
|
url "http://cgit.freedesktop.org/dbus/dbus/patch/?id=5d91f615d18629eaac074fbde2ee7e17b82e5472"
|
|
|
|
sha1 "ebb383abb86eeafbe048dbb8b77d83bdf0b7c9bb"
|
|
|
|
end
|
|
|
|
|
2009-10-04 15:18:44 +00:00
|
|
|
def install
|
2009-11-13 08:53:11 +00:00
|
|
|
# Fix the TMPDIR to one D-Bus doesn't reject due to odd symbols
|
|
|
|
ENV["TMPDIR"] = "/tmp"
|
2010-12-09 00:22:50 +00:00
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
2012-01-06 17:02:50 +00:00
|
|
|
"--localstatedir=#{var}",
|
|
|
|
"--sysconfdir=#{etc}",
|
2010-04-07 05:58:35 +00:00
|
|
|
"--disable-xml-docs",
|
|
|
|
"--disable-doxygen-docs",
|
2010-12-09 00:22:50 +00:00
|
|
|
"--enable-launchd",
|
|
|
|
"--with-launchd-agent-dir=#{prefix}",
|
2012-02-21 18:04:36 +00:00
|
|
|
"--without-x",
|
|
|
|
"--disable-tests"
|
2010-12-27 18:56:42 +00:00
|
|
|
system "make"
|
|
|
|
ENV.deparallelize
|
2014-11-27 01:52:11 +00:00
|
|
|
system "make", "install"
|
2009-10-04 15:18:44 +00:00
|
|
|
|
2014-07-24 23:09:24 +00:00
|
|
|
(prefix+"org.freedesktop.dbus-session.plist").chmod 0644
|
2013-11-13 01:55:21 +00:00
|
|
|
end
|
2011-09-02 21:41:57 +00:00
|
|
|
|
2013-11-13 01:55:21 +00:00
|
|
|
def post_install
|
2009-11-13 08:53:11 +00:00
|
|
|
# Generate D-Bus's UUID for this machine
|
2012-01-06 17:02:50 +00:00
|
|
|
system "#{bin}/dbus-uuidgen", "--ensure=#{var}/lib/dbus/machine-id"
|
2009-10-04 15:18:44 +00:00
|
|
|
end
|
2014-11-27 01:52:11 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/dbus-daemon", "--version"
|
|
|
|
end
|
2009-10-04 15:18:44 +00:00
|
|
|
end
|