golang-build.eclass
Description
This eclass provides default src_compile
, src_test
and src_install
functions for software written in the Go programming language.
Variables
- EGO_BUILD_FLAGS
-
This allows you to pass build flags to the Go compiler. These flags are common to the
go build
andgo install
commands used below. Please emergedev-lang/go
and rungo 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 readgo 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/