dependency-check/Rakefile in red-arrow-dataset-1.0.1 vs dependency-check/Rakefile in red-arrow-dataset-2.0.0
- old
+ new
@@ -17,10 +17,11 @@
# specific language governing permissions and limitations
# under the License.
require "pkg-config"
require "native-package-installer"
+require_relative "../lib/arrow-dataset/version"
case RUBY_PLATFORM
when /mingw|mswin/
task :default => "nothing"
else
@@ -31,10 +32,13 @@
end
namespace :dependency do
desc "Check dependency"
task :check do
- unless PKGConfig.check_version?("arrow-dataset-glib")
+ unless PKGConfig.check_version?("arrow-dataset-glib",
+ ArrowDataset::Version::MAJOR,
+ ArrowDataset::Version::MINOR,
+ ArrowDataset::Version::MICRO)
unless NativePackageInstaller.install(:debian => "libarrow-dataset-glib-dev",
:redhat => "arrow-dataset-glib-devel")
exit(false)
end
end