diff --git a/Formula/distcc.rb b/Formula/distcc.rb index e166d8aae1..f535d65cb4 100644 --- a/Formula/distcc.rb +++ b/Formula/distcc.rb @@ -1,17 +1,12 @@ -class PythonWithoutPPCRequirement < Requirement - fatal true - satisfy(:build_env => false) { !archs_for_command("python").ppc? } - - def message - "This software will not compile if your default Python is built with PPC support." - end -end - class Distcc < Formula desc "Distributed compiler client and server" - homepage "https://code.google.com/p/distcc/" - url "https://distcc.googlecode.com/files/distcc-3.2rc1.tar.gz" - sha256 "8cf474b9e20f5f3608888c6bff1b5f804a9dfc69ae9704e3d5bdc92f0487760a" + homepage "https://github.com/distcc/distcc/" + url "https://github.com/distcc/distcc/archive/v3.2rc1.tar.gz" + version "3.2rc1" + sha256 "33e85981ff6afd94efc38b23b2d8b9036b3dff2dc6eac6982b9ff0ae1de64caa" + + depends_on "autoconf" => :build + depends_on "automake" => :build bottle do sha256 "67cace8962a3046e66c71726e0800b93635e2b51d5ae95d1a4465ec6c93e3a93" => :el_capitan @@ -19,20 +14,18 @@ class Distcc < Formula sha256 "bf0e1b9468861414802356814229c8c1256abf22fb00bc2819644f4f6e336485" => :mavericks end - depends_on PythonWithoutPPCRequirement - def install # Make sure python stuff is put into the Cellar. # --root triggers a bug and installs into HOMEBREW_PREFIX/lib/python2.7/site-packages instead of the Cellar. inreplace "Makefile.in", '--root="$$DESTDIR"', "" - + system "./autogen.sh" system "./configure", "--prefix=#{prefix}" system "make", "install" - plist_path.write startup_plist - plist_path.chmod 0644 end - def startup_plist; <<-EOPLIST.undent + plist_options :manual => "distccd" + + def plist; <<-EOS.undent @@ -45,21 +38,15 @@ class Distcc < Formula ProgramArguments - #{HOMEBREW_PREFIX}/bin/distccd + #{opt_prefix}/bin/distccd --daemon --no-detach --allow=192.168.0.1/24 WorkingDirectory - #{HOMEBREW_PREFIX} + #{opt_prefix} - EOPLIST - end - - def caveats; <<-EOS.undent - Use 'brew services start distcc' to start distccd automatically on login. - By default, it will allow access to all clients on 192.168.0.1/24. EOS end