def _check_pkg_config(self, option, package_name):
    if option:
        pkg_config = tools.PkgConfig(package_name)
        if (not pkg_config.provides):
            raise ConanInvalidConfiguration(('package %s is not available' % package_name))
def _check_pkg_config(self, option, package_name):
    if option:
        pkg_config = tools.PkgConfig(package_name)
        if (not pkg_config.provides):
            raise ConanInvalidConfiguration(('package %s is not available' % package_name))