dependency-check/Rakefile in gegl-3.3.8 vs dependency-check/Rakefile in gegl-3.3.9
- old
+ new
@@ -1,6 +1,6 @@
-# Copyright (C) 2018 Ruby-GNOME2 Project Team
+# Copyright (C) 2018-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?("gegl-0.4")
+ pacakge_id = "gegl-0.4"
+ unless PKGConfig.check_version?(pacakge_id)
unless NativePackageInstaller.install(:altlinux => "gegl-devel",
:debian => "libgegl-dev",
- :redhat => "pkgconfig(gegl-0.4)",
+ :redhat => "pkgconfig(#{pacakge_id})",
:arch => "gegl",
:homebrew => "gegl",
:macports => "gegl",
:msys2 => "gegl")
exit(false)