dependency-check/Rakefile in rsvg2-3.3.8 vs dependency-check/Rakefile in rsvg2-3.3.9
- old
+ new
@@ -1,6 +1,6 @@
-# Copyright (C) 2017 Ruby-GNOME2 Project Team
+# Copyright (C) 2017-2019 Ruby-GNOME Project Team
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
@@ -27,13 +27,14 @@
end
namespace :dependency do
desc "Check dependency"
task :check do
- unless PKGConfig.check_version?("librsvg-2.0")
+ package_id = "librsvg-2.0"
+ unless PKGConfig.check_version?(package_id)
unless NativePackageInstaller.install(:altlinux => "librsvg-devel",
:debian => "librsvg2-dev",
- :redhat => "pkgconfig(librsvg-2.0)",
+ :redhat => "pkgconfig(#{package_id})",
:arch => "librsvg",
:homebrew => "librsvg",
:macports => "librsvg",
:msys2 => "librsvg")
exit(false)