require 'formula' class Colloquypush < Formula head 'https://github.com/wired/colloquypush.git' homepage 'https://github.com/wired/colloquypush' depends_on 'znc' def install cd "znc" do system "znc-buildmod", "colloquy.cpp" system "install", "-m", "0755", "colloquy.so", %x[znc-config --moddir].strip() end end end