gentoo

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGentooBuilder

func NewGentooBuilder(e EbuildParser, concurrency int, db MemoryDB) tree.Parser

func SourceFile

func SourceFile(ctx context.Context, path string, pkg *_gentoo.GentooPackage) (map[string]expand.Variable, error)

Types

type EbuildParser

type EbuildParser interface {
	ScanEbuild(string) (pkg.Packages, error)
}

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 MemoryDB

type MemoryDB int
const (
	InMemory MemoryDB = iota
	BoltDB   MemoryDB = iota
)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL