# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 inherit go-module DESCRIPTION="SDK for building Kubernetes APIs using CRDs" HOMEPAGE="https://book.kubebuilder.io" EGO_SUM=( "github.com/BurntSushi/toml v0.3.1/go.mod" "github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod" "github.com/coreos/etcd v3.3.10+incompatible/go.mod" "github.com/coreos/go-etcd v2.0.0+incompatible/go.mod" "github.com/coreos/go-semver v0.2.0/go.mod" "github.com/cpuguy83/go-md2man v1.0.10/go.mod" "github.com/davecgh/go-spew v1.1.0/go.mod" "github.com/davecgh/go-spew v1.1.1" "github.com/davecgh/go-spew v1.1.1/go.mod" "github.com/fsnotify/fsnotify v1.4.7" "github.com/fsnotify/fsnotify v1.4.7/go.mod" "github.com/gobuffalo/flect v0.2.0" "github.com/gobuffalo/flect v0.2.0/go.mod" "github.com/golang/protobuf v1.2.0" "github.com/golang/protobuf v1.2.0/go.mod" "github.com/golang/protobuf v1.3.2" "github.com/golang/protobuf v1.3.2/go.mod" "github.com/hashicorp/hcl v1.0.0/go.mod" "github.com/hpcloud/tail v1.0.0" "github.com/hpcloud/tail v1.0.0/go.mod" "github.com/inconshreveable/mousetrap v1.0.0" "github.com/inconshreveable/mousetrap v1.0.0/go.mod" "github.com/kr/pretty v0.1.0" "github.com/kr/pretty v0.1.0/go.mod" "github.com/kr/pty v1.1.1/go.mod" "github.com/kr/text v0.1.0" "github.com/kr/text v0.1.0/go.mod" "github.com/magiconair/properties v1.8.0/go.mod" "github.com/mitchellh/go-homedir v1.1.0/go.mod" "github.com/mitchellh/mapstructure v1.1.2/go.mod" "github.com/onsi/ginkgo v1.6.0" "github.com/onsi/ginkgo v1.6.0/go.mod" "github.com/onsi/ginkgo v1.10.1" "github.com/onsi/ginkgo v1.10.1/go.mod" "github.com/onsi/gomega v1.7.0" "github.com/onsi/gomega v1.7.0/go.mod" "github.com/pelletier/go-toml v1.2.0/go.mod" "github.com/pmezard/go-difflib v1.0.0" "github.com/pmezard/go-difflib v1.0.0/go.mod" "github.com/russross/blackfriday v1.5.2/go.mod" "github.com/spf13/afero v1.1.2/go.mod" "github.com/spf13/afero v1.2.2" "github.com/spf13/afero v1.2.2/go.mod" "github.com/spf13/cast v1.3.0/go.mod" "github.com/spf13/cobra v0.0.5" "github.com/spf13/cobra v0.0.5/go.mod" "github.com/spf13/jwalterweatherman v1.0.0/go.mod" "github.com/spf13/pflag v1.0.3" "github.com/spf13/pflag v1.0.3/go.mod" "github.com/spf13/pflag v1.0.5" "github.com/spf13/pflag v1.0.5/go.mod" "github.com/spf13/viper v1.3.2/go.mod" "github.com/stretchr/objx v0.1.0/go.mod" "github.com/stretchr/testify v1.2.2/go.mod" "github.com/stretchr/testify v1.3.0" "github.com/stretchr/testify v1.3.0/go.mod" "github.com/stretchr/testify v1.4.0" "github.com/stretchr/testify v1.4.0/go.mod" "github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod" "github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod" "golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod" "golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2" "golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod" "golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod" "golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod" "golang.org/x/net v0.0.0-20191004110552-13f9640d40b9" "golang.org/x/net v0.0.0-20191004110552-13f9640d40b9/go.mod" "golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod" "golang.org/x/sync v0.0.0-20190423024810-112230192c58" "golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod" "golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod" "golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod" "golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod" "golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456" "golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod" "golang.org/x/text v0.3.0" "golang.org/x/text v0.3.0/go.mod" "golang.org/x/text v0.3.2" "golang.org/x/text v0.3.2/go.mod" "golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod" "golang.org/x/tools v0.0.0-20190920225731-5eefd052ad72" "golang.org/x/tools v0.0.0-20190920225731-5eefd052ad72/go.mod" "golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod" "gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405" "gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod" "gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127" "gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod" "gopkg.in/fsnotify.v1 v1.4.7" "gopkg.in/fsnotify.v1 v1.4.7/go.mod" "gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7" "gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod" "gopkg.in/yaml.v2 v2.2.1" "gopkg.in/yaml.v2 v2.2.1/go.mod" "gopkg.in/yaml.v2 v2.2.2" "gopkg.in/yaml.v2 v2.2.2/go.mod" "gopkg.in/yaml.v2 v2.2.4" "gopkg.in/yaml.v2 v2.2.4/go.mod" "sigs.k8s.io/yaml v1.1.0" "sigs.k8s.io/yaml v1.1.0/go.mod" ) go-module_set_globals SRC_URI="https://github.com/kubernetes-sigs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz ${EGO_SUM_SRC_URI}" LICENSE="Apache-2.0 BSD-4 ECL-2.0 JSON MIT" SLOT="0" KEYWORDS="~amd64" DOCS=( {DESIGN,README}.md ) src_compile() { go build -o "bin/${PN}" ./cmd || die } src_install() { dobin bin/kubebuilder einstalldocs }