golang-build.eclass

Name

golang-build.eclass -- Eclass for compiling go packages.

Description

This eclass provides default src_compile, src_test and src_install functions for software written in the Go programming language.

Deprecated

Replacement: go-module.eclass

Supported EAPIs

5 6 7

Transitively Provided Eclasses

  • golang-base

Exported Phases

  • src_compile

  • src_test

  • src_install

Variables

EGO_BUILD_FLAGS

This allows you to pass build flags to the Go compiler. These flags are common to the go build and go install commands used below. Please emerge dev-lang/go and run go help build for the documentation for these flags.

Example:

EGO_BUILD_FLAGS="-ldflags \"-X main.version ${PV}\""
EGO_PN (REQUIRED)

This is the import path for the go package(s) to build. Please emerge dev-lang/go and read go help importpath for syntax.

Example:

EGO_PN=github.com/user/package

Maintainers

William Hubbs <williamh@gentoo.org>

Reporting Bugs

Please report bugs via https://bugs.gentoo.org/