From: Kouhei S. <nu...@co...> - 2017-12-10 06:20:34
|
Kouhei Sutou 2017-12-10 15:19:23 +0900 (Sun, 10 Dec 2017) New Revision: 34af7b6b0314a1582cafd8a2f8b8240fad065438 https://github.com/ruby-gnome2/ruby-gnome2/commit/34af7b6b0314a1582cafd8a2f8b8240fad065438 Message: gnumeric: use GObjectIntrospection to detect .typelib existent GitHub: fix #1118 Reported by cedlemo. Thanks!!! Modified files: gnumeric/dependency-check/Rakefile Modified: gnumeric/dependency-check/Rakefile (+10 -2) =================================================================== --- gnumeric/dependency-check/Rakefile 2017-12-07 09:57:25 +0900 (9f32db772) +++ gnumeric/dependency-check/Rakefile 2017-12-10 15:19:23 +0900 (07ec80d9a) @@ -29,8 +29,16 @@ end namespace :dependency do desc "Check dependency" task :check do - unless NativePackageInstaller.install(:debian => "gir1.2-gnumeric") - exit(false) + require "gobject-introspection" + repository = GObjectIntrospection::Repository.default + begin + repository.require("Gnm") + rescue GObjectIntrospection::RepositoryError::TypelibNotFound + unless NativePackageInstaller.install(:arch_linux => "gnumeric", + :debian => "gir1.2-gnumeric", + :redhat => "pkgconfig(libspreadsheet-1.12)") + exit(false) + end end end end |