dev-libs/protobuf: add 25.1
Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
parent
55d59e0d19
commit
5757513e34
@ -612,14 +612,14 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E
|
||||
|
||||
## Licenses
|
||||
This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted.
|
||||
There are 1756 Ebuilds in total, 1745 of them have in total 1766 (43 different) licenses assigned.
|
||||
There are 1758 Ebuilds in total, 1747 of them have in total 1768 (43 different) licenses assigned.
|
||||
|
||||
|License| Ebuilds using it|
|
||||
|-------|-----|
|
||||
|MIT|1027|
|
||||
|Apache-2.0|368|
|
||||
|GPL-3|106|
|
||||
|BSD|97|
|
||||
|BSD|99|
|
||||
|GPL-2|24|
|
||||
|LGPL-3|24|
|
||||
|all-rights-reserved|15|
|
||||
|
@ -3,6 +3,8 @@ AUX proto.vim 49 BLAKE2B 9b6d31105811a8f8cbcf76328172fda5b66b33351bb16573ed1ed08
|
||||
AUX protobuf-23.3-static_assert-failure.patch 529 BLAKE2B 69452cf44106fdd7295bbb8d97011309c160f51fb30c233b9549d955d57c0a188b407b97ea7de7dc708a145bf76d5f15f1332bf641541a8830db96705a071701 SHA512 291d8cd318a0324e58c5dc83273ca67b55fd1446bd5111e3caaa9e2b08e3a2565de8030050df6555f300f7051668f5b8918e52009f826a653bb70f9931f12ebd
|
||||
DIST protobuf-24.2.tar.gz 5179130 BLAKE2B a1e3da4e95072391fa4abf671a9eb77806f1b3864219e1e0c024156558e2ecd9e3cabee367efaf15626a199ae413dced3f29f601820611d37dd733c92ffc06c0 SHA512 fee9f5fc0e615e49347320e37b560112f43d13c63050701e25b3348e9d4aa59e80c7d810f7da12764b1b9eeee8efa35be7743c5ebbb0a12c78f5924f1544c356
|
||||
DIST protobuf-24.3.tar.gz 5179711 BLAKE2B 9473a1a9489d4cb92fb7ee56ac51a891cd6de005607be3f5a385957318045d2d8e6bdaa9ffa3c3f88d376b1d9a499ba9560054ae87fe031afffb62b3292ef365 SHA512 2c1a381f81bb2c0afa3a2ff6681f9f37bc7aef3a3882c371eea7284f4e9524c2a0c834de6c7f681706890eee2220a42442367b8f8dc8370f182fab9e2c37cfd2
|
||||
DIST protobuf-25.1.tar.gz 5878124 BLAKE2B a0b917e4518b07b221afd01e801e45b5b6fa35c7ccf8c21120d6a63f7174e53cc37d0516b1802d9243f8bb37b72b7f460a36dcbf0fffb09e011b05315c53efc3 SHA512 d2fad2188118ced2cd951bdb472d72cc9e9b2158c88eeca652c76332a884b5b5b4b58628f7777272fa693140753823584ea9c7924f1655b1d5a363f59bdf7a4c
|
||||
EBUILD protobuf-24.2.ebuild 2499 BLAKE2B 4e1d51a51da61899f42ba0394729a396ca0927614e072eba696138a56f871ea944bd63dedb4ae196ea8420850bc2b7ccb9e13cc12020fb705a375fd5e56fdb9a SHA512 e18597497fca2b5860c314fc55aed0c172758b6c24922433b1bcd9388ad24db8164c52fef4212840d3b5c761f99bb7a13ee40cb7466f5a5a7635d760be444aa8
|
||||
EBUILD protobuf-24.3.ebuild 2525 BLAKE2B d4bd6b69eaf5aa035ba4afe4e7e1c9f58abd509856c290ad3b14a7bcc172fecc86b9d59de047ff68b4264069e812547f2aa0169172aa4bdedbf556a69924ea8a SHA512 fe67a44b14c1872ddba198aaf08c7417658d003e4df1f7e5a7f6a11efe668b10e606352dd1e672ed14a1527aa67fc037c53ee26126e918cef75bb8df56b9d2ce
|
||||
EBUILD protobuf-25.1.ebuild 2525 BLAKE2B d4bd6b69eaf5aa035ba4afe4e7e1c9f58abd509856c290ad3b14a7bcc172fecc86b9d59de047ff68b4264069e812547f2aa0169172aa4bdedbf556a69924ea8a SHA512 fe67a44b14c1872ddba198aaf08c7417658d003e4df1f7e5a7f6a11efe668b10e606352dd1e672ed14a1527aa67fc037c53ee26126e918cef75bb8df56b9d2ce
|
||||
MISC metadata.xml 595 BLAKE2B ba1b916e26b1e53f68e660f03d2e53fea8d22db04e8241ebec3ec20fbb251c2b164cf25d5fb6118423ce7721a822ae2302aab137b0748730e9a6860bf8e65668 SHA512 785e2550621b79b6350e1a6b52ed9992610769885fb29a9e92ee45a35158cc08707a3590dfcbece9ee9a5e16e1abfb614e8186132da7b942f2761b5e6ecfa827
|
||||
|
107
dev-libs/protobuf/protobuf-25.1.ebuild
Normal file
107
dev-libs/protobuf/protobuf-25.1.ebuild
Normal file
@ -0,0 +1,107 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake-multilib elisp-common toolchain-funcs
|
||||
|
||||
if [[ "${PV}" == *9999 ]]; then
|
||||
inherit git-r3
|
||||
|
||||
EGIT_REPO_URI="https://github.com/protocolbuffers/protobuf.git"
|
||||
EGIT_SUBMODULES=()
|
||||
else
|
||||
SRC_URI="https://github.com/protocolbuffers/protobuf/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="amd64 arm arm64 x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Google's Protocol Buffers - Extensible mechanism for serializing structured data"
|
||||
HOMEPAGE="https://protobuf.dev/"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/$(ver_cut 1-2).0"
|
||||
IUSE="emacs examples test zlib"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="emacs? ( app-editors/emacs:* )"
|
||||
DEPEND="
|
||||
>=dev-cpp/abseil-cpp-20230125.3:=[${MULTILIB_USEDEP}]
|
||||
zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )
|
||||
test? ( >=dev-cpp/gtest-1.9[${MULTILIB_USEDEP}] )
|
||||
"
|
||||
RDEPEND="
|
||||
>=dev-cpp/abseil-cpp-20230125.3:=[${MULTILIB_USEDEP}]
|
||||
emacs? ( app-editors/emacs:* )
|
||||
zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-23.3-static_assert-failure.patch"
|
||||
)
|
||||
|
||||
DOCS=( CONTRIBUTORS.txt README.md )
|
||||
|
||||
src_configure() {
|
||||
if tc-ld-is-gold; then
|
||||
# https://sourceware.org/bugzilla/show_bug.cgi?id=24527
|
||||
tc-ld-disable-gold
|
||||
fi
|
||||
|
||||
cmake-multilib_src_configure
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local mycmakeargs=(
|
||||
-Dprotobuf_DISABLE_RTTI=ON
|
||||
-Dprotobuf_BUILD_EXAMPLES=$(usex examples)
|
||||
-Dprotobuf_WITH_ZLIB=$(usex zlib)
|
||||
-Dprotobuf_BUILD_TESTS=$(usex test)
|
||||
-Dprotobuf_ABSL_PROVIDER=package
|
||||
)
|
||||
use test && mycmakeargs+=(-Dprotobuf_USE_EXTERNAL_GTEST=ON)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake-multilib_src_compile
|
||||
|
||||
if use emacs; then
|
||||
elisp-compile editors/protobuf-mode.el
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
find "${ED}" -name "*.la" -delete || die
|
||||
|
||||
if [[ ! -f "${ED}/usr/$(get_libdir)/libprotobuf.so.${SLOT#*/}" ]]; then
|
||||
eerror "No matching library found with SLOT variable, currently set: ${SLOT}\n" \
|
||||
"Expected value: ${ED}/usr/$(get_libdir)/libprotobuf.so.${SLOT#*/}"
|
||||
die "Please update SLOT variable"
|
||||
fi
|
||||
|
||||
insinto /usr/share/vim/vimfiles/syntax
|
||||
doins editors/proto.vim
|
||||
insinto /usr/share/vim/vimfiles/ftdetect
|
||||
doins "${FILESDIR}/proto.vim"
|
||||
|
||||
if use emacs; then
|
||||
elisp-install ${PN} editors/protobuf-mode.el*
|
||||
elisp-site-file-install "${FILESDIR}/70${PN}-gentoo.el"
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
DOCS+=(examples)
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user