Documentation ¶
Index ¶
- func NewGentooBuilder(e EbuildParser, concurrency int, db MemoryDB) tree.Parser
- func SourceFile(ctx context.Context, path string, pkg *_gentoo.GentooPackage) (map[string]expand.Variable, error)
- type EbuildParser
- type GentooBuilder
- type GentooDependency
- type GentooRDEPEND
- type MemoryDB
- type SimpleEbuildParser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGentooBuilder ¶
func NewGentooBuilder(e EbuildParser, concurrency int, db MemoryDB) tree.Parser
Types ¶
type GentooBuilder ¶
type GentooBuilder struct { EbuildParser EbuildParser Concurrency int DBType MemoryDB }
func (*GentooBuilder) Generate ¶
func (gb *GentooBuilder) Generate(dir string) (pkg.PackageDatabase, error)
type GentooDependency ¶
type GentooDependency struct { Use string UseCondition _gentoo.PackageCond SubDeps []*GentooDependency Dep *_gentoo.GentooPackage }
func NewGentooDependency ¶
func NewGentooDependency(pkg, use string) (*GentooDependency, error)
func (*GentooDependency) AddSubDependency ¶
func (d *GentooDependency) AddSubDependency(pkg, use string) (*GentooDependency, error)
func (*GentooDependency) GetDepsList ¶
func (d *GentooDependency) GetDepsList() []*GentooDependency
func (*GentooDependency) String ¶
func (d *GentooDependency) String() string
type GentooRDEPEND ¶
type GentooRDEPEND struct {
Dependencies []*GentooDependency
}
func ParseRDEPEND ¶
func ParseRDEPEND(rdepend string) (*GentooRDEPEND, error)
func (*GentooRDEPEND) GetDependencies ¶
func (r *GentooRDEPEND) GetDependencies() []*GentooDependency
type SimpleEbuildParser ¶
type SimpleEbuildParser struct {
World pkg.PackageDatabase
}
SimpleEbuildParser ignores USE flags and generates just 1-1 package
func (*SimpleEbuildParser) ScanEbuild ¶
func (ep *SimpleEbuildParser) ScanEbuild(path string) (pkg.Packages, error)
ScanEbuild returns a list of packages (always one with SimpleEbuildParser) decoded from an ebuild.
Click to show internal directories.
Click to hide internal directories.