'Get the version of the package from pkg-config.'

def get_version(self, package):

    if (not self.has_pkgconfig):
        return None
    (status, output) = getstatusoutput((self.pkg_config + ('    %s    --modversion' % package)))
    if (status == 0):
        return output
    return None
