2011-03-10 05:11:03 +00:00
|
|
|
class DBus < Formula
|
2015-08-27 03:45:17 +00:00
|
|
|
# releases: even (1.10.x) = stable, odd (1.11.x) = development
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Message bus system, providing inter-application communication"
|
2015-07-10 20:54:51 +00:00
|
|
|
homepage "https://wiki.freedesktop.org/www/Software/dbus"
|
2015-08-20 16:53:53 +00:00
|
|
|
|
|
|
|
stable do
|
2015-08-27 03:45:17 +00:00
|
|
|
url "http://dbus.freedesktop.org/releases/dbus/dbus-1.10.0.tar.gz"
|
|
|
|
mirror "https://mirrors.kernel.org/debian/pool/main/d/dbus/dbus_1.10.0.orig.tar.gz"
|
|
|
|
sha256 "1dfb9745fb992f1ccd43c920490de8caddf6726a6222e8b803be6098293f924b"
|
2015-08-20 16:53:53 +00:00
|
|
|
end
|
2011-12-16 06:26:01 +00:00
|
|
|
|
2014-03-28 17:23:58 +00:00
|
|
|
bottle do
|
2015-09-13 19:35:34 +00:00
|
|
|
sha256 "68500e3670555c2bf5eaeae7541111f9052e92c4a7b28410a0ded25fd7cac544" => :el_capitan
|
2015-08-27 06:16:55 +00:00
|
|
|
sha256 "5a49bcf55334b90e3cd6725b7cc6f0383bcf0160ca7a8d12611107ac7f6a022a" => :yosemite
|
|
|
|
sha256 "a2b9e6c8e84a6e199dcd22d748b3c617285a1eba4ec0b042fa16e9171e96bd91" => :mavericks
|
|
|
|
sha256 "8f571788a6bd6209e27b4e4cbdd4e1d2179b7f3bbdb35262c3159ff28336b76a" => :mountain_lion
|
2014-03-28 17:23:58 +00:00
|
|
|
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
|