homebrew-core/Formula/d-bus.rb

49 lines
1.8 KiB
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class DBus < Formula
# releases: even (1.10.x) = stable, odd (1.11.x) = development
desc "Message bus system, providing inter-application communication"
homepage "https://wiki.freedesktop.org/www/Software/dbus"
stable do
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"
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
# Fix the TMPDIR to one D-Bus doesn't reject due to odd symbols
ENV["TMPDIR"] = "/tmp"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--localstatedir=#{var}",
"--sysconfdir=#{etc}",
"--disable-xml-docs",
"--disable-doxygen-docs",
"--enable-launchd",
"--with-launchd-agent-dir=#{prefix}",
"--without-x",
"--disable-tests"
2010-12-27 18:56:42 +00:00
system "make"
ENV.deparallelize
system "make", "install"
2009-10-04 15:18:44 +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
# Generate D-Bus's UUID for this machine
system "#{bin}/dbus-uuidgen", "--ensure=#{var}/lib/dbus/machine-id"
2009-10-04 15:18:44 +00:00
end
test do
system "#{bin}/dbus-daemon", "--version"
end
2009-10-04 15:18:44 +00:00
end