pkg:setup libffi = Formula["libffi"] ENV.remove "CPPFLAGS", "-I#{libffi.include}" ENV.prepend "CPPFLAGS", "-I#{libffi.lib}/libffi-#{libffi.version}/include" ENV.deparallelize perl Configure.pl --prefix=${PKG_TAPF} --backends=moar --gen-moar make ENV["NO_NETWORK_TESTING"] = "1" make DESTDIR=${PKG_DEST} install bin.install_symlink Dir[share/"perl6/site/bin/*"] mv "#{prefix}/man", share if File.directory?("#{prefix}/man")