qitoolchain.binary_package.gentoo – Toolchain binary packages Gentoo (without external dependency)

This module implements the Gentoo binary packages class.

This module optionally does not depends on portage: http://www.gentoo.org/proj/en/portage/index.xml

class qitoolchain.binary_package.gentoo.GentooPackage(package_path)

Gentoo binary package endpoint (does not use portage).

extract(dest_dir)

Extract the Gentoo binary package content, without the metadata.

Parameters:dest_dir – the extraction directory
Returns:the root directory of the extracted content
get_metadata()

Guess the metadata from the package file name and store it in the instance.

Returns:the metadata dictionary