blob: 0abb1c6156a3a48813e7e52c23a3b4fd85f9fc6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
EGO_PN="github.com/gogo/protobuf"
EGIT_COMMIT="fcdc5011193ff531a548e9b0301828d5a5b97fd8"
inherit golang-build golang-vcs-snapshot
ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
DESCRIPTION="Protocol Buffers for Go with Gadgets"
HOMEPAGE="https://github.com/gogo/protobuf"
SRC_URI="${ARCHIVE_URI}"
LICENSE="BSD"
SLOT="0"
IUSE=""
RESTRICT="test"
src_compile() {
pushd src || die
GOPATH="${WORKDIR}/${P}"\
go install ${EGO_PN}/protoc-gen-gogo || die
GOPATH="${WORKDIR}/${P}"\
go install ${EGO_PN}/protoc-gen-gofast || die
GOPATH="${WORKDIR}/${P}"\
go install ${EGO_PN}/protoc-gen-gogofast || die
GOPATH="${WORKDIR}/${P}"\
go install ${EGO_PN}/protoc-gen-gogoslick || die
GOPATH="${WORKDIR}/${P}"\
go install ${EGO_PN}/protoc-gen-gogofaster || die
popd || die
}
src_install() {
dobin bin/protoc-gen-{gogo,gofast,gogofast,gogofaster}
dodoc src/${EGO_PN}/README
}
|