| # Copyright 2015 The Chromium OS Authors. All rights reserved. |
| # Distributed under the terms of the GNU General Public License v2. |
| |
| EAPI=5 |
| |
| # Disable cros-workon auto-uprev since this is an external package. |
| # Must manage commit/tree hashes manually. |
| CROS_WORKON_BLACKLIST="1" |
| CROS_WORKON_COMMIT="605d5bf7f53c886f0b33afe425db6664d1ed899c" |
| CROS_WORKON_TREE="55bd547e0e400e44ba4655c6c1d4095f72af085a" |
| CROS_WORKON_REPO="https://go.googlesource.com" |
| CROS_WORKON_PROJECT="tools" |
| CROS_WORKON_DESTDIR="${S}/src/golang.org/x/tools" |
| |
| CROS_GO_PACKAGES=( |
| "golang.org/x/tools/go/exact" |
| "golang.org/x/tools/go/types" |
| "golang.org/x/tools/go/gcimporter" |
| ) |
| |
| inherit cros-workon cros-go |
| |
| DESCRIPTION="Packages and tools that support the Go programming language" |
| HOMEPAGE="http://golang.org/x/tools" |
| |
| LICENSE="BSD-Google" |
| SLOT="0" |
| KEYWORDS="*" |
| IUSE="" |
| RESTRICT="binchecks strip" |
| |
| DEPEND="" |
| RDEPEND="" |
| |
| src_compile() { |
| cros_go build -v "golang.org/x/tools/cmd/godoc" |
| cros_go build -v -o govet "golang.org/x/tools/cmd/vet" |
| } |
| |
| src_install() { |
| dobin godoc govet |
| cros-go_src_install |
| } |