parameters: (package, name)
return_statement: return out.splitlines()[0]
docstring: Retrieve the value of the named package variable as a string
docstring_summary: Retrieve the value of the named package variable as a string
docstring_tokens: Retrieve the value of the named package variable as a string
function: def pkg_config_get_var(package, name):
      """Retrieve the value of the named package variable as a string
      """
      p = _call_pkg_config(['--variable=%s' % name, package])
      if not p:
          log.warn("pkg-config: var %s get failed, package %s", name, package)
          return ""
      out, err = p.communicate()
      if p.returncode:
          out = ""
          log.warn(err)
      return out.splitlines()[0]
function_tokens: def pkg_config_get_var ( package , name ) : p = _call_pkg_config ( [ '--variable=%s' % name , package ] ) if not p : log . warn ( "pkg-config: var %s get failed, package %s" , name , package ) return "" out , err = p . communicate ( ) if p . returncode : out = "" log . warn ( err ) return out . splitlines ( ) [ 0 ]