pkg:setup ENV.cxx11 ENV["GYP_DEFINES"] = "clang=1 mac_deployment_target=#{MacOS.version}" (buildpath/"build/gyp").install resource("gyp") inreplace "tools/gyp/v8.gyp", "'OTHER_LDFLAGS': ['-dynamiclib', '-all_load']", "\\0, 'DYLIB_INSTALL_NAME_BASE': '#{opt_lib}'" make native -j#{ENV.make_jobs} library=shared snapshot=on console=readline prefix.install "include" cd "out/native" lib.install Dir["lib*"] bin.install "d8", "lineprocessor", "mksnapshot", "preparser", "process", "shell" => "v8"