class MagnumBindings < Formula desc "`Bindings for the Magnum C++11/C++14 graphics engine" homepage "https://magnum.graphics" url "https://github.com/mosra/magnum-bindings/archive/v2019.10.tar.gz" # wget https://github.com/mosra/magnum-bindings/archive/v2019.10.tar.gz -O - | sha256sum # sha256 "7e0038149fd37237efaf8dff52cf7e4ee8629e630c84a4f76bcd0eb166898e8c" head "git://github.com/mosra/magnum-bindings.git" depends_on "cmake" depends_on "python" depends_on "magnum" depends_on "pybind11" => :build def install system "mkdir build" cd "build" do system "cmake", "-DCMAKE_BUILD_TYPE=Release", "-DCMAKE_INSTALL_PREFIX=#{prefix}", "-DWITH_PYTHON=ON", ".." system "cmake", "--build", "." system "cmake", "--build", ".", "--target", "install" cd "src/python" do system "python3", *Language::Python.setup_install_args(prefix) end end end end