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"
|
2016-02-11 01:02:49 +00:00
|
|
|
url "https://dbus.freedesktop.org/releases/dbus/dbus-1.10.6.tar.gz"
|
|
|
|
mirror "https://mirrors.ocf.berkeley.edu/debian/pool/main/d/dbus/dbus_1.10.6.orig.tar.gz"
|
|
|
|
sha256 "b5fefa08a77edd76cd64d872db949eebc02cf6f3f8be82e4bbc641742af5d35f"
|
2016-03-17 23:47:10 +00:00
|
|
|
head "https://anongit.freedesktop.org/git/dbus/dbus.git"
|
2011-12-16 06:26:01 +00:00
|
|
|
|
2014-03-28 17:23:58 +00:00
|
|
|
bottle do
|
2015-12-29 15:59:59 +00:00
|
|
|
sha256 "edf31f467954d3ead8d32fe9db3ef406211fa03eba81b2ab9cad842359a76829" => :el_capitan
|
|
|
|
sha256 "e1818ef166c0d49071bd687e83ec51367052bb8846888a482cac823a991aa092" => :yosemite
|
|
|
|
sha256 "08094b506bf81ce24aa9c38d9414b43726b35d19461440ecfc74d47d02298d50" => :mavericks
|
2014-03-28 17:23:58 +00:00
|
|
|
end
|
|
|
|
|
2016-03-17 23:47:10 +00:00
|
|
|
# Patch applies the config templating fixed in https://bugs.freedesktop.org/show_bug.cgi?id=94494
|
|
|
|
# Homebrew pr/issue: 50219
|
|
|
|
patch do
|
|
|
|
url "https://raw.githubusercontent.com/Homebrew/patches/0a8a55872e/d-bus/org.freedesktop.dbus-session.plist.osx.diff"
|
|
|
|
sha256 "a8aa6fe3f2d8f873ad3f683013491f5362d551bf5d4c3b469f1efbc5459a20dc"
|
|
|
|
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"
|
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
|