ext/arrow/extconf.rb in red-arrow-1.0.1 vs ext/arrow/extconf.rb in red-arrow-2.0.0

- old
+ new

@@ -14,26 +14,37 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. require "extpp" -require "mkmf-gnome2" +require "mkmf-gnome" +require_relative "../../lib/arrow/version" arrow_pkg_config_path = ENV["ARROW_PKG_CONFIG_PATH"] if arrow_pkg_config_path pkg_config_paths = [arrow_pkg_config_path, ENV["PKG_CONFIG_PATH"]].compact ENV["PKG_CONFIG_PATH"] = pkg_config_paths.join(File::PATH_SEPARATOR) end -unless required_pkg_config_package("arrow", +unless required_pkg_config_package([ + "arrow", + Arrow::Version::MAJOR, + Arrow::Version::MINOR, + Arrow::Version::MICRO, + ], debian: "libarrow-dev", redhat: "arrow-devel", homebrew: "apache-arrow", msys2: "arrow") exit(false) end -unless required_pkg_config_package("arrow-glib", +unless required_pkg_config_package([ + "arrow-glib", + Arrow::Version::MAJOR, + Arrow::Version::MINOR, + Arrow::Version::MICRO, + ], debian: "libarrow-glib-dev", redhat: "arrow-glib-devel", homebrew: "apache-arrow-glib", msys2: "arrow") exit(false)