Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/protobuf/
Date: Mon, 09 Mar 2020 19:29:53
Message-Id: 1583782002.098256fc39f8b0e3c9e36f6a124eef68fd33b0ac.floppym@gentoo
1 commit: 098256fc39f8b0e3c9e36f6a124eef68fd33b0ac
2 Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
3 AuthorDate: Mon Mar 9 16:43:58 2020 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 9 19:26:42 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=098256fc
7
8 dev-libs/protobuf: Version bump (3.11.4).
9
10 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache.Org>
11 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
12
13 dev-libs/protobuf/Manifest | 1 +
14 dev-libs/protobuf/protobuf-3.11.4.ebuild | 124 +++++++++++++++++++++++++++++++
15 2 files changed, 125 insertions(+)
16
17 diff --git a/dev-libs/protobuf/Manifest b/dev-libs/protobuf/Manifest
18 index 02aa678dff0..c969a7ba579 100644
19 --- a/dev-libs/protobuf/Manifest
20 +++ b/dev-libs/protobuf/Manifest
21 @@ -1,5 +1,6 @@
22 DIST protobuf-3.10.1.tar.gz 4905995 BLAKE2B 1dde3b6260918da8430c2ce69210462f339c492b2a4e53d5d9c1bea3747aead905370507fc4bd703560f6885c0f3f8393a998b875c19744ad94827109ecbb49f SHA512 aba0c4034c0d3b1759904adb6270eee94dd5dc568f433b219e3f1f70c0033993cdfa3bf476ad3f5767c7629edb9fd029c686405abf93731dde808286b336330d
23 DIST protobuf-3.11.2.tar.gz 5133897 BLAKE2B 275ea52a072b4e0226e4b6dc476d4bc28e8f4f05bca0709eab51da91c02869e96c3b0ac9ab4cc46290f875d4eac6ac72374c5b45e27fa89ad3d58fd56a2c8b7e SHA512 8319c1e003e5fc64e91b512de016ec1cf10265b294d3b4beea60856beaeb02b4d7682343c74b2c12b0f6d4d6258451af9b9d72bcb4b495293b7637da21030c8f
24 +DIST protobuf-3.11.4.tar.gz 5140799 BLAKE2B 97b450c0623593efe6a42b66582ff183344b8831689e6a5b4d36096dbd57c33da9569bbf26578536aaf73ecd866ac0588b6cb7d55a6a9b9a6e840d4c57099001 SHA512 777bbb0e9e2375eaebe6b8c87abd660bac70ee469c9ad00dd25917b82d7fb5bbe33cf87f0d69c90e19d55c07a7285ec20974ba4768623ce9ccfadf147fd5e261
25 DIST protobuf-3.8.0.tar.gz 4934577 BLAKE2B 4b86ab216e8a8b2c99c3620da9417c0562498e9d4dbf4957db186f51c62b0ed73b1322635a076b2d4054e015bdf6c8c50cc7fd0cb78d24a93b29d2a5b48f66fe SHA512 ba27c64e5193cd4a144bf0c9dc0d195fbbe6e580aaca01960362f0f185074588ca40046d3bcea76e1deae7508b722f6c5be484ea957122ae8e98229c7c3a4ad2
26 DIST protobuf-3.9.1.tar.gz 4947402 BLAKE2B c1e366438ca619044d84d7a75453c35b48d5f64867b7aaec78c04966d4e62223a8909a28be850156ce3d47f0e7f42e80a231ec5d814d2820e1edfa963d89e177 SHA512 9accb56c1aadef83bf27280e15a99809a3561cbd4b39d6605dec730cc112bf4fd2e9f1ac39127b32a1b87253e712be4b4f12afe4061a8f7be76266b3f4bca314
27 DIST protobuf-3.9.2.tar.gz 4947582 BLAKE2B ff0150970286d1eb452bd2f252fa8200617ddf491dcb3b9b60cebb36268c5a3072df3d24142ca9863306df6690f53ad4d4761c7846c677c4610716ec22e0838c SHA512 510349ddc59b4e53087b5247ca8784e9f852d66d755e1b014c6214e14c003f31dd336a724e9eb87a5b85a70e22793eb3211744c85a514b24b687346563717bec
28
29 diff --git a/dev-libs/protobuf/protobuf-3.11.4.ebuild b/dev-libs/protobuf/protobuf-3.11.4.ebuild
30 new file mode 100644
31 index 00000000000..5a6c0137d8a
32 --- /dev/null
33 +++ b/dev-libs/protobuf/protobuf-3.11.4.ebuild
34 @@ -0,0 +1,124 @@
35 +# Copyright 2008-2020 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI="7"
39 +
40 +inherit autotools elisp-common flag-o-matic multilib-minimal toolchain-funcs
41 +
42 +if [[ "${PV}" == "9999" ]]; then
43 + inherit git-r3
44 +
45 + EGIT_REPO_URI="https://github.com/protocolbuffers/protobuf"
46 + EGIT_SUBMODULES=()
47 +fi
48 +
49 +DESCRIPTION="Google's Protocol Buffers - Extensible mechanism for serializing structured data"
50 +HOMEPAGE="https://developers.google.com/protocol-buffers/ https://github.com/protocolbuffers/protobuf"
51 +if [[ "${PV}" == "9999" ]]; then
52 + SRC_URI=""
53 +else
54 + SRC_URI="https://github.com/protocolbuffers/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
55 +fi
56 +
57 +LICENSE="BSD"
58 +SLOT="0/22"
59 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
60 +IUSE="emacs examples static-libs test zlib"
61 +RESTRICT="!test? ( test )"
62 +
63 +BDEPEND="emacs? ( app-editors/emacs:* )"
64 +DEPEND="test? ( >=dev-cpp/gtest-1.9[${MULTILIB_USEDEP}] )
65 + zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )"
66 +RDEPEND="emacs? ( app-editors/emacs:* )
67 + zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )"
68 +
69 +PATCHES=(
70 + "${FILESDIR}/${PN}-3.11.0-disable_no-warning-test.patch"
71 + "${FILESDIR}/${PN}-3.11.0-system_libraries.patch"
72 + "${FILESDIR}/${PN}-3.11.0-protoc_input_output_files.patch"
73 +)
74 +
75 +DOCS=(CHANGES.txt CONTRIBUTORS.txt README.md)
76 +
77 +src_prepare() {
78 + default
79 + eautoreconf
80 +}
81 +
82 +src_configure() {
83 + append-cppflags -DGOOGLE_PROTOBUF_NO_RTTI
84 +
85 + if tc-ld-is-gold; then
86 + # https://sourceware.org/bugzilla/show_bug.cgi?id=24527
87 + tc-ld-disable-gold
88 + fi
89 +
90 + multilib-minimal_src_configure
91 +}
92 +
93 +multilib_src_configure() {
94 + local options=(
95 + $(use_enable static-libs static)
96 + $(use_with zlib)
97 + )
98 +
99 + if tc-is-cross-compiler; then
100 + # Build system uses protoc when building, so protoc copy runnable on host is needed.
101 + mkdir -p "${WORKDIR}/build" || die
102 + pushd "${WORKDIR}/build" > /dev/null || die
103 + ECONF_SOURCE="${S}" econf_build "${options[@]}"
104 + options+=(--with-protoc="$(pwd)/src/protoc")
105 + popd > /dev/null || die
106 + fi
107 +
108 + ECONF_SOURCE="${S}" econf "${options[@]}"
109 +}
110 +
111 +src_compile() {
112 + multilib-minimal_src_compile
113 +
114 + if use emacs; then
115 + elisp-compile editors/protobuf-mode.el
116 + fi
117 +}
118 +
119 +multilib_src_compile() {
120 + if tc-is-cross-compiler; then
121 + emake -C "${WORKDIR}/build/src" protoc
122 + fi
123 +
124 + default
125 +}
126 +
127 +multilib_src_test() {
128 + emake check
129 +}
130 +
131 +multilib_src_install_all() {
132 + find "${D}" -name "*.la" -type f -delete || die
133 +
134 + insinto /usr/share/vim/vimfiles/syntax
135 + doins editors/proto.vim
136 + insinto /usr/share/vim/vimfiles/ftdetect
137 + doins "${FILESDIR}/proto.vim"
138 +
139 + if use emacs; then
140 + elisp-install ${PN} editors/protobuf-mode.el*
141 + elisp-site-file-install "${FILESDIR}/70${PN}-gentoo.el"
142 + fi
143 +
144 + if use examples; then
145 + DOCS+=(examples)
146 + docompress -x /usr/share/doc/${PF}/examples
147 + fi
148 +
149 + einstalldocs
150 +}
151 +
152 +pkg_postinst() {
153 + use emacs && elisp-site-regen
154 +}
155 +
156 +pkg_postrm() {
157 + use emacs && elisp-site-regen
158 +}