require 'formula' class Libplist :build depends_on 'glib' depends_on 'libxml2' def install # Disable Python bindings. inreplace "CMakeLists.txt", 'OPTION(ENABLE_PYTHON "Enable Python bindings (needs Swig)" ON)', '# Disabled Python Bindings' system "cmake . #{std_cmake_parameters}" system "make install" # Remove 'plutil', which duplicates the system-provided one. Leave the versioned one, though. rm (bin+'plutil') end end