Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildFlags ¶
type BuildFlags struct {
AutoDep shared.DefaultTrue `yaml:"autodep,omitempty"`
AVX2 shared.DefaultFalse `yaml:"avx2,omitempty"`
Clang shared.DefaultTrue `yaml:"clang,omitempty"`
CCache shared.DefaultFalse `yaml:"ccache,omitempty"`
Debug shared.DefaultTrue `yaml:"debug,omitempty"`
Devel shared.DefaultFalse `yaml:"devel,omitempty"`
Emul32 shared.DefaultFalse `yaml:"emul32,omitempty"`
Extract shared.DefaultTrue `yaml:"extract,omitempty"`
LAStrip shared.DefaultTrue `yaml:"lastrip,omitempty"`
LibSplit shared.DefaultTrue `yaml:"libsplit,omitempty"`
Networking shared.DefaultFalse `yaml:"networking,omitempty"`
Optimize []string `yaml:"optimize,omitempty"`
Strip shared.DefaultTrue `yaml:"strip,omitempty"`
}
BuildFlags are special options that configure the build process
type BuildStages ¶
type BuildStages struct {
Setup string `yaml:"setup,omitempty"`
Build string `yaml:"build,omitempty"`
Profile string `yaml:"profile,omitempty"`
Check string `yaml:"check,omitempty"`
Install string `yaml:"install"`
}
BuildStages represent the scripted commands to execute for each stage of the build process
type PackageDeps ¶
type PackageDeps struct {
Replaces array.ListMap `yaml:"replaces,omitempty"`
Conflicts array.ListMap `yaml:"conflicts,omitempty"`
Build []yaml.Node `yaml:"build,omitempty"`
Check []yaml.Node `yaml:"check,omitempty"`
Run array.ListMap `yaml:"run,omitempty"`
}
PackageDeps includes the dependencies required at Build, Check, and Run time
func NewPackageDeps ¶ added in v0.1.5
func NewPackageDeps() PackageDeps
NewPackageDeps retuns an empty PackageDeps
type PackageYML ¶
type PackageYML struct {
YPKG int `yaml:"YPKG"`
Name string `yaml:"name"`
Version string `yaml:"version"`
Release uint `yaml:"release"`
Source []shared.Source `yaml:"source"`
Homepage string `yaml:"homepage,omitempty"`
License shared.Licenses `yaml:"license"`
Component string `yaml:"component"`
Components array.Map `yaml:"components"`
Summary string `yaml:"summary"`
Summaries array.Map `yaml:"summaries"`
Description string `yaml:"description"`
Descriptions array.Map `yaml:"descriptions"`
Dependencies PackageDeps `yaml:"deps,omitempty"`
Flags BuildFlags `yaml:"flags,omitempty"`
Environment string `yaml:"environment,omitempty"`
Stages BuildStages `yaml:",inline"`
Permanent array.ListMap `yaml:"permanent,omitempty"`
Patterns array.ListMap `yaml:"patterns,omitempty"`
}
PackageYML is the v3 representation of the Package YML specification
func Auto ¶
func Auto(sources []string) (pkg *PackageYML, err error)
Auto creates a new package from a list of sources
func (*PackageYML) Lint ¶
func (pkg *PackageYML) Lint() error
Lint checks over the package for any obvious errors or questionable choices
func (*PackageYML) Update ¶
func (pkg *PackageYML) Update(version string, sources []string) error
Update replaces the existing source with newer ones
Source Files
¶
- deps.go
- flags.go
- pkg.go
- stages.go
Click to show internal directories.
Click to hide internal directories.