dev-go/gogo-protobuf: Initial version

Package-Manager: Portage-2.3.8, Repoman-2.3.3
This commit is contained in:
Manuel Rüger
2017-08-23 14:47:06 +02:00
parent 46d3d0cf32
commit 21e7998249
3 changed files with 55 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST gogo-protobuf-0.4_p20170815.tar.gz 2572704 SHA256 f035a5be2c07ddbbfae821b372af68f70db504d1165c55b717dc4d5afcdf055f SHA512 3ab7f2e0006e537999e5fd0ba52272ad53c4707688401bb1e415007600f1ac5200dd8a03bd706977813b17c7712ba94a8b43fcf13b6498114a1d79c72bb216e7 WHIRLPOOL 7c7095989658bacd20c7038187344ea19c9111c8b2ba4601f0d06bd6ebc3309bbe0575073a0debb3d942a14c8ffc2986be5287a2413e8b1240560415b0b06a53

View File

@@ -0,0 +1,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
}

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<longdescription>
</longdescription>
<maintainer type="person">
<email>mrueg@gentoo.org</email>
<name>Manuel Rüger</name>
</maintainer>
<upstream>
<remote-id type="github">gogo/protobuf</remote-id>
</upstream>
</pkgmetadata>