diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-01-24 22:40:58 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-01-24 22:40:58 +0000 |
commit | 3e3f7d6d13889dd7c4311a93222a83f73d5cae60 (patch) | |
tree | fd67c3af4fff1f412f885fee15f217dbbc39ea67 /dev-go | |
parent | 036ca55b62003bccf841e531000f3a7968ed3ab5 (diff) |
dev-go/go-protobuf : new package (pentoo import)
Diffstat (limited to 'dev-go')
-rw-r--r-- | dev-go/go-protobuf/Manifest | 5 | ||||
-rw-r--r-- | dev-go/go-protobuf/go-protobuf-1.5.2.ebuild | 52 |
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-go/go-protobuf/Manifest b/dev-go/go-protobuf/Manifest new file mode 100644 index 00000000..1bfcdc58 --- /dev/null +++ b/dev-go/go-protobuf/Manifest @@ -0,0 +1,5 @@ +DIST github.com-golang-net-aaf60122140d3fcf75376d319f0554393160eb50.tar.gz 965206 BLAKE2B 018ab877bfa7208bb0ca9b4ede85077ed37c8ee3c7065569646e6c9704715d6810b0286276ea0fa9a271f12ffbe964b41f55ec762711c8a43ccea564607f3265 SHA512 d56f5608e64e8d883a782f0c460f08da20e7d01a97330fad35c8757420ac82fb84b657c3f64e3c4d90a08cc4d8905ab37225d6fab8472e8f1fd3d7be212df8b9 +DIST github.com-golang-sync-1d60e4601c6fd243af51cc01ddf169918a5407ca.tar.gz 16326 BLAKE2B d214c190a03006b726b4e5daa8320aa2f664572db46ac6a57545ccd3e98529c63fd5d9296e2afe0af0b781fcced4af52127d8079e72d116e0310688465e1882e SHA512 dc67de045513305edb3239b412b9154b44b6f408eace3cbbcf400c08d68322cec7090b9e6b22d63bcfaaec459e221d0e3f2c057aa19ae9b35a4a134dd72475c5 +DIST github.com-google-go-genproto-af9cb2a35e7f169ec875002c1829c9b315cddc04.tar.gz 2323831 BLAKE2B a614c74b60f8e347b47c8686807228ea76b021a918fc732b69293c8b59c1bc5396e320cbce6db87ab43b9a4fd649d19779874934bdd667f7cabf03165439c54a SHA512 a6524f31e8c4775195c245ffbe54c7f770591d46663ea86b8120ffd8efb3cf9269569fbf457b0d0272dc47177ccf3b413e858c2b437ee9892b5ac6698d07ed4d +DIST github.com-protocolbuffers-protobuf-go-v1.27.1.tar.gz 1278521 BLAKE2B 1591dbfc5aae2360d69ca3e5e9247c4287114699f732d85011fb1c6b5daa3532d2218ce4ddf0390ffb23a3fd097ffa1b6bc418ba968dab98112a4522cc5fe93b SHA512 a0236bc88b963df0acc2a2c7c247334614b2d555f341e103fd06759665802069a320ced4ab51be658283cc816ec9f2d53ed98728895c5b8ce18954a17663264b +DIST go-protobuf-1.5.2.tar.gz 171702 BLAKE2B 4b1b0936aed1919f3ec967648d15a0c533b57d9d19d3c80c8d4149345bf6bda096d6b5cfd5c49ef5e76eb7358e694fc159d16faedb096faf81e82e425377892d SHA512 5707936f2ea9493d2f3897a3ec04139afcc00b3dbfaa2142b56a492d356bc17e26237c74788b047592a0fa89c0078b7970dbf481f7c33a7a63c5f50557779590 diff --git a/dev-go/go-protobuf/go-protobuf-1.5.2.ebuild b/dev-go/go-protobuf/go-protobuf-1.5.2.ebuild new file mode 100644 index 00000000..e4f625bc --- /dev/null +++ b/dev-go/go-protobuf/go-protobuf-1.5.2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +EGO_SRC="github.com/golang/protobuf" +EGO_PN=${EGO_SRC}/... +EGO_VENDOR=( + "google.golang.org/genproto af9cb2a35e7f169ec875002c1829c9b315cddc04 github.com/google/go-genproto" + "golang.org/x/net aaf60122140d3fcf75376d319f0554393160eb50 github.com/golang/net" + "golang.org/x/sync 1d60e4601c6fd243af51cc01ddf169918a5407ca github.com/golang/sync" + "google.golang.org/protobuf v1.27.1 github.com/protocolbuffers/protobuf-go" +) + +inherit golang-build golang-vcs-snapshot + +DESCRIPTION="Go support for Google's protocol buffers" +HOMEPAGE="https://github.com/golang/protobuf" +SRC_URI="https://${EGO_SRC}/archive/v${PV}.tar.gz -> ${P}.tar.gz + ${EGO_VENDOR_URI}" +LICENSE="BSD" +SLOT="0/${PVR}" +KEYWORDS="amd64 x86" +IUSE="test" +DEPEND="test? ( dev-libs/protobuf )" +RDEPEND="" +RESTRICT="!test? ( test )" + +#src_prepare() { +# default + # golden_test.go:113: golden file differs: deprecated/deprecated.pb.go +# sed -e 's:^\(func \)\(TestGolden\):\1_\2:' \ +# -i src/${EGO_SRC}/protoc-gen-go/golden_test.go || die +#} + +src_compile() { + env GOPATH="${S}" \ + go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}" || die +} + +src_test() { + GOPATH="${S}" \ + go test -v -work -x "${EGO_PN}" || die +} + +src_install() { + rm -rf src/${EGO_SRC}/.git* || die + golang_install_pkgs + rm -rf "${D%/}$(get_golibdir_gopath)/src/${EGO_SRC}/vendor" || die + + dobin bin/* +} |