Top Level Namespace
Defined Under Namespace
Modules: Cairo
Instance Method Summary collapse
Instance Method Details
#required_pkg_config_package(package_info, native_package_info = nil) ⇒ Object
46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'ext/cairo/extconf.rb', line 46 def required_pkg_config_package(package_info, native_package_info=nil) if package_info.is_a?(Array) required_package_info = package_info else required_package_info = [package_info] end return true if PKGConfig.have_package(*required_package_info) native_package_info ||= {} return false unless NativePackageInstaller.install(native_package_info) PKGConfig.have_package(*required_package_info) end |