On this page:
5.1 Rust’s Cargo
ebuild-cargo-mixin
ebuild-cargo%
new
5.2 Git Hosting snapshots
ebuild-gh-mixin
ebuild-gh%
new
5.3 Git repositories
ebuild-git-mixin
ebuild-git%
new
8.2

5 Ebuild Templates

 (require ebuild/templates) package: ebuild-lib

5.1 Rust’s Cargo

 (require ebuild/templates/cargo)
  package: ebuild-templates

mixin

ebuild-cargo-mixin : (class? . -> . class?)

  argument extends/implements: ebuild%

class

ebuild-cargo% : class?

  superclass: ebuild%

Pre-made class extending ebuild% for writing ebuilds using the cargo.eclass.

When creating a ebuild-cargo% object following values are automatically added to fields:
  • "cargo" to "inherit"ed eclasses

  • "$(cargo_crate_uris ${CRATES})" to SRC_URI

  • CRATES to a CRATES variable

constructor

(new ebuild-cargo% [[CRATES CRATES]])  (is-a?/c ebuild-cargo%)

  CRATES : (listof string?) = '()

5.2 Git Hosting snapshots

 (require ebuild/templates/gh) package: ebuild-templates

mixin

ebuild-gh-mixin : (class? . -> . class?)

  argument extends/implements: ebuild%

class

ebuild-gh% : class?

  superclass: ebuild%

Pre-made class extending ebuild% for writing ebuilds using the gh.eclass.

constructor

(new ebuild-gh%    
    [GH_REPO GH_REPO]    
    [[GH_DOM GH_DOM]    
    [GH_COMMIT GH_COMMIT]])  (is-a?/c ebuild-gh%)
  GH_REPO : string?
  GH_DOM : string? = "gitlab.com"
  GH_COMMIT : (or/c #f string?) = #f

5.3 Git repositories

 (require ebuild/templates/git)
  package: ebuild-templates

mixin

ebuild-git-mixin : (class? . -> . class?)

  argument extends/implements: ebuild%

class

ebuild-git% : class?

  superclass: ebuild%

Pre-made class extending ebuild% for writing ebuilds using the git-r3.eclass.

constructor

(new ebuild-git% 
    [EGIT_REPO_URI EGIT_REPO_URI] 
    [[EGIT_BRANCH EGIT_BRANCH] 
    [EGIT_CHECKOUT_DIR EGIT_CHECKOUT_DIR] 
    [EGIT_COMMIT EGIT_COMMIT] 
    [EGIT_COMMIT_DATE EGIT_COMMIT_DATE] 
    [EGIT_MIN_CLONE_TYPE EGIT_MIN_CLONE_TYPE] 
    [EGIT_MIRROR_URI EGIT_MIRROR_URI] 
    [EGIT_SUBMODULES EGIT_SUBMODULES] 
    [EVCS_OFFLINE EVCS_OFFLINE]]) 
  (is-a?/c ebuild-git%)
  EGIT_REPO_URI : string?
  EGIT_BRANCH : (or/c #f string?) = #f
  EGIT_CHECKOUT_DIR : (or/c #f string?) = #f
  EGIT_COMMIT : (or/c #f string?) = #f
  EGIT_COMMIT_DATE : (or/c #f string?) = #f
  EGIT_MIN_CLONE_TYPE : (or/c #f string?) = #f
  EGIT_MIRROR_URI : (or/c #f string?) = #f
  EGIT_SUBMODULES : (or/c #f (listof string?)) = #f
  EVCS_OFFLINE : (or/c #f string?) = #f