{ "name": "Nlopt", "description": "Free/open-source library for nonlinear optimization", "url": "https://github.com/stevengj/nlopt/releases/download/nlopt-2.4.2/nlopt-2.4.2.tar.gz", "mirror": null, "homepage": "https://nlopt.readthedocs.io/", "depends": [ { "depend": "cmake", "build-depend": true }, { "depend": "swig", "build-depend": true }, { "depend": "numpy", "build-depend": false } ], "resource": [], "conflicts": [], "patches": [], "install": [ "ENV.deparallelize", "if build.head?", "system \"cmake\", \".\", *std_cmake_args,", "\"-DBUILD_MATLAB=OFF\",", "\"-DBUILD_OCTAVE=OFF\",", "\"-DWITH_CXX=ON\"", "else", "system \"./configure\", \"--prefix=#{prefix}\",", "\"--enable-shared\",", "\"--with-cxx\",", "\"--without-octave\"", "system \"make\"", "end", "system \"make\", \"install\"", "%w[0.dylib dylib a].each do |suffix|", "lib.install_symlink \"#{lib}/libnlopt_cxx.#{suffix}\" => \"#{lib}/libnlopt.#{suffix}\"" ], "version": "2.4.2", "file": "nlopt.rb" }