-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bump protobuf-python-3.12.4 update esphome-9999
- Loading branch information
Showing
7 changed files
with
203 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
# Copyright 2008-2020 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI="7" | ||
|
||
inherit autotools elisp-common flag-o-matic multilib-minimal toolchain-funcs | ||
|
||
if [[ "${PV}" == "9999" ]]; then | ||
inherit git-r3 | ||
|
||
EGIT_REPO_URI="https://github.com/protocolbuffers/protobuf" | ||
EGIT_SUBMODULES=() | ||
fi | ||
|
||
DESCRIPTION="Google's Protocol Buffers - Extensible mechanism for serializing structured data" | ||
HOMEPAGE="https://developers.google.com/protocol-buffers/ https://github.com/protocolbuffers/protobuf" | ||
if [[ "${PV}" == "9999" ]]; then | ||
SRC_URI="" | ||
else | ||
SRC_URI="https://github.com/protocolbuffers/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" | ||
fi | ||
|
||
LICENSE="BSD" | ||
SLOT="0/23" | ||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" | ||
IUSE="emacs examples static-libs test zlib" | ||
RESTRICT="!test? ( test )" | ||
|
||
BDEPEND="emacs? ( app-editors/emacs:* )" | ||
DEPEND="test? ( >=dev-cpp/gtest-1.9[${MULTILIB_USEDEP}] ) | ||
zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )" | ||
RDEPEND="emacs? ( app-editors/emacs:* ) | ||
zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )" | ||
|
||
PATCHES=( | ||
"${FILESDIR}/${PN}-3.12.0-disable_no-warning-test.patch" | ||
"${FILESDIR}/${PN}-3.12.0-system_libraries.patch" | ||
"${FILESDIR}/${PN}-3.12.0-protoc_input_output_files.patch" | ||
) | ||
|
||
DOCS=(CHANGES.txt CONTRIBUTORS.txt README.md) | ||
|
||
src_prepare() { | ||
default | ||
|
||
# https://github.com/protocolbuffers/protobuf/issues/7413 | ||
sed -e "/^AC_PROG_CXX_FOR_BUILD$/d" -i configure.ac || die | ||
|
||
eautoreconf | ||
} | ||
|
||
src_configure() { | ||
append-cppflags -DGOOGLE_PROTOBUF_NO_RTTI | ||
|
||
if tc-ld-is-gold; then | ||
# https://sourceware.org/bugzilla/show_bug.cgi?id=24527 | ||
tc-ld-disable-gold | ||
fi | ||
|
||
multilib-minimal_src_configure | ||
} | ||
|
||
multilib_src_configure() { | ||
local options=( | ||
$(use_enable static-libs static) | ||
$(use_with zlib) | ||
) | ||
|
||
if tc-is-cross-compiler; then | ||
# Build system uses protoc when building, so protoc copy runnable on host is needed. | ||
mkdir -p "${WORKDIR}/build" || die | ||
pushd "${WORKDIR}/build" > /dev/null || die | ||
ECONF_SOURCE="${S}" econf_build "${options[@]}" | ||
options+=(--with-protoc="$(pwd)/src/protoc") | ||
popd > /dev/null || die | ||
fi | ||
|
||
ECONF_SOURCE="${S}" econf "${options[@]}" | ||
} | ||
|
||
src_compile() { | ||
multilib-minimal_src_compile | ||
|
||
if use emacs; then | ||
elisp-compile editors/protobuf-mode.el | ||
fi | ||
} | ||
|
||
multilib_src_compile() { | ||
if tc-is-cross-compiler; then | ||
emake -C "${WORKDIR}/build/src" protoc | ||
fi | ||
|
||
default | ||
} | ||
|
||
multilib_src_test() { | ||
emake check | ||
} | ||
|
||
multilib_src_install_all() { | ||
find "${D}" -name "*.la" -type f -delete || die | ||
|
||
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
DIST protobuf-3.10.0.tar.gz 4908907 BLAKE2B 53a702a2cbfe7e642989eec010541fda434b7b8bbd267e3b65fc569a0ab33b08438c1a81d478426ebfbec6e330b90428e3da4fd345b8b64f890a6b3f4e360883 SHA512 0dcba6d21486fdc162f57119754b47b4a2fb605af878d5b96a32df55895321535cffb5b804566fd90ee7c36e20106d0cd4f5d9f3c652dc9c4dfca96be41a1977 | ||
DIST protobuf-3.12.4.tar.gz 5310348 BLAKE2B 2630941672963165467221843c10079a0ed966f2fdfcbc970b0b41e1ed3c7f78734496c1fbd3ec509c68999a14f637fff267b309cf82a8acf2bb5a948484f79b SHA512 c5d24502b9a6be0a606a19213186fe462e0de6830547003636f0897781f36d0bd7e4e7d9689d96390a0399ce04b6438cda3a0fe6f97f0feb700a110e90beef0c | ||
DIST protobuf-3.7.0.tar.gz 4784675 BLAKE2B cb65f3384c7b0f015ab48081764ee9e01ad4bcffdb4903025774d95626f804fb9f72532371cc090de2b2e86c4bb0eb8f618d1cf8ff4d9c54d281c45a43b1cd8b SHA512 c570ece1d42706982dd87f601af6b3dd1d788d1b150b543190d10d2f070c67f0d006726ec4eafd3b9234a679e7ef77ac9d97749414f53f619287a1f23a0b739c | ||
EBUILD protobuf-python-3.10.0-r1.ebuild 1242 BLAKE2B cf5d2a2a9695ba3fd023cabd65cd1169dcb8d7e34341be7cbf3d2fe669f442eec7a71031c5a84a5b6fc07e06135740fa760cf97ed5762ffda8977f31fbb0e1f0 SHA512 956cc0cc8d1085d7f7359df371746d55f4ba113cd2c19db212c67c9fd4107b6f8a37e4ef28962c040b848e830b7076908448185c669e176194aa39ec475621c2 | ||
EBUILD protobuf-python-3.10.0.ebuild 1251 BLAKE2B b6f268d86c2596a1357a898472c28b28cac90a9ee5bf4cf6761aa7d291fd084efd31aaf793873c29c6a38ae61fff2bf161106dd55122651d29112788d7b41b9b SHA512 8d8554b92cc4b958be7a071b9a8513f32bbe817dfbd7eefab98745cd839ae7d9d4306a8718d88af42edb2f1623bfaf117f19cfa71152791e1a3eb04535909c24 | ||
EBUILD protobuf-python-3.12.4.ebuild 1559 BLAKE2B cbf8fe7187083fcd94ae6cd1b91dfeecc2462e1a863bf7b227569fb6433de9ac2288017de69747b703f6b7ba339910a59105409f5bb1623d6a34bdbec4e15a70 SHA512 af881934dca2db4fbcd4834621f7e218ab94d33e500f5e3874b014114b43d8fe46c3b40ce5bdce20f1844e8d30853788b56814d32c2dc7e1c539fa7330b917c1 | ||
EBUILD protobuf-python-3.7.0.ebuild 1251 BLAKE2B b6f268d86c2596a1357a898472c28b28cac90a9ee5bf4cf6761aa7d291fd084efd31aaf793873c29c6a38ae61fff2bf161106dd55122651d29112788d7b41b9b SHA512 8d8554b92cc4b958be7a071b9a8513f32bbe817dfbd7eefab98745cd839ae7d9d4306a8718d88af42edb2f1623bfaf117f19cfa71152791e1a3eb04535909c24 | ||
MISC metadata.xml 656 BLAKE2B e63db63e247b105b51b506a404d8edc821cc0ccc276a3f813df3b06951184218e736e57b577ad2f64880250c55ef09c50a9fe04428f7cec02fb04293c337175a SHA512 5d747585e025672d423690fa2d8df09380a1714c2e0adad5838a41f099e3984b70c7f80c5873ea296101898cd92dea70edee964bf01b9d86acb9a1d0140169fd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Copyright 2008-2020 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI="7" | ||
PYTHON_COMPAT=(python{2_7,3_{6..9}}) | ||
DISTUTILS_USE_SETUPTOOLS="manual" | ||
|
||
inherit distutils-r1 | ||
|
||
if [[ "${PV}" == "9999" ]]; then | ||
inherit git-r3 | ||
|
||
EGIT_REPO_URI="https://github.com/protocolbuffers/protobuf" | ||
EGIT_SUBMODULES=() | ||
fi | ||
|
||
DESCRIPTION="Google's Protocol Buffers - Python bindings" | ||
HOMEPAGE="https://developers.google.com/protocol-buffers/ https://github.com/protocolbuffers/protobuf" | ||
if [[ "${PV}" == "9999" ]]; then | ||
SRC_URI="" | ||
else | ||
SRC_URI="https://github.com/protocolbuffers/protobuf/archive/v${PV}.tar.gz -> protobuf-${PV}.tar.gz" | ||
fi | ||
|
||
LICENSE="BSD" | ||
SLOT="0/23" | ||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" | ||
IUSE="" | ||
|
||
BDEPEND="${PYTHON_DEPS} | ||
~dev-libs/protobuf-${PV} | ||
dev-python/namespace-google[${PYTHON_USEDEP}] | ||
dev-python/setuptools[${PYTHON_USEDEP}] | ||
dev-python/six[${PYTHON_USEDEP}]" | ||
DEPEND="${PYTHON_DEPS} | ||
~dev-libs/protobuf-${PV}" | ||
RDEPEND="${BDEPEND} | ||
!<dev-libs/protobuf-3[python(-)]" | ||
|
||
S="${WORKDIR}/protobuf-${PV}/python" | ||
|
||
if [[ "${PV}" == "9999" ]]; then | ||
EGIT_CHECKOUT_DIR="${WORKDIR}/protobuf-${PV}" | ||
fi | ||
|
||
python_configure_all() { | ||
mydistutilsargs=(--cpp_implementation) | ||
} | ||
|
||
python_compile() { | ||
python_is_python3 || local -x CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" | ||
distutils-r1_python_compile | ||
} | ||
|
||
python_test() { | ||
esetup.py test | ||
} | ||
|
||
python_install_all() { | ||
distutils-r1_python_install_all | ||
|
||
find "${D}" -name "*.pth" -type f -delete || die | ||
} |