mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-02 19:11:20 +02:00
bump(dev-libs/protobuf): sync with upstream
This commit is contained in:
parent
128ea8d1f8
commit
52ae64584a
@ -1,20 +1,3 @@
|
|||||||
AUX 70protobuf-gentoo.el 170 SHA256 b6e5c2f11a63f9eb4a9382227ce8f41bfcf23213166d2fb212e21e237b2f264d SHA512 ed73cd6b1bf6c0019e4da73c3a480b0f917e949dfad2696336e805263c81610b2a8a0514840e389db0f0e78252cf053d754c5e07731dc5e9c93c9e88f0b2923c WHIRLPOOL aeffdec54d947cc219058a1efbe54898b2917947f07cd2249064593542b51e3c772a584106365d57dd9ea7fdf078bea388f6ff73ff857cabefa04aabda07495d
|
DIST protobuf-3.4.1.tar.gz 4490100 BLAKE2B e2bc1ef2ee1a0af44830b3c65a6c9e73883fe6ec0d07f6a6136f5564f0e85306005440ca6f8c4eb834c7c70f909792c9e2457a761f10f95431981263a9acd7a3 SHA512 471e52198fa878a79183dc8fbc39d9c65239be4d9dff799e12281ee9b1af61a427584534b1baae1773bc6e4c86467f89ca2e7911a21effd86bc5f40cc7d94c34
|
||||||
AUX proto.vim 49 SHA256 17e7773363e3f5469c717e4173a6f6fa959a6bb30c6ee71f3bdeee159ee5b784 SHA512 65c1f49887c17973d1dfce07fa86d04c5079d2382826eaeb22e128570717f181c53d22ba50905252021f7e476a90ecd29f9d18799c1ccea64b01f4638323538e WHIRLPOOL 79c1fb6392c0a04fc6a4aec40c983b43f2eb2a3bd5cf807d37fa65b15191b6839a2c9cc182f9f05b7f2873e6689559f634d51c7db5f837d683d5411ecd50a43a
|
DIST protobuf-3.5.1.1.tar.gz 4584489 BLAKE2B 995ee2f06a6358e9935b488269ee50f0dccede417c1757828b0108fbe8c67034301f3a9cb87517430acd9838ae71bb677f4edd8b59b2418f99c15d8ea3d33591 SHA512 f25ecf772facc8efd196b7c06012ce9ec24152b2c0cde38ed2e29ecded8f534221b008e649f4cbd991436ad3436130cd2e31d51e75019d08240d518111fb4496
|
||||||
AUX protobuf-2.3.0-asneeded-2.patch 705 SHA256 558ea98a54e544919837f88d133b8887ad5101b4493a62737d3cea94ae58464c SHA512 2f9d047ac64ac19bab2a793990de5070ac24604bf81622520a1f9b2e86aecbd125c9cba5b62bc7e296ecc3724069dbd9b07f7d7292be280403fc37af5c52cccf WHIRLPOOL 0b943cdda7feac71d394a9e72bdcbe1dfc3d7efb390496244cf511cbd1468b4b11d9f42501a62fe02b2fab7b4bf0867eb5739cb02af8d4777d22fe781ccd841e
|
DIST protobuf-3.5.2.tar.gz 4584659 BLAKE2B f582212169d802a5844574eb900c9f8cbb343b7e73f2074e5ff0bfc544ebd13f4bc2b78271fb70f4465d78fdc39972ed68339f453c0d3ffe98d8564fbf520544 SHA512 09d10cf0c07a0ba249428bbf20f5dbed840965fa06b3c09682f286a4dee9d84bb96f3b5b50e993d48ef1f20440531255ce7d0e60a648bf3fe536a5f2b0b74181
|
||||||
AUX protobuf-2.5.0-emacs-24.4.patch 294 SHA256 3a60bcd371afe270d3c21cb4ebddb272bd9cf25a281fc0abb03c5981d94f0c07 SHA512 fbf5a44753ea40732decb5b5bf94355f741223cb8d5d09e166b333d4d857340dc937bb5176591645a737ddb3d04203d95462e128655c7236195fe8c1c6e8ef21 WHIRLPOOL 634b0afd5195efa1ddb6f395fd25a20ed0e43faa54e3c0674a18231bc76d0f1d039cce37a94924244722815ad5f8aba3ec0384017d4e43f0ef59cf15eaaa0ba6
|
|
||||||
AUX protobuf-2.5.0-x32.patch 677 SHA256 8a4378b5b84cf1b91e88344eead7c3e8f3ae848540e7a850bff48994704e8752 SHA512 fa28941ff21785505f616e4da4be964e18de5d52a25224059431054ad7853693ca4281819d690e76eb4064d9d7b729eb1ad10388d43d437b975e62b66f5de1bc WHIRLPOOL 2ae6b2dd9c6d9f63ae2d8caa630e4720d66a30ac3e21bf135f10d4b567a08fecd8757b575a749a95050c6b673b787c09b18f48452cc7d0eaa019b8aa5903d3d4
|
|
||||||
AUX protobuf-2.6.1-protoc-cmdline.patch 11184 SHA256 c931fcf5b0484d41465e9bc11598379fcdc85d58a882ea209795e5858b5fb4b4 SHA512 17855acd577412866e6e0a515e4dd754ae5aa9e75a9fdd44bb80f4061b28bda1bee5a45671819021ac1487852c20e2404f79ef13b711140cf204cbfb6142ad36 WHIRLPOOL 310f58414cc6ae642d19e29dedce7c6f2d6ae3e0962d526b7421ccf37078372ad046b29206336794898c9ee8f22cc08f0b441db44538174ef19ba50c45513af9
|
|
||||||
AUX protobuf-3.0.0_beta2-disable-local-gmock.patch 4699 SHA256 f27eb9760dd4b16010162cd5d762c97dd181a4c7c9695042c5747629010fb850 SHA512 643a7bed7125ef3e4fc870dd3fc87bfe1effa0f03703ad13c6070b7ea982cca0dd0fc871f9671d045d1d22a7f768a612c2a0b63d6b142d753fbc3a3401e04495 WHIRLPOOL 5c71c15d82c6e7e5120a2307e656f0d27a5bb3b87ab4811064fe84dbf6820e4c355d1ad9f3784b16e320f2ece72598ebdf6cf6218d5f21b3ee1c5d8d459283a3
|
|
||||||
DIST protobuf-2.5.0.tar.bz2 1866763 SHA256 13bfc5ae543cf3aa180ac2485c0bc89495e3ae711fc6fab4f8ffe90dfb4bb677 SHA512 5994b3669808b82fef5c860ecad36358c0767f84acac877e7bfcf722e59d972835a955714149bdd4158fbd1328a51d01397a563991d26475351ee72be48142ee WHIRLPOOL 7e6786e1f20bf253d0e386a95c2bbfe1b443f484d492f97552cadcea62c24461436aa88130e3ff20b4dc9f352c101458cb8c03686f1cc4e6e2133b6e78f5b70d
|
|
||||||
DIST protobuf-2.6.1.tar.bz2 2021416 SHA256 ee445612d544d885ae240ffbcbf9267faa9f593b7b101f21d58beceb92661910 SHA512 8b092b87fcd79223db199cd3d330f3d43689b47f345aa4e34028dcf1680d609a5d5a89ab08588e817b566d3b265834c38f1db580bc1c144b512ce74d35f2a174 WHIRLPOOL b8d7f5e6b85670520435fd1107eb67035c822c2dad9689dadc29754de3bf8076ac256cf3fe3e719e99c0ccb03ed78edecb91afbe96b611073b60ae3fb3f29b1a
|
|
||||||
DIST protobuf-3.0.0_beta3_p1.tar.gz 3673779 SHA256 494726c9a6a45a20cd085795a26e4f05627e9b3b1fa5ab21a8b0edc5db8173dc SHA512 bebe655ffa6f8dd9bfbf4d2fcce160de6d45f50fd802b8907833cde3f232b7b44186d06fe9cc01ed5dc7b4a040fd3069e2ec7d2704da596e8d3af80f8dba7e8b WHIRLPOOL d35dca8e402741e4d30c9c787f5927c7fe7f22619ddb3ca20d302c27fbeb929cecd55cc7e6785b28acb76c89893d2baf7fce3f685a3f186006e1e30a2901ae1b
|
|
||||||
DIST protobuf-3.0.2.tar.gz 3917853 SHA256 b700647e11556b643ccddffd1f41d8cb7704ed02090af54cc517d44d912d11c1 SHA512 28eb8814555b0fe2cd57da6caf46802697a9612fccb3bba3ae7a379352437f81a18c1f6ab7242a22abea59c1ff9b06dcb6e2b52a97aa1a15cea6485ffc3c10c2 WHIRLPOOL 5c70def13be5e61d9405a24fdfc1efe9caee0b63c87f74e12f3d121801ecdc410e142eab80d8d4b49ebfe0c4f3cd13b2d77a17ec303978fec317265991a1f5a8
|
|
||||||
DIST protobuf-3.1.0.tar.gz 4051503 SHA256 0a0ae63cbffc274efb573bdde9a253e3f32e458c41261df51c5dbc5ad541e8f7 SHA512 8d3289a16944c255bd1cceab696e515e52467f2bfe1cc10f6b32fabdf082d5acdc248ec9cadc572223a24d04d431f75921076153109cea2f90ee533f502ab47a WHIRLPOOL b8a0bee9ff549c8da45c2b56b12aafbed5807959cdb11b3888a0f30fd0d6df83a72f3c6ef9e266522754b8901792f65235a6e81a8b0f74cee15d59ecbe6dee68
|
|
||||||
EBUILD protobuf-2.5.0-r2.ebuild 3198 SHA256 d2a52d7a7dea83838ba1873a106ba3d71db8e0bfa3570ea5629c0e8bec2ceaed SHA512 27a1dd36065d6d731b9a8676e7f392d5997bb4549887b0097981ba379d627948883622aef7c0baab6bc4c085038e89dc870d60eab8e676915e8ced177eaeb855 WHIRLPOOL a27810dcea41074db306f15d78481cb6772bf70d0a915a9ebf40bef8ea4ba088227cc8a812e1b288b4a06496764ec8bff5d9904a879d7e374d281e9e47d4b9d1
|
|
||||||
EBUILD protobuf-2.6.1-r3.ebuild 4034 SHA256 93d810324aa20da32fb4d0b9a005432993f36817013da93cf844d4e76312a172 SHA512 4e4e5fd908af8d206de76fbe3300e6aabe84dcd25508cdf96a47bc8f2a077a4cc94adbf2e798cb66c683abacfe0b6cb5325572353782680b8754cb730b9eaef3 WHIRLPOOL 9dc940c302f3d14f12788104c5dc1cf12fd7dc4fe71bafbc2a2ea60ba8ba11febb030d69b517be0f7113de38187df66beab9e6f9351b29138be5700790ff8910
|
|
||||||
EBUILD protobuf-3.0.0_beta3_p1.ebuild 2982 SHA256 ac08d7dfb3fbebbf37a786d00fcd9c4b989c0bbd9140551bdeb0d18495657e1d SHA512 d38575c0e143f7390efda1407cbc879c828090074abee652c21a5fd34047d8e8a0c41dc07796dc0d8ed13f8623d1a8171493574c8b90f1b853ed704b9a366d25 WHIRLPOOL b63c15e1cbc8230f9bcfa83e9f60a0516439936e93efd91d54be18a95dde248e821bce5090c94d90cfd82fb0c7a70a2f27bf0f07f02f7ee745e62de78bc32d91
|
|
||||||
EBUILD protobuf-3.0.2.ebuild 3076 SHA256 3d137d382a367bf465aae880e71b5116e47a94e2bf880c4152460e6b30aacfbc SHA512 814c749c7d3c9cf875a7332f224971522a390618be6c63c39747b0bd4a661a27dc625c57066c91d9ff47b5263702f9a2d9159262a308c207a86d86f309995b3c WHIRLPOOL 3ceaf065a08a6092586a115b6bb53cc002cb3fda0b1563ad2d233f99d6ea20c2af094dec10d134371b48752d2250e390d0eb4e0c4f432ce7f97a010867b25af2
|
|
||||||
EBUILD protobuf-3.1.0.ebuild 3032 SHA256 f6ddf4387d5dd8775cd818e3256b441cb58b5915ac8a313f99ffebf14b0c5f29 SHA512 4eb3d45d6b5e509cd7b194ba7b435dff06e5c2455793880b9207826c0a706498c63ae4b5ecfd01dbd11da38507dd67016ae089bf44f5ea3e2eb80c9731d6e001 WHIRLPOOL c421ecf91a07f459f462f155d1f274cea8da4c4f93d792b8687812c9d1e20178777aa639084fc3f35e08ab2ebeadf9ed102901f880fa0763c61173c0d4822666
|
|
||||||
MISC ChangeLog 5750 SHA256 aa2c6bcb54e89eded01c2f1fcc419617072e4dc5b3bbc18d3d96490b3d83ce2a SHA512 e200bc26b4dfd01d8f6cbb355b378932a3ceb6d85dd28662d8d5ab6ee4c92153fb49c1763a7b1a6cd2296f5c1e9dd8a32a01f8fec4e979807cb35b6b9bec38ed WHIRLPOOL 0a8e637ec68eae6404559f8d88e8143bc0268caa70cc95ac3c0813fc186182de3d15082872ca75ef39db5b1289946f4bafff148cd2766f3a06c9fe3e4454c24a
|
|
||||||
MISC ChangeLog-2015 13240 SHA256 ba184b4a6f9e3d2231f7939ce8b956470a1a556905e6ac92a5403642544499e8 SHA512 844b741943eee059259f8388c2a31f77b74cdc3e8e8bd1d31c58d735173986efe0cba05741558b02322e206783f7a56d2f2dd19523c315bcb5b6f6f4fdd8b4e7 WHIRLPOOL d8e4bc2eec0fbfd1b90622fe393f452bf889d6ec356dd5591ce944ea32ca71c4e116d715f261ca2b025e558604e07b82f3e7cda790fa1b5a7ae6b03c2c89da38
|
|
||||||
MISC metadata.xml 774 SHA256 819582fd2dfcdc8f671c0f1e7b1148f2304d6221ebb6dd97fcd544c0717db864 SHA512 add1dd908a3d01878e82aba51fb307f01a92357f2d1cbc15b42ba95571cca3b34f59368da0007619f4ef22396f30eee11ec37b8d97af5839fc334356b1e13d51 WHIRLPOOL 01cfa7dee8ea985088ea2172ee04af77dc6841cb27dae85001382142f63f85e04170ce286c234be34473e40d60013ccb77a4ac1070257cf9b3627b06837ff1d2
|
|
||||||
|
@ -1,28 +0,0 @@
|
|||||||
Fixing as-needed issue
|
|
||||||
|
|
||||||
http://bugs.gentoo.org/show_bug.cgi?id=271509
|
|
||||||
|
|
||||||
--- m4/acx_pthread.m4
|
|
||||||
+++ m4/acx_pthread.m4
|
|
||||||
@@ -278,7 +278,8 @@
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
- if test x"$done" = xno; then
|
|
||||||
+ if test x"$done" = xyes; then
|
|
||||||
+ done="no"
|
|
||||||
AC_MSG_CHECKING([whether -pthread is sufficient with -shared])
|
|
||||||
AC_TRY_LINK([#include <pthread.h>],
|
|
||||||
[pthread_t th; pthread_join(th, 0);
|
|
||||||
--- gtest/m4/acx_pthread.m4
|
|
||||||
+++ gtest/m4/acx_pthread.m4
|
|
||||||
@@ -278,7 +278,8 @@
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
- if test x"$done" = xno; then
|
|
||||||
+ if test x"$done" = xyes; then
|
|
||||||
+ done="no"
|
|
||||||
AC_MSG_CHECKING([whether -pthread is sufficient with -shared])
|
|
||||||
AC_TRY_LINK([#include <pthread.h>],
|
|
||||||
[pthread_t th; pthread_join(th, 0);
|
|
@ -1,14 +0,0 @@
|
|||||||
Fix build with emacs-24.4.
|
|
||||||
|
|
||||||
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18845
|
|
||||||
|
|
||||||
--- protobuf-2.5.0/editors/protobuf-mode.el
|
|
||||||
+++ protobuf-2.5.0/editors/protobuf-mode.el
|
|
||||||
@@ -66,6 +66,7 @@
|
|
||||||
(require 'cc-mode)
|
|
||||||
|
|
||||||
(eval-when-compile
|
|
||||||
+ (require 'cl)
|
|
||||||
(require 'cc-langs)
|
|
||||||
(require 'cc-fonts))
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
|||||||
fix from upstream for building w/x32
|
|
||||||
|
|
||||||
https://code.google.com/p/protobuf/issues/detail?id=474
|
|
||||||
|
|
||||||
--- src/google/protobuf/stubs/atomicops.h (revision 491)
|
|
||||||
+++ src/google/protobuf/stubs/atomicops.h (revision 492)
|
|
||||||
@@ -66,7 +66,7 @@ typedef int32 Atomic32;
|
|
||||||
#ifdef GOOGLE_PROTOBUF_ARCH_64_BIT
|
|
||||||
// We need to be able to go between Atomic64 and AtomicWord implicitly. This
|
|
||||||
// means Atomic64 and AtomicWord should be the same type on 64-bit.
|
|
||||||
-#if defined(GOOGLE_PROTOBUF_OS_NACL)
|
|
||||||
+#if defined(__ILP32__) || defined(GOOGLE_PROTOBUF_OS_NACL)
|
|
||||||
// NaCl's intptr_t is not actually 64-bits on 64-bit!
|
|
||||||
// http://code.google.com/p/nativeclient/issues/detail?id=1162
|
|
||||||
typedef int64 Atomic64;
|
|
@ -1,89 +0,0 @@
|
|||||||
diff -Naur a/configure.ac b/configure.ac
|
|
||||||
--- a/configure.ac 2015-12-30 22:21:46.000000000 +0100
|
|
||||||
+++ b/configure.ac 2016-04-16 17:46:54.858904639 +0200
|
|
||||||
@@ -176,9 +176,9 @@
|
|
||||||
# HACK: Make gmock's configure script pick up our copy of CFLAGS and CXXFLAGS,
|
|
||||||
# since the flags added by ACX_CHECK_SUNCC must be used when compiling gmock
|
|
||||||
# too.
|
|
||||||
-export CFLAGS
|
|
||||||
-export CXXFLAGS
|
|
||||||
-AC_CONFIG_SUBDIRS([gmock])
|
|
||||||
+#export CFLAGS
|
|
||||||
+#export CXXFLAGS
|
|
||||||
+#AC_CONFIG_SUBDIRS([gmock])
|
|
||||||
|
|
||||||
AC_CONFIG_FILES([Makefile src/Makefile conformance/Makefile protobuf.pc protobuf-lite.pc])
|
|
||||||
AC_OUTPUT
|
|
||||||
diff -Naur a/Makefile.am b/Makefile.am
|
|
||||||
--- a/Makefile.am 2015-12-30 22:21:46.000000000 +0100
|
|
||||||
+++ b/Makefile.am 2016-04-16 17:46:25.355751203 +0200
|
|
||||||
@@ -17,9 +17,10 @@
|
|
||||||
# want "make install" to recurse into gmock since we don't want to overwrite
|
|
||||||
# the installed version of gmock if there is one.
|
|
||||||
check-local:
|
|
||||||
- @echo "Making lib/libgmock.a lib/libgmock_main.a in gmock"
|
|
||||||
- @cd gmock && $(MAKE) $(AM_MAKEFLAGS) lib/libgmock.la lib/libgmock_main.la
|
|
||||||
- @cd gmock/gtest && $(MAKE) $(AM_MAKEFLAGS) lib/libgtest.la lib/libgtest_main.la
|
|
||||||
+ @echo "Making of gmock disabled"
|
|
||||||
+# @echo "Making lib/libgmock.a lib/libgmock_main.a in gmock"
|
|
||||||
+# @cd gmock && $(MAKE) $(AM_MAKEFLAGS) lib/libgmock.la lib/libgmock_main.la
|
|
||||||
+# @cd gmock/gtest && $(MAKE) $(AM_MAKEFLAGS) lib/libgtest.la lib/libgtest_main.la
|
|
||||||
|
|
||||||
# We would like to clean gmock when "make clean" is invoked. But we have to
|
|
||||||
# be careful because clean-local is also invoked during "make distclean", but
|
|
||||||
diff -Naur a/src/Makefile.am b/src/Makefile.am
|
|
||||||
--- a/src/Makefile.am 2015-12-30 22:21:46.000000000 +0100
|
|
||||||
+++ b/src/Makefile.am 2016-04-16 17:47:07.026967535 +0200
|
|
||||||
@@ -669,11 +669,8 @@
|
|
||||||
protobuf-lite-test test_plugin protobuf-lite-arena-test \
|
|
||||||
$(GZCHECKPROGRAMS)
|
|
||||||
protobuf_test_LDADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc.la \
|
|
||||||
- ../gmock/gtest/lib/libgtest.la \
|
|
||||||
- ../gmock/lib/libgmock.la \
|
|
||||||
- ../gmock/lib/libgmock_main.la
|
|
||||||
-protobuf_test_CPPFLAGS = -I$(srcdir)/../gmock/gtest/include \
|
|
||||||
- -I$(srcdir)/../gmock/include
|
|
||||||
+ -L/usr/lib -lgmock -lgmock_main -lgtest
|
|
||||||
+protobuf_test_CPPFLAGS = -I/usr/include
|
|
||||||
# Disable optimization for tests unless the user explicitly asked for it,
|
|
||||||
# since test_util.cc takes forever to compile with optimization (with GCC).
|
|
||||||
# See configure.ac for more info.
|
|
||||||
@@ -753,11 +750,8 @@
|
|
||||||
# Run cpp_unittest again with PROTOBUF_TEST_NO_DESCRIPTORS defined.
|
|
||||||
protobuf_lazy_descriptor_test_LDADD = $(PTHREAD_LIBS) libprotobuf.la \
|
|
||||||
libprotoc.la \
|
|
||||||
- ../gmock/gtest/lib/libgtest.la \
|
|
||||||
- ../gmock/lib/libgmock.la \
|
|
||||||
- ../gmock/lib/libgmock_main.la
|
|
||||||
-protobuf_lazy_descriptor_test_CPPFLAGS = -I$(srcdir)/../gmock/include \
|
|
||||||
- -I$(srcdir)/../gmock/gtest/include \
|
|
||||||
+ -L/usr/lib -lgmock -lgmock_main -lgtest
|
|
||||||
+protobuf_lazy_descriptor_test_CPPFLAGS = -I/usr/include \
|
|
||||||
-DPROTOBUF_TEST_NO_DESCRIPTORS
|
|
||||||
protobuf_lazy_descriptor_test_CXXFLAGS = $(NO_OPT_CXXFLAGS)
|
|
||||||
protobuf_lazy_descriptor_test_SOURCES = \
|
|
||||||
@@ -788,11 +782,8 @@
|
|
||||||
# gtest when building the test internally our memory sanitizer doesn't detect
|
|
||||||
# memory leaks (don't know why).
|
|
||||||
protobuf_lite_arena_test_LDADD = $(PTHREAD_LIBS) libprotobuf-lite.la \
|
|
||||||
- ../gmock/gtest/lib/libgtest.la \
|
|
||||||
- ../gmock/lib/libgmock.la \
|
|
||||||
- ../gmock/lib/libgmock_main.la
|
|
||||||
-protobuf_lite_arena_test_CPPFLAGS = -I$(srcdir)/../gmock/include \
|
|
||||||
- -I$(srcdir)/../gmock/gtest/include
|
|
||||||
+ -L/usr/lib -lgmock -lgmock_main -lgtest
|
|
||||||
+protobuf_lite_arena_test_CPPFLAGS = -I/usr/include
|
|
||||||
protobuf_lite_arena_test_CXXFLAGS = $(NO_OPT_CXXFLAGS)
|
|
||||||
protobuf_lite_arena_test_SOURCES = \
|
|
||||||
google/protobuf/lite_arena_unittest.cc \
|
|
||||||
@@ -801,8 +792,8 @@
|
|
||||||
|
|
||||||
# Test plugin binary.
|
|
||||||
test_plugin_LDADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc.la \
|
|
||||||
- ../gmock/gtest/lib/libgtest.la
|
|
||||||
-test_plugin_CPPFLAGS = -I$(srcdir)/../gmock/gtest/include
|
|
||||||
+ -L/usr/lib -lgtest
|
|
||||||
+test_plugin_CPPFLAGS = -I/usr/include
|
|
||||||
test_plugin_SOURCES = \
|
|
||||||
google/protobuf/compiler/mock_code_generator.cc \
|
|
||||||
google/protobuf/testing/file.cc \
|
|
@ -0,0 +1,19 @@
|
|||||||
|
Disable no-warning-test which is compiled with -Werror option and whose only purpose is checking if compilation results in any warnings.
|
||||||
|
|
||||||
|
--- /src/Makefile.am
|
||||||
|
+++ /src/Makefile.am
|
||||||
|
@@ -750,7 +750,7 @@
|
||||||
|
|
||||||
|
check_PROGRAMS = protoc protobuf-test protobuf-lazy-descriptor-test \
|
||||||
|
protobuf-lite-test test_plugin protobuf-lite-arena-test \
|
||||||
|
- no-warning-test $(GZCHECKPROGRAMS)
|
||||||
|
+ $(GZCHECKPROGRAMS)
|
||||||
|
protobuf_test_LDADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc.la \
|
||||||
|
../gmock/gtest/lib/libgtest.la \
|
||||||
|
../gmock/lib/libgmock.la \
|
||||||
|
@@ -931,4 +931,4 @@
|
||||||
|
|
||||||
|
TESTS = protobuf-test protobuf-lazy-descriptor-test protobuf-lite-test \
|
||||||
|
google/protobuf/compiler/zip_output_unittest.sh $(GZTESTS) \
|
||||||
|
- protobuf-lite-arena-test no-warning-test
|
||||||
|
+ protobuf-lite-arena-test
|
@ -1,24 +1,8 @@
|
|||||||
https://github.com/google/protobuf/pull/235
|
https://github.com/google/protobuf/pull/235
|
||||||
|
|
||||||
From 18f71a50a9000e7558ae48a971fa301d76220ff0 Mon Sep 17 00:00:00 2001
|
--- /src/google/protobuf/compiler/command_line_interface.cc
|
||||||
From: Prathmesh Prabhu <pprabhu@chromium.org>
|
+++ /src/google/protobuf/compiler/command_line_interface.cc
|
||||||
Date: Tue, 10 Mar 2015 17:04:40 -0400
|
@@ -942,6 +942,28 @@
|
||||||
Subject: [PATCH] protoc: Add options to redirect input/output to files.
|
|
||||||
|
|
||||||
When using protoc to encode/decode protobufs, the input/output was from
|
|
||||||
stdin/stdout only. This patch adds command line flags to specify files to read
|
|
||||||
the protobuf from and and write the encoded/decoded protobuf to.
|
|
||||||
---
|
|
||||||
.../protobuf/compiler/command_line_interface.cc | 99 +++++++++++++++++-----
|
|
||||||
.../protobuf/compiler/command_line_interface.h | 11 ++-
|
|
||||||
.../compiler/command_line_interface_unittest.cc | 25 +++++-
|
|
||||||
3 files changed, 110 insertions(+), 25 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/src/google/protobuf/compiler/command_line_interface.cc b/src/google/protobuf/compiler/command_line_interface.cc
|
|
||||||
index 567238a..1db85c9 100644
|
|
||||||
--- a/src/google/protobuf/compiler/command_line_interface.cc
|
|
||||||
+++ b/src/google/protobuf/compiler/command_line_interface.cc
|
|
||||||
@@ -745,6 +745,28 @@ int CommandLineInterface::Run(int argc, const char* const argv[]) {
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mode_ == MODE_ENCODE || mode_ == MODE_DECODE) {
|
if (mode_ == MODE_ENCODE || mode_ == MODE_DECODE) {
|
||||||
@ -29,7 +13,7 @@ index 567238a..1db85c9 100644
|
|||||||
+ if (!protobuf_in_path_.empty()) {
|
+ if (!protobuf_in_path_.empty()) {
|
||||||
+ in_fd = open(protobuf_in_path_.c_str(), O_RDONLY);
|
+ in_fd = open(protobuf_in_path_.c_str(), O_RDONLY);
|
||||||
+ if (in_fd == -1) {
|
+ if (in_fd == -1) {
|
||||||
+ cerr << protobuf_in_path_ << ": error: failed to open file." << endl;
|
+ std::cerr << protobuf_in_path_ << ": error: failed to open file." << std::endl;
|
||||||
+ return 1;
|
+ return 1;
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
@ -38,7 +22,7 @@ index 567238a..1db85c9 100644
|
|||||||
+ O_WRONLY | O_CREAT | O_TRUNC,
|
+ O_WRONLY | O_CREAT | O_TRUNC,
|
||||||
+ 0644);
|
+ 0644);
|
||||||
+ if (out_fd == -1) {
|
+ if (out_fd == -1) {
|
||||||
+ cerr << protobuf_out_path_ << ": error: failed to open file." << endl;
|
+ std::cerr << protobuf_out_path_ << ": error: failed to open file." << std::endl;
|
||||||
+ close(in_fd);
|
+ close(in_fd);
|
||||||
+ return 1;
|
+ return 1;
|
||||||
+ }
|
+ }
|
||||||
@ -47,7 +31,7 @@ index 567238a..1db85c9 100644
|
|||||||
if (codec_type_.empty()) {
|
if (codec_type_.empty()) {
|
||||||
// HACK: Define an EmptyMessage type to use for decoding.
|
// HACK: Define an EmptyMessage type to use for decoding.
|
||||||
DescriptorPool pool;
|
DescriptorPool pool;
|
||||||
@@ -753,13 +775,20 @@ int CommandLineInterface::Run(int argc, const char* const argv[]) {
|
@@ -950,13 +972,20 @@
|
||||||
file.add_message_type()->set_name("EmptyMessage");
|
file.add_message_type()->set_name("EmptyMessage");
|
||||||
GOOGLE_CHECK(pool.BuildFile(file) != NULL);
|
GOOGLE_CHECK(pool.BuildFile(file) != NULL);
|
||||||
codec_type_ = "EmptyMessage";
|
codec_type_ = "EmptyMessage";
|
||||||
@ -56,10 +40,10 @@ index 567238a..1db85c9 100644
|
|||||||
- }
|
- }
|
||||||
+ success = EncodeOrDecode(&pool, in_fd, out_fd);
|
+ success = EncodeOrDecode(&pool, in_fd, out_fd);
|
||||||
} else {
|
} else {
|
||||||
- if (!EncodeOrDecode(importer.pool())) {
|
- if (!EncodeOrDecode(descriptor_pool.get())) {
|
||||||
- return 1;
|
- return 1;
|
||||||
- }
|
- }
|
||||||
+ success = EncodeOrDecode(importer.pool(), in_fd, out_fd);
|
+ success = EncodeOrDecode(descriptor_pool.get(), in_fd, out_fd);
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ if (in_fd != STDIN_FILENO) {
|
+ if (in_fd != STDIN_FILENO) {
|
||||||
@ -74,19 +58,19 @@ index 567238a..1db85c9 100644
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -873,6 +902,11 @@ CommandLineInterface::ParseArguments(int argc, const char* const argv[]) {
|
@@ -994,6 +1023,11 @@
|
||||||
if (status != PARSE_ARGUMENT_DONE_AND_CONTINUE)
|
for (int i = 0; i < proto_path_.size(); i++) {
|
||||||
return status;
|
source_tree->MapPath(proto_path_[i].first, proto_path_[i].second);
|
||||||
}
|
}
|
||||||
+ if (mode_ == MODE_COMPILE &&
|
+ if (mode_ == MODE_COMPILE &&
|
||||||
+ (!protobuf_in_path_.empty() || !protobuf_out_path_.empty())) {
|
+ (!protobuf_in_path_.empty() || !protobuf_out_path_.empty())) {
|
||||||
+ cerr << "--protobuf_in and --protobuf_out are only valid with "
|
+ std::cerr << "--protobuf_in and --protobuf_out are only valid with "
|
||||||
+ << "decode operations. Ignoring.";
|
+ << "decode operations. Ignoring.";
|
||||||
+ }
|
+ }
|
||||||
|
|
||||||
// If no --proto_path was given, use the current working directory.
|
// Map input files to virtual paths if possible.
|
||||||
if (proto_path_.empty()) {
|
if (!MakeInputsBeProtoPathRelative(source_tree)) {
|
||||||
@@ -1123,6 +1157,12 @@ CommandLineInterface::InterpretArgument(const string& name,
|
@@ -1561,6 +1595,12 @@
|
||||||
|
|
||||||
codec_type_ = value;
|
codec_type_ = value;
|
||||||
|
|
||||||
@ -99,7 +83,7 @@ index 567238a..1db85c9 100644
|
|||||||
} else if (name == "--error_format") {
|
} else if (name == "--error_format") {
|
||||||
if (value == "gcc") {
|
if (value == "gcc") {
|
||||||
error_format_ = ERROR_FORMAT_GCC;
|
error_format_ = ERROR_FORMAT_GCC;
|
||||||
@@ -1238,18 +1278,29 @@ void CommandLineInterface::PrintHelpText() {
|
@@ -1684,18 +1724,29 @@
|
||||||
" --version Show version info and exit.\n"
|
" --version Show version info and exit.\n"
|
||||||
" -h, --help Show this text and exit.\n"
|
" -h, --help Show this text and exit.\n"
|
||||||
" --encode=MESSAGE_TYPE Read a text-format message of the given type\n"
|
" --encode=MESSAGE_TYPE Read a text-format message of the given type\n"
|
||||||
@ -136,10 +120,10 @@ index 567238a..1db85c9 100644
|
|||||||
+" --protobuf_out Absolute path to the protobuf file to write to\n"
|
+" --protobuf_out Absolute path to the protobuf file to write to\n"
|
||||||
+" after encode/decode operation. If omitted,\n"
|
+" after encode/decode operation. If omitted,\n"
|
||||||
+" output is written to STDOUT.\n"
|
+" output is written to STDOUT.\n"
|
||||||
" -oFILE, Writes a FileDescriptorSet (a protocol buffer,\n"
|
" --descriptor_set_in=FILES Specifies a delimited list of FILES\n"
|
||||||
" --descriptor_set_out=FILE defined in descriptor.proto) containing all of\n"
|
" each containing a FileDescriptorSet (a\n"
|
||||||
" the input files to FILE.\n"
|
" protocol buffer defined in descriptor.proto).\n"
|
||||||
@@ -1490,7 +1541,9 @@ bool CommandLineInterface::GeneratePluginOutput(
|
@@ -1957,7 +2008,9 @@
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -150,7 +134,7 @@ index 567238a..1db85c9 100644
|
|||||||
// Look up the type.
|
// Look up the type.
|
||||||
const Descriptor* type = pool->FindMessageTypeByName(codec_type_);
|
const Descriptor* type = pool->FindMessageTypeByName(codec_type_);
|
||||||
if (type == NULL) {
|
if (type == NULL) {
|
||||||
@@ -1502,15 +1555,15 @@ bool CommandLineInterface::EncodeOrDecode(const DescriptorPool* pool) {
|
@@ -1969,15 +2022,15 @@
|
||||||
google::protobuf::scoped_ptr<Message> message(dynamic_factory.GetPrototype(type)->New());
|
google::protobuf::scoped_ptr<Message> message(dynamic_factory.GetPrototype(type)->New());
|
||||||
|
|
||||||
if (mode_ == MODE_ENCODE) {
|
if (mode_ == MODE_ENCODE) {
|
||||||
@ -172,12 +156,10 @@ index 567238a..1db85c9 100644
|
|||||||
|
|
||||||
if (mode_ == MODE_ENCODE) {
|
if (mode_ == MODE_ENCODE) {
|
||||||
// Input is text.
|
// Input is text.
|
||||||
diff --git a/src/google/protobuf/compiler/command_line_interface.h b/src/google/protobuf/compiler/command_line_interface.h
|
--- /src/google/protobuf/compiler/command_line_interface.h
|
||||||
index 7e611c4..b6fc38a 100644
|
+++ /src/google/protobuf/compiler/command_line_interface.h
|
||||||
--- a/src/google/protobuf/compiler/command_line_interface.h
|
@@ -269,7 +269,9 @@
|
||||||
+++ b/src/google/protobuf/compiler/command_line_interface.h
|
GeneratorContext* generator_context, string* error);
|
||||||
@@ -244,7 +244,9 @@ class LIBPROTOC_EXPORT CommandLineInterface {
|
|
||||||
string* error);
|
|
||||||
|
|
||||||
// Implements --encode and --decode.
|
// Implements --encode and --decode.
|
||||||
- bool EncodeOrDecode(const DescriptorPool* pool);
|
- bool EncodeOrDecode(const DescriptorPool* pool);
|
||||||
@ -186,10 +168,10 @@ index 7e611c4..b6fc38a 100644
|
|||||||
+ int out_fd);
|
+ int out_fd);
|
||||||
|
|
||||||
// Implements the --descriptor_set_out option.
|
// Implements the --descriptor_set_out option.
|
||||||
bool WriteDescriptorSet(const vector<const FileDescriptor*> parsed_files);
|
bool WriteDescriptorSet(
|
||||||
@@ -357,6 +359,13 @@ class LIBPROTOC_EXPORT CommandLineInterface {
|
@@ -402,6 +404,13 @@
|
||||||
// decoding. (Empty string indicates --decode_raw.)
|
// parsed FileDescriptorSets to be used for loading protos. Otherwise, empty.
|
||||||
string codec_type_;
|
std::vector<string> descriptor_set_in_names_;
|
||||||
|
|
||||||
+ // When using --encode / --decode / --decode_raw absolute path to the output
|
+ // When using --encode / --decode / --decode_raw absolute path to the output
|
||||||
+ // file. (Empty string indicates write to STDOUT).
|
+ // file. (Empty string indicates write to STDOUT).
|
||||||
@ -200,12 +182,10 @@ index 7e611c4..b6fc38a 100644
|
|||||||
+
|
+
|
||||||
// If --descriptor_set_out was given, this is the filename to which the
|
// If --descriptor_set_out was given, this is the filename to which the
|
||||||
// FileDescriptorSet should be written. Otherwise, empty.
|
// FileDescriptorSet should be written. Otherwise, empty.
|
||||||
string descriptor_set_name_;
|
string descriptor_set_out_name_;
|
||||||
diff --git a/src/google/protobuf/compiler/command_line_interface_unittest.cc b/src/google/protobuf/compiler/command_line_interface_unittest.cc
|
--- /src/google/protobuf/compiler/command_line_interface_unittest.cc
|
||||||
index 2b26f3b..78ff2cf 100644
|
+++ /src/google/protobuf/compiler/command_line_interface_unittest.cc
|
||||||
--- a/src/google/protobuf/compiler/command_line_interface_unittest.cc
|
@@ -95,7 +95,7 @@
|
||||||
+++ b/src/google/protobuf/compiler/command_line_interface_unittest.cc
|
|
||||||
@@ -94,7 +94,7 @@ class CommandLineInterfaceTest : public testing::Test {
|
|
||||||
virtual void SetUp();
|
virtual void SetUp();
|
||||||
virtual void TearDown();
|
virtual void TearDown();
|
||||||
|
|
||||||
@ -214,7 +194,7 @@ index 2b26f3b..78ff2cf 100644
|
|||||||
// command is automatically split on spaces, and the string "$tmpdir"
|
// command is automatically split on spaces, and the string "$tmpdir"
|
||||||
// is replaced with TestTempDir().
|
// is replaced with TestTempDir().
|
||||||
void Run(const string& command);
|
void Run(const string& command);
|
||||||
@@ -1680,6 +1680,17 @@ class EncodeDecodeTest : public testing::Test {
|
@@ -2308,6 +2308,17 @@
|
||||||
EXPECT_EQ(StripCR(expected_text), StripCR(captured_stderr_));
|
EXPECT_EQ(StripCR(expected_text), StripCR(captured_stderr_));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -230,27 +210,24 @@ index 2b26f3b..78ff2cf 100644
|
|||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
private:
|
private:
|
||||||
int duped_stdin_;
|
void WriteUnittestProtoDescriptorSet() {
|
||||||
string captured_stdout_;
|
unittest_proto_descriptor_set_filename_ =
|
||||||
@@ -1745,6 +1756,18 @@ TEST_F(EncodeDecodeTest, ProtoParseError) {
|
@@ -2398,6 +2409,18 @@
|
||||||
"google/protobuf/no_such_file.proto: File not found.\n");
|
"google/protobuf/no_such_file.proto: No such file or directory\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
+TEST_F(EncodeDecodeTest, RedirectInputOutput) {
|
+TEST_P(EncodeDecodeTest, RedirectInputOutput) {
|
||||||
+ string out_file = TestTempDir() + "/golden_message_out.pbf";
|
+ string out_file = TestTempDir() + "/golden_message_out.pbf";
|
||||||
+ string cmd = "";
|
+ string cmd = "";
|
||||||
+ cmd += "google/protobuf/unittest.proto ";
|
+ cmd += "google/protobuf/unittest.proto ";
|
||||||
+ cmd += "--encode=protobuf_unittest.TestAllTypes ";
|
+ cmd += "--encode=protobuf_unittest.TestAllTypes ";
|
||||||
+ cmd += "--protobuf_in=" + TestSourceDir() +
|
+ cmd += "--protobuf_in=" + TestSourceDir() +
|
||||||
+ "/google/protobuf/testdata/text_format_unittest_data.txt ";
|
+ "/google/protobuf/testdata/text_format_unittest_data_oneof_implemented.txt ";
|
||||||
+ cmd += "--protobuf_out=" + out_file;
|
+ cmd += "--protobuf_out=" + out_file;
|
||||||
+ EXPECT_TRUE(Run(cmd));
|
+ EXPECT_TRUE(Run(cmd));
|
||||||
+ ExpectBinaryFilesMatch(out_file, "google/protobuf/testdata/golden_message");
|
+ ExpectBinaryFilesMatch(out_file, TestSourceDir() + "/google/protobuf/testdata/golden_message_oneof_implemented");
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
} // anonymous namespace
|
INSTANTIATE_TEST_CASE_P(FileDescriptorSetSource,
|
||||||
|
EncodeDecodeTest,
|
||||||
} // namespace compiler
|
testing::Values(PROTO_PATH, DESCRIPTOR_SET_IN));
|
||||||
--
|
|
||||||
2.3.1
|
|
||||||
|
|
@ -0,0 +1,117 @@
|
|||||||
|
--- /Makefile.am
|
||||||
|
+++ /Makefile.am
|
||||||
|
@@ -8,31 +8,12 @@
|
||||||
|
# the right time.
|
||||||
|
SUBDIRS = . src
|
||||||
|
|
||||||
|
-# Always include gmock in distributions.
|
||||||
|
-DIST_SUBDIRS = $(subdirs) src conformance benchmarks
|
||||||
|
+DIST_SUBDIRS = src conformance benchmarks
|
||||||
|
|
||||||
|
-# Build gmock before we build protobuf tests. We don't add gmock to SUBDIRS
|
||||||
|
-# because then "make check" would also build and run all of gmock's own tests,
|
||||||
|
-# which takes a lot of time and is generally not useful to us. Also, we don't
|
||||||
|
-# want "make install" to recurse into gmock since we don't want to overwrite
|
||||||
|
-# the installed version of gmock if there is one.
|
||||||
|
check-local:
|
||||||
|
- @echo "Making lib/libgmock.a lib/libgmock_main.a in gmock"
|
||||||
|
- @cd gmock && $(MAKE) $(AM_MAKEFLAGS) lib/libgmock.la lib/libgmock_main.la
|
||||||
|
- @cd gmock/gtest && $(MAKE) $(AM_MAKEFLAGS) lib/libgtest.la lib/libgtest_main.la
|
||||||
|
|
||||||
|
-# We would like to clean gmock when "make clean" is invoked. But we have to
|
||||||
|
-# be careful because clean-local is also invoked during "make distclean", but
|
||||||
|
-# "make distclean" already recurses into gmock because it's listed among the
|
||||||
|
-# DIST_SUBDIRS. distclean will delete gmock/Makefile, so if we then try to
|
||||||
|
-# cd to the directory again and "make clean" it will fail. So, check that the
|
||||||
|
-# Makefile exists before recursing.
|
||||||
|
clean-local:
|
||||||
|
- @if test -e gmock/Makefile; then \
|
||||||
|
- echo "Making clean in gmock"; \
|
||||||
|
- cd gmock && $(MAKE) $(AM_MAKEFLAGS) clean; \
|
||||||
|
- fi; \
|
||||||
|
- if test -e conformance/Makefile; then \
|
||||||
|
+ @if test -e conformance/Makefile; then \
|
||||||
|
echo "Making clean in conformance"; \
|
||||||
|
cd conformance && $(MAKE) $(AM_MAKEFLAGS) clean; \
|
||||||
|
fi; \
|
||||||
|
--- /configure.ac
|
||||||
|
+++ /configure.ac
|
||||||
|
@@ -200,12 +200,5 @@
|
||||||
|
|
||||||
|
AX_CXX_COMPILE_STDCXX([11], [noext], [optional])
|
||||||
|
|
||||||
|
-# HACK: Make gmock's configure script pick up our copy of CFLAGS and CXXFLAGS,
|
||||||
|
-# since the flags added by ACX_CHECK_SUNCC must be used when compiling gmock
|
||||||
|
-# too.
|
||||||
|
-export CFLAGS
|
||||||
|
-export CXXFLAGS
|
||||||
|
-AC_CONFIG_SUBDIRS([gmock])
|
||||||
|
-
|
||||||
|
AC_CONFIG_FILES([Makefile src/Makefile benchmarks/Makefile conformance/Makefile protobuf.pc protobuf-lite.pc])
|
||||||
|
AC_OUTPUT
|
||||||
|
--- /src/Makefile.am
|
||||||
|
+++ /src/Makefile.am
|
||||||
|
@@ -752,11 +752,7 @@
|
||||||
|
protobuf-lite-test test_plugin protobuf-lite-arena-test \
|
||||||
|
no-warning-test $(GZCHECKPROGRAMS)
|
||||||
|
protobuf_test_LDADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc.la \
|
||||||
|
- ../gmock/gtest/lib/libgtest.la \
|
||||||
|
- ../gmock/lib/libgmock.la \
|
||||||
|
- ../gmock/lib/libgmock_main.la
|
||||||
|
-protobuf_test_CPPFLAGS = -I$(srcdir)/../gmock/gtest/include \
|
||||||
|
- -I$(srcdir)/../gmock/include
|
||||||
|
+ -lgtest -lgmock -lgmock_main
|
||||||
|
# Disable optimization for tests unless the user explicitly asked for it,
|
||||||
|
# since test_util.cc takes forever to compile with optimization (with GCC).
|
||||||
|
# See configure.ac for more info.
|
||||||
|
@@ -843,12 +839,8 @@
|
||||||
|
# Run cpp_unittest again with PROTOBUF_TEST_NO_DESCRIPTORS defined.
|
||||||
|
protobuf_lazy_descriptor_test_LDADD = $(PTHREAD_LIBS) libprotobuf.la \
|
||||||
|
libprotoc.la \
|
||||||
|
- ../gmock/gtest/lib/libgtest.la \
|
||||||
|
- ../gmock/lib/libgmock.la \
|
||||||
|
- ../gmock/lib/libgmock_main.la
|
||||||
|
-protobuf_lazy_descriptor_test_CPPFLAGS = -I$(srcdir)/../gmock/include \
|
||||||
|
- -I$(srcdir)/../gmock/gtest/include \
|
||||||
|
- -DPROTOBUF_TEST_NO_DESCRIPTORS
|
||||||
|
+ -lgtest -lgmock -lgmock_main
|
||||||
|
+protobuf_lazy_descriptor_test_CPPFLAGS = -DPROTOBUF_TEST_NO_DESCRIPTORS
|
||||||
|
protobuf_lazy_descriptor_test_CXXFLAGS = $(NO_OPT_CXXFLAGS)
|
||||||
|
protobuf_lazy_descriptor_test_SOURCES = \
|
||||||
|
google/protobuf/compiler/cpp/cpp_unittest.cc \
|
||||||
|
@@ -868,11 +860,7 @@
|
||||||
|
# full runtime and we want to make sure this test builds without full
|
||||||
|
# runtime.
|
||||||
|
protobuf_lite_test_LDADD = $(PTHREAD_LIBS) libprotobuf-lite.la \
|
||||||
|
- ../gmock/gtest/lib/libgtest.la \
|
||||||
|
- ../gmock/lib/libgmock.la \
|
||||||
|
- ../gmock/lib/libgmock_main.la
|
||||||
|
-protobuf_lite_test_CPPFLAGS= -I$(srcdir)/../gmock/include \
|
||||||
|
- -I$(srcdir)/../gmock/gtest/include
|
||||||
|
+ -lgtest -lgmock -lgmock_main
|
||||||
|
protobuf_lite_test_CXXFLAGS = $(NO_OPT_CXXFLAGS)
|
||||||
|
protobuf_lite_test_SOURCES = \
|
||||||
|
google/protobuf/lite_unittest.cc \
|
||||||
|
@@ -883,11 +871,7 @@
|
||||||
|
# gtest when building the test internally our memory sanitizer doesn't detect
|
||||||
|
# memory leaks (don't know why).
|
||||||
|
protobuf_lite_arena_test_LDADD = $(PTHREAD_LIBS) libprotobuf-lite.la \
|
||||||
|
- ../gmock/gtest/lib/libgtest.la \
|
||||||
|
- ../gmock/lib/libgmock.la \
|
||||||
|
- ../gmock/lib/libgmock_main.la
|
||||||
|
-protobuf_lite_arena_test_CPPFLAGS = -I$(srcdir)/../gmock/include \
|
||||||
|
- -I$(srcdir)/../gmock/gtest/include
|
||||||
|
+ -lgtest -lgmock -lgmock_main
|
||||||
|
protobuf_lite_arena_test_CXXFLAGS = $(NO_OPT_CXXFLAGS)
|
||||||
|
protobuf_lite_arena_test_SOURCES = \
|
||||||
|
google/protobuf/lite_arena_unittest.cc \
|
||||||
|
@@ -896,8 +880,7 @@
|
||||||
|
|
||||||
|
# Test plugin binary.
|
||||||
|
test_plugin_LDADD = $(PTHREAD_LIBS) libprotobuf.la libprotoc.la \
|
||||||
|
- ../gmock/gtest/lib/libgtest.la
|
||||||
|
-test_plugin_CPPFLAGS = -I$(srcdir)/../gmock/gtest/include
|
||||||
|
+ -lgtest
|
||||||
|
test_plugin_SOURCES = \
|
||||||
|
google/protobuf/compiler/mock_code_generator.cc \
|
||||||
|
google/protobuf/testing/file.cc \
|
@ -0,0 +1,21 @@
|
|||||||
|
https://github.com/google/protobuf/issues/3937
|
||||||
|
https://github.com/google/protobuf/pull/3955
|
||||||
|
https://github.com/google/protobuf/commit/642e1ac635f2563b4a14c255374f02645ae85dac
|
||||||
|
|
||||||
|
--- /src/google/protobuf/stubs/atomicops_internals_generic_gcc.h
|
||||||
|
+++ /src/google/protobuf/stubs/atomicops_internals_generic_gcc.h
|
||||||
|
@@ -146,6 +146,14 @@
|
||||||
|
return __atomic_load_n(ptr, __ATOMIC_RELAXED);
|
||||||
|
}
|
||||||
|
|
||||||
|
+inline Atomic64 Release_CompareAndSwap(volatile Atomic64* ptr,
|
||||||
|
+ Atomic64 old_value,
|
||||||
|
+ Atomic64 new_value) {
|
||||||
|
+ __atomic_compare_exchange_n(ptr, &old_value, new_value, false,
|
||||||
|
+ __ATOMIC_RELEASE, __ATOMIC_ACQUIRE);
|
||||||
|
+ return old_value;
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
#endif // defined(__LP64__)
|
||||||
|
|
||||||
|
} // namespace internal
|
@ -1,24 +1,18 @@
|
|||||||
<?xml version='1.0' encoding='UTF-8'?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE pkgmetadata SYSTEM 'http://www.gentoo.org/dtd/metadata.dtd'>
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
<pkgmetadata>
|
<pkgmetadata>
|
||||||
<maintainer type='person'>
|
<maintainer type="person">
|
||||||
<email>vapier@gentoo.org</email>
|
<email>arfrever.fta@gmail.com</email>
|
||||||
</maintainer>
|
<name>Arfrever Frehtes Taifersar Arahesis</name>
|
||||||
<maintainer type='person'>
|
</maintainer>
|
||||||
<email>tomboy64@sina.cn</email>
|
<maintainer type="project">
|
||||||
</maintainer>
|
|
||||||
<maintainer type='project'>
|
|
||||||
<email>proxy-maint@gentoo.org</email>
|
<email>proxy-maint@gentoo.org</email>
|
||||||
<name>Proxy Maintainers</name>
|
<name>Proxy Maintainers</name>
|
||||||
</maintainer>
|
</maintainer>
|
||||||
<slots>
|
<slots>
|
||||||
<subslots>soname major version number</subslots>
|
<subslots>Soname version number</subslots>
|
||||||
</slots>
|
</slots>
|
||||||
<use>
|
<upstream>
|
||||||
<flag name="java">Builds the Java implementation. This is not needed for Java support in protoc.</flag>
|
<remote-id type="github">google/protobuf</remote-id>
|
||||||
<flag name="python">Builds the Python implementation. This is not needed for Python support in protoc.</flag>
|
</upstream>
|
||||||
</use>
|
|
||||||
<upstream>
|
|
||||||
<remote-id type='github'>google/protobuf</remote-id>
|
|
||||||
</upstream>
|
|
||||||
</pkgmetadata>
|
</pkgmetadata>
|
||||||
|
@ -1,132 +0,0 @@
|
|||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
AUTOTOOLS_AUTORECONF=1
|
|
||||||
AUTOTOOLS_PRUNE_LIBTOOL_FILES=all
|
|
||||||
JAVA_PKG_IUSE="source"
|
|
||||||
PYTHON_COMPAT=( python2_7 )
|
|
||||||
DISTUTILS_OPTIONAL=1
|
|
||||||
|
|
||||||
inherit autotools-multilib eutils flag-o-matic distutils-r1 java-pkg-opt-2 elisp-common
|
|
||||||
|
|
||||||
DESCRIPTION="Google's Protocol Buffers -- an efficient method of encoding structured data"
|
|
||||||
HOMEPAGE="https://code.google.com/p/protobuf/"
|
|
||||||
SRC_URI="https://protobuf.googlecode.com/files/${P}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="Apache-2.0"
|
|
||||||
SLOT="0/8" # subslot = soname major version
|
|
||||||
KEYWORDS="amd64 arm -hppa ~ia64 ~mips ppc ~ppc64 x86 ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos"
|
|
||||||
IUSE="emacs examples java python static-libs vim-syntax"
|
|
||||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
|
||||||
|
|
||||||
CDEPEND="emacs? ( virtual/emacs )
|
|
||||||
python? ( ${PYTHON_DEPS} )"
|
|
||||||
DEPEND="${CDEPEND}
|
|
||||||
java? ( >=virtual/jdk-1.5 )
|
|
||||||
python? ( dev-python/setuptools[${PYTHON_USEDEP}] )"
|
|
||||||
RDEPEND="${CDEPEND}
|
|
||||||
java? ( >=virtual/jre-1.5 )"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
append-cxxflags -DGOOGLE_PROTOBUF_NO_RTTI
|
|
||||||
|
|
||||||
epatch "${FILESDIR}"/${P}-x32.patch
|
|
||||||
|
|
||||||
# breaks Darwin, bug #472514
|
|
||||||
[[ ${CHOST} != *-darwin* ]] && epatch "${FILESDIR}"/${PN}-2.3.0-asneeded-2.patch
|
|
||||||
|
|
||||||
# fix build with emacs-24.4 (bug #524100)
|
|
||||||
epatch "${FILESDIR}"/${P}-emacs-24.4.patch
|
|
||||||
|
|
||||||
autotools-multilib_src_prepare
|
|
||||||
|
|
||||||
if use python; then
|
|
||||||
cd python && distutils-r1_src_prepare
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_compile() {
|
|
||||||
default
|
|
||||||
|
|
||||||
if multilib_is_native_abi; then
|
|
||||||
if use python; then
|
|
||||||
einfo "Compiling Python library ..."
|
|
||||||
pushd "${S}"/python >/dev/null
|
|
||||||
PROTOC="${BUILD_DIR}"/src/protoc distutils-r1_src_compile
|
|
||||||
popd >/dev/null
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use java; then
|
|
||||||
einfo "Compiling Java library ..."
|
|
||||||
pushd "${S}" >/dev/null
|
|
||||||
"${BUILD_DIR}"/src/protoc --java_out=java/src/main/java --proto_path=src src/google/protobuf/descriptor.proto
|
|
||||||
mkdir java/build
|
|
||||||
pushd java/src/main/java >/dev/null
|
|
||||||
ejavac -d ../../../build $(find . -name '*.java') || die "java compilation failed"
|
|
||||||
popd >/dev/null
|
|
||||||
jar cf ${PN}.jar -C java/build . || die "jar failed"
|
|
||||||
popd >/dev/null
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
autotools-multilib_src_compile
|
|
||||||
|
|
||||||
if use emacs; then
|
|
||||||
elisp-compile "${S}"/editors/protobuf-mode.el
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
autotools-multilib_src_test check
|
|
||||||
|
|
||||||
if use python; then
|
|
||||||
pushd python >/dev/null
|
|
||||||
distutils-r1_src_test
|
|
||||||
popd >/dev/null
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
autotools-multilib_src_install
|
|
||||||
|
|
||||||
dodoc CHANGES.txt CONTRIBUTORS.txt README.txt
|
|
||||||
|
|
||||||
if use python; then
|
|
||||||
pushd python >/dev/null
|
|
||||||
distutils-r1_src_install
|
|
||||||
popd >/dev/null
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use java; then
|
|
||||||
java-pkg_dojar ${PN}.jar
|
|
||||||
use source && java-pkg_dosrc java/src/main/java/*
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use vim-syntax; then
|
|
||||||
insinto /usr/share/vim/vimfiles/syntax
|
|
||||||
doins editors/proto.vim
|
|
||||||
insinto /usr/share/vim/vimfiles/ftdetect/
|
|
||||||
doins "${FILESDIR}"/proto.vim
|
|
||||||
fi
|
|
||||||
|
|
||||||
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
|
|
||||||
dodoc -r examples
|
|
||||||
docompress -x /usr/share/doc/${PF}/examples
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
use emacs && elisp-site-regen
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
use emacs && elisp-site-regen
|
|
||||||
}
|
|
@ -1,158 +0,0 @@
|
|||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
AUTOTOOLS_AUTORECONF=1
|
|
||||||
AUTOTOOLS_PRUNE_LIBTOOL_FILES=all
|
|
||||||
JAVA_PKG_IUSE="source"
|
|
||||||
PYTHON_COMPAT=( python2_7 )
|
|
||||||
DISTUTILS_OPTIONAL=1
|
|
||||||
|
|
||||||
inherit autotools-multilib eutils flag-o-matic toolchain-funcs distutils-r1 java-pkg-opt-2 elisp-common
|
|
||||||
|
|
||||||
DESCRIPTION="Google's Protocol Buffers -- an efficient method of encoding structured data"
|
|
||||||
HOMEPAGE="https://code.google.com/p/protobuf/ https://github.com/google/protobuf/"
|
|
||||||
SRC_URI="https://github.com/google/${PN}/releases/download/v${PV}/${P}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="Apache-2.0"
|
|
||||||
SLOT="0/9" # subslot = soname major version
|
|
||||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 sh sparc x86 ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos"
|
|
||||||
IUSE="emacs examples java python static-libs vim-syntax zlib"
|
|
||||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
|
||||||
|
|
||||||
CDEPEND="emacs? ( virtual/emacs )
|
|
||||||
python? ( ${PYTHON_DEPS} )
|
|
||||||
zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )"
|
|
||||||
DEPEND="${CDEPEND}
|
|
||||||
java? ( >=virtual/jdk-1.5 )
|
|
||||||
python? (
|
|
||||||
dev-python/google-apputils[${PYTHON_USEDEP}]
|
|
||||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
|
||||||
)"
|
|
||||||
RDEPEND="${CDEPEND}
|
|
||||||
java? ( >=virtual/jre-1.5 )"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
append-cxxflags -DGOOGLE_PROTOBUF_NO_RTTI
|
|
||||||
|
|
||||||
# breaks Darwin, bug #472514
|
|
||||||
[[ ${CHOST} != *-darwin* ]] && epatch "${FILESDIR}"/${PN}-2.3.0-asneeded-2.patch
|
|
||||||
|
|
||||||
# fix build with emacs-24.4 (bug #524100)
|
|
||||||
epatch "${FILESDIR}"/${PN}-2.5.0-emacs-24.4.patch
|
|
||||||
epatch "${FILESDIR}"/${PN}-2.6.1-protoc-cmdline.patch
|
|
||||||
|
|
||||||
autotools-multilib_src_prepare
|
|
||||||
|
|
||||||
if use python; then
|
|
||||||
cd python && distutils-r1_src_prepare
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local myeconfargs=(
|
|
||||||
$(use_with zlib)
|
|
||||||
)
|
|
||||||
|
|
||||||
if tc-is-cross-compiler; then
|
|
||||||
# The build system wants `protoc` when building, so we need a copy that
|
|
||||||
# runs on the host. This is more hermetic than relying on the version
|
|
||||||
# installed in the host being the exact same version.
|
|
||||||
mkdir -p "${WORKDIR}"/build || die
|
|
||||||
pushd "${WORKDIR}"/build >/dev/null
|
|
||||||
ECONF_SOURCE=${S} econf_build "${myeconfargs[@]}"
|
|
||||||
myeconfargs+=( --with-protoc="${PWD}"/src/protoc )
|
|
||||||
popd >/dev/null
|
|
||||||
fi
|
|
||||||
|
|
||||||
autotools-multilib_src_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_compile() {
|
|
||||||
default
|
|
||||||
|
|
||||||
if multilib_is_native_abi; then
|
|
||||||
if use python; then
|
|
||||||
einfo "Compiling Python library ..."
|
|
||||||
pushd "${S}"/python >/dev/null
|
|
||||||
PROTOC="${BUILD_DIR}"/src/protoc distutils-r1_src_compile
|
|
||||||
popd >/dev/null
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use java; then
|
|
||||||
einfo "Compiling Java library ..."
|
|
||||||
pushd "${S}" >/dev/null
|
|
||||||
"${BUILD_DIR}"/src/protoc --java_out=java/src/main/java --proto_path=src src/google/protobuf/descriptor.proto
|
|
||||||
mkdir java/build
|
|
||||||
pushd java/src/main/java >/dev/null
|
|
||||||
ejavac -d ../../../build $(find . -name '*.java') || die "java compilation failed"
|
|
||||||
popd >/dev/null
|
|
||||||
jar cf ${PN}.jar -C java/build . || die "jar failed"
|
|
||||||
popd >/dev/null
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
if tc-is-cross-compiler; then
|
|
||||||
emake -C "${WORKDIR}"/build/src protoc
|
|
||||||
fi
|
|
||||||
|
|
||||||
autotools-multilib_src_compile
|
|
||||||
|
|
||||||
if use emacs; then
|
|
||||||
elisp-compile "${S}"/editors/protobuf-mode.el
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
autotools-multilib_src_test check
|
|
||||||
|
|
||||||
if use python; then
|
|
||||||
pushd python >/dev/null
|
|
||||||
distutils-r1_src_test
|
|
||||||
popd >/dev/null
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
autotools-multilib_src_install
|
|
||||||
|
|
||||||
dodoc CHANGES.txt CONTRIBUTORS.txt README.md
|
|
||||||
|
|
||||||
if use python; then
|
|
||||||
pushd python >/dev/null
|
|
||||||
distutils-r1_src_install
|
|
||||||
popd >/dev/null
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use java; then
|
|
||||||
java-pkg_dojar ${PN}.jar
|
|
||||||
use source && java-pkg_dosrc java/src/main/java/*
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use vim-syntax; then
|
|
||||||
insinto /usr/share/vim/vimfiles/syntax
|
|
||||||
doins editors/proto.vim
|
|
||||||
insinto /usr/share/vim/vimfiles/ftdetect/
|
|
||||||
doins "${FILESDIR}"/proto.vim
|
|
||||||
fi
|
|
||||||
|
|
||||||
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
|
|
||||||
dodoc -r examples
|
|
||||||
docompress -x /usr/share/doc/${PF}/examples
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
use emacs && elisp-site-regen
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
use emacs && elisp-site-regen
|
|
||||||
}
|
|
@ -1,107 +0,0 @@
|
|||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 python3_4 python3_5 )
|
|
||||||
inherit python-r1 autotools flag-o-matic toolchain-funcs elisp-common multilib-minimal
|
|
||||||
|
|
||||||
# If you bump this package, also consider bumping the official language bindings!
|
|
||||||
# At the current time these are java and python.
|
|
||||||
MY_PV=${PV/_beta/-beta-}
|
|
||||||
MY_PV=${MY_PV/_p/.}
|
|
||||||
|
|
||||||
DESCRIPTION="Google's Protocol Buffers -- an efficient method of encoding structured data"
|
|
||||||
HOMEPAGE="https://github.com/google/protobuf/ https://developers.google.com/protocol-buffers/"
|
|
||||||
SRC_URI="https://github.com/google/protobuf/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="Apache-2.0"
|
|
||||||
SLOT="0/10b3"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos"
|
|
||||||
IUSE="emacs examples java python static-libs test vim-syntax zlib"
|
|
||||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
emacs? ( virtual/emacs )
|
|
||||||
python? ( ${PYTHON_DEPS} )
|
|
||||||
zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
test? ( dev-cpp/gmock[${MULTILIB_USEDEP}] )"
|
|
||||||
# This is provided for backwards compatibility due to (likely incorrect) use in consumers.
|
|
||||||
PDEPEND="java? ( dev-java/protobuf-java )
|
|
||||||
python? ( dev-python/protobuf-python[${PYTHON_USEDEP}] )"
|
|
||||||
|
|
||||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/${PN}-2.5.0-emacs-24.4.patch"
|
|
||||||
"${FILESDIR}/${PN}-2.6.1-protoc-cmdline.patch"
|
|
||||||
"${FILESDIR}/${PN}-3.0.0_beta2-disable-local-gmock.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
append-cppflags -DGOOGLE_PROTOBUF_NO_RTTI
|
|
||||||
default
|
|
||||||
eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_configure() {
|
|
||||||
local myeconfargs=(
|
|
||||||
$(use_enable static-libs static)
|
|
||||||
$(use_with zlib)
|
|
||||||
)
|
|
||||||
if tc-is-cross-compiler; then
|
|
||||||
# The build system wants `protoc` when building, so we need a copy that
|
|
||||||
# runs on the host. This is more hermetic than relying on the version
|
|
||||||
# installed in the host being the exact same version.
|
|
||||||
mkdir -p "${WORKDIR}"/build || die
|
|
||||||
pushd "${WORKDIR}"/build >/dev/null || die
|
|
||||||
ECONF_SOURCE=${S} econf_build "${myeconfargs[@]}"
|
|
||||||
myeconfargs+=( --with-protoc="${PWD}"/src/protoc )
|
|
||||||
popd >/dev/null || die
|
|
||||||
fi
|
|
||||||
ECONF_SOURCE=${S} econf "${myeconfargs[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_compile() {
|
|
||||||
if tc-is-cross-compiler; then
|
|
||||||
emake -C "${WORKDIR}"/build/src protoc
|
|
||||||
fi
|
|
||||||
|
|
||||||
default
|
|
||||||
|
|
||||||
if use emacs; then
|
|
||||||
elisp-compile "${S}"/editors/protobuf-mode.el
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_test() {
|
|
||||||
emake check
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
multilib-minimal_src_install
|
|
||||||
|
|
||||||
if use vim-syntax; then
|
|
||||||
insinto /usr/share/vim/vimfiles/syntax
|
|
||||||
doins editors/proto.vim
|
|
||||||
insinto /usr/share/vim/vimfiles/ftdetect/
|
|
||||||
doins "${FILESDIR}/proto.vim"
|
|
||||||
fi
|
|
||||||
|
|
||||||
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 )
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
use emacs && elisp-site-regen
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
use emacs && elisp-site-regen
|
|
||||||
}
|
|
@ -1,111 +0,0 @@
|
|||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 python3_4 python3_5 )
|
|
||||||
inherit autotools elisp-common flag-o-matic python-r1 toolchain-funcs multilib-minimal
|
|
||||||
|
|
||||||
# If you bump this package, also consider bumping the official language bindings!
|
|
||||||
# At the current time these are java and python.
|
|
||||||
MY_PV=${PV/_beta/-beta-}
|
|
||||||
MY_PV=${MY_PV/_p/.}
|
|
||||||
|
|
||||||
DESCRIPTION="Google's Protocol Buffers -- an efficient method of encoding structured data"
|
|
||||||
HOMEPAGE="https://github.com/google/protobuf/ https://developers.google.com/protocol-buffers/"
|
|
||||||
SRC_URI="https://github.com/google/protobuf/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="Apache-2.0"
|
|
||||||
SLOT="0/10"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos"
|
|
||||||
IUSE="emacs examples java python static-libs test vim-syntax zlib"
|
|
||||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
emacs? ( virtual/emacs )
|
|
||||||
python? ( ${PYTHON_DEPS} )
|
|
||||||
zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
test? ( dev-cpp/gmock[${MULTILIB_USEDEP}] )"
|
|
||||||
# This is provided for backwards compatibility due to (likely incorrect) use in consumers.
|
|
||||||
PDEPEND="
|
|
||||||
java? ( dev-java/protobuf-java )
|
|
||||||
python? ( dev-python/protobuf-python[${PYTHON_USEDEP}] )"
|
|
||||||
|
|
||||||
DOCS=( CHANGES.txt CONTRIBUTORS.txt README.md )
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/${PN}-2.5.0-emacs-24.4.patch"
|
|
||||||
"${FILESDIR}/${PN}-2.6.1-protoc-cmdline.patch"
|
|
||||||
"${FILESDIR}/${PN}-3.0.0_beta2-disable-local-gmock.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
|
||||||
src_prepare() {
|
|
||||||
append-cppflags -DGOOGLE_PROTOBUF_NO_RTTI
|
|
||||||
default
|
|
||||||
eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_configure() {
|
|
||||||
local myeconfargs=(
|
|
||||||
$(use_enable static-libs static)
|
|
||||||
$(use_with zlib)
|
|
||||||
)
|
|
||||||
if tc-is-cross-compiler; then
|
|
||||||
# The build system wants `protoc` when building, so we need a copy that
|
|
||||||
# runs on the host. This is more hermetic than relying on the version
|
|
||||||
# installed in the host being the exact same version.
|
|
||||||
mkdir -p "${WORKDIR}"/build || die
|
|
||||||
pushd "${WORKDIR}"/build >/dev/null || die
|
|
||||||
ECONF_SOURCE=${S} econf_build "${myeconfargs[@]}"
|
|
||||||
myeconfargs+=( --with-protoc="${PWD}"/src/protoc )
|
|
||||||
popd >/dev/null || die
|
|
||||||
fi
|
|
||||||
ECONF_SOURCE=${S} econf "${myeconfargs[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_compile() {
|
|
||||||
if tc-is-cross-compiler; then
|
|
||||||
emake -C "${WORKDIR}"/build/src protoc
|
|
||||||
fi
|
|
||||||
|
|
||||||
default
|
|
||||||
|
|
||||||
if use emacs; then
|
|
||||||
elisp-compile "${S}"/editors/protobuf-mode.el
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_test() {
|
|
||||||
emake check
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_install_all() {
|
|
||||||
if use vim-syntax; then
|
|
||||||
insinto /usr/share/vim/vimfiles/syntax
|
|
||||||
doins editors/proto.vim
|
|
||||||
insinto /usr/share/vim/vimfiles/ftdetect/
|
|
||||||
doins "${FILESDIR}/proto.vim"
|
|
||||||
fi
|
|
||||||
|
|
||||||
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
|
|
||||||
}
|
|
@ -1,110 +0,0 @@
|
|||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python2_7 python3_4 python3_5 )
|
|
||||||
inherit autotools elisp-common flag-o-matic python-r1 toolchain-funcs multilib-minimal
|
|
||||||
|
|
||||||
# If you bump this package, also consider bumping the official language bindings!
|
|
||||||
# At the current time these are java and python.
|
|
||||||
MY_PV=${PV/_beta/-beta-}
|
|
||||||
MY_PV=${MY_PV/_p/.}
|
|
||||||
|
|
||||||
DESCRIPTION="Google's Protocol Buffers -- an efficient method of encoding structured data"
|
|
||||||
HOMEPAGE="https://github.com/google/protobuf/ https://developers.google.com/protocol-buffers/"
|
|
||||||
SRC_URI="https://github.com/google/protobuf/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="Apache-2.0"
|
|
||||||
SLOT="0/11"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos"
|
|
||||||
IUSE="emacs examples java python static-libs test vim-syntax zlib"
|
|
||||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
emacs? ( virtual/emacs )
|
|
||||||
python? ( ${PYTHON_DEPS} )
|
|
||||||
zlib? ( >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
test? ( dev-cpp/gmock[${MULTILIB_USEDEP}] )"
|
|
||||||
# This is provided for backwards compatibility due to (likely incorrect) use in consumers.
|
|
||||||
PDEPEND="
|
|
||||||
java? ( dev-java/protobuf-java )
|
|
||||||
python? ( dev-python/protobuf-python[${PYTHON_USEDEP}] )"
|
|
||||||
|
|
||||||
DOCS=( CHANGES.txt CONTRIBUTORS.txt README.md )
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/${PN}-2.6.1-protoc-cmdline.patch"
|
|
||||||
"${FILESDIR}/${PN}-3.0.0_beta2-disable-local-gmock.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
|
||||||
src_prepare() {
|
|
||||||
append-cppflags -DGOOGLE_PROTOBUF_NO_RTTI
|
|
||||||
default
|
|
||||||
eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_configure() {
|
|
||||||
local myeconfargs=(
|
|
||||||
$(use_enable static-libs static)
|
|
||||||
$(use_with zlib)
|
|
||||||
)
|
|
||||||
if tc-is-cross-compiler; then
|
|
||||||
# The build system wants `protoc` when building, so we need a copy that
|
|
||||||
# runs on the host. This is more hermetic than relying on the version
|
|
||||||
# installed in the host being the exact same version.
|
|
||||||
mkdir -p "${WORKDIR}"/build || die
|
|
||||||
pushd "${WORKDIR}"/build >/dev/null || die
|
|
||||||
ECONF_SOURCE=${S} econf_build "${myeconfargs[@]}"
|
|
||||||
myeconfargs+=( --with-protoc="${PWD}"/src/protoc )
|
|
||||||
popd >/dev/null || die
|
|
||||||
fi
|
|
||||||
ECONF_SOURCE=${S} econf "${myeconfargs[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_compile() {
|
|
||||||
if tc-is-cross-compiler; then
|
|
||||||
emake -C "${WORKDIR}"/build/src protoc
|
|
||||||
fi
|
|
||||||
|
|
||||||
default
|
|
||||||
|
|
||||||
if use emacs; then
|
|
||||||
elisp-compile "${S}"/editors/protobuf-mode.el
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_test() {
|
|
||||||
emake check
|
|
||||||
}
|
|
||||||
|
|
||||||
multilib_src_install_all() {
|
|
||||||
if use vim-syntax; then
|
|
||||||
insinto /usr/share/vim/vimfiles/syntax
|
|
||||||
doins editors/proto.vim
|
|
||||||
insinto /usr/share/vim/vimfiles/ftdetect/
|
|
||||||
doins "${FILESDIR}/proto.vim"
|
|
||||||
fi
|
|
||||||
|
|
||||||
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
|
|
||||||
}
|
|
101
sdk_container/src/third_party/portage-stable/dev-libs/protobuf/protobuf-3.4.1.ebuild
vendored
Normal file
101
sdk_container/src/third_party/portage-stable/dev-libs/protobuf/protobuf-3.4.1.ebuild
vendored
Normal file
@ -0,0 +1,101 @@
|
|||||||
|
# Copyright 1999-2017 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="6"
|
||||||
|
|
||||||
|
inherit autotools elisp-common flag-o-matic multilib-minimal toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="Google's Protocol Buffers - Extensible mechanism for serializing structured data"
|
||||||
|
HOMEPAGE="https://developers.google.com/protocol-buffers/ https://github.com/google/protobuf"
|
||||||
|
SRC_URI="https://github.com/google/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0/14"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos"
|
||||||
|
IUSE="emacs examples static-libs test zlib"
|
||||||
|
|
||||||
|
RDEPEND="emacs? ( virtual/emacs )
|
||||||
|
zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
test? ( >=dev-cpp/gtest-1.8.0[${MULTILIB_USEDEP}] )"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${PN}-3.4.0-disable_no-warning-test.patch"
|
||||||
|
"${FILESDIR}/${PN}-3.4.0-system_libraries.patch"
|
||||||
|
"${FILESDIR}/${PN}-3.4.0-protoc_input_output_files.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
DOCS=(CHANGES.txt CONTRIBUTORS.txt README.md)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
append-cppflags -DGOOGLE_PROTOBUF_NO_RTTI
|
||||||
|
default
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_configure() {
|
||||||
|
local myeconfargs=(
|
||||||
|
$(use_enable static-libs static)
|
||||||
|
$(use_with zlib)
|
||||||
|
)
|
||||||
|
|
||||||
|
if tc-is-cross-compiler; then
|
||||||
|
# The build system wants `protoc` when building, so we need a copy that
|
||||||
|
# runs on the host. This is more hermetic than relying on the version
|
||||||
|
# installed in the host being the exact same version.
|
||||||
|
mkdir -p "${WORKDIR}/build" || die
|
||||||
|
pushd "${WORKDIR}/build" > /dev/null || die
|
||||||
|
ECONF_SOURCE="${S}" econf_build "${myeconfargs[@]}"
|
||||||
|
myeconfargs+=(--with-protoc="${PWD}"/src/protoc)
|
||||||
|
popd > /dev/null || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
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() {
|
||||||
|
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
|
||||||
|
}
|
106
sdk_container/src/third_party/portage-stable/dev-libs/protobuf/protobuf-3.5.1.1.ebuild
vendored
Normal file
106
sdk_container/src/third_party/portage-stable/dev-libs/protobuf/protobuf-3.5.1.1.ebuild
vendored
Normal file
@ -0,0 +1,106 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="6"
|
||||||
|
|
||||||
|
inherit autotools elisp-common flag-o-matic multilib-minimal toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="Google's Protocol Buffers - Extensible mechanism for serializing structured data"
|
||||||
|
HOMEPAGE="https://developers.google.com/protocol-buffers/ https://github.com/google/protobuf"
|
||||||
|
SRC_URI="https://github.com/google/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0/15"
|
||||||
|
KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos"
|
||||||
|
IUSE="emacs examples static-libs test zlib"
|
||||||
|
|
||||||
|
RDEPEND="emacs? ( virtual/emacs )
|
||||||
|
zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
test? ( >=dev-cpp/gtest-1.8.0[${MULTILIB_USEDEP}] )"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${PN}-3.4.0-disable_no-warning-test.patch"
|
||||||
|
"${FILESDIR}/${PN}-3.4.0-system_libraries.patch"
|
||||||
|
"${FILESDIR}/${PN}-3.4.0-protoc_input_output_files.patch"
|
||||||
|
"${FILESDIR}/${PN}-3.5.0-atomic_operations.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
DOCS=(CHANGES.txt CONTRIBUTORS.txt README.md)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
append-cppflags -DGOOGLE_PROTOBUF_NO_RTTI
|
||||||
|
multilib-minimal_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_configure() {
|
||||||
|
local myeconfargs=(
|
||||||
|
$(use_enable static-libs static)
|
||||||
|
$(use_with zlib)
|
||||||
|
)
|
||||||
|
|
||||||
|
if tc-is-cross-compiler; then
|
||||||
|
# The build system wants `protoc` when building, so we need a copy that
|
||||||
|
# runs on the host. This is more hermetic than relying on the version
|
||||||
|
# installed in the host being the exact same version.
|
||||||
|
mkdir -p "${WORKDIR}/build" || die
|
||||||
|
pushd "${WORKDIR}/build" > /dev/null || die
|
||||||
|
ECONF_SOURCE="${S}" econf_build "${myeconfargs[@]}"
|
||||||
|
myeconfargs+=(--with-protoc="${PWD}"/src/protoc)
|
||||||
|
popd > /dev/null || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
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() {
|
||||||
|
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
|
||||||
|
}
|
104
sdk_container/src/third_party/portage-stable/dev-libs/protobuf/protobuf-3.5.2.ebuild
vendored
Normal file
104
sdk_container/src/third_party/portage-stable/dev-libs/protobuf/protobuf-3.5.2.ebuild
vendored
Normal file
@ -0,0 +1,104 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="6"
|
||||||
|
|
||||||
|
inherit autotools elisp-common flag-o-matic multilib-minimal toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="Google's Protocol Buffers - Extensible mechanism for serializing structured data"
|
||||||
|
HOMEPAGE="https://developers.google.com/protocol-buffers/ https://github.com/google/protobuf"
|
||||||
|
SRC_URI="https://github.com/google/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0/15"
|
||||||
|
KEYWORDS="alpha amd64 arm arm64 ~hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos"
|
||||||
|
IUSE="emacs examples static-libs test zlib"
|
||||||
|
|
||||||
|
RDEPEND="emacs? ( virtual/emacs )
|
||||||
|
zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
test? ( >=dev-cpp/gtest-1.8.0[${MULTILIB_USEDEP}] )"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${PN}-3.4.0-disable_no-warning-test.patch"
|
||||||
|
"${FILESDIR}/${PN}-3.4.0-system_libraries.patch"
|
||||||
|
"${FILESDIR}/${PN}-3.4.0-protoc_input_output_files.patch"
|
||||||
|
"${FILESDIR}/${PN}-3.5.0-atomic_operations.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
DOCS=(CHANGES.txt CONTRIBUTORS.txt README.md)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
append-cppflags -DGOOGLE_PROTOBUF_NO_RTTI
|
||||||
|
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() {
|
||||||
|
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
|
||||||
|
}
|
@ -1,14 +0,0 @@
|
|||||||
DEFINED_PHASES=compile configure install postinst postrm preinst prepare setup test
|
|
||||||
DEPEND=emacs? ( virtual/emacs ) python? ( python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,-python_single_target_python2_7(-)] ) java? ( >=virtual/jdk-1.5 ) python? ( dev-python/setuptools[python_targets_python2_7(-)?,-python_single_target_python2_7(-)] ) >=app-portage/elt-patches-20170422 !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.16.1:1.16 >=sys-devel/automake-1.15.1:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4 java? ( >=dev-java/java-config-2.2.0-r3 source? ( app-arch/zip ) )
|
|
||||||
DESCRIPTION=Google's Protocol Buffers -- an efficient method of encoding structured data
|
|
||||||
EAPI=5
|
|
||||||
HOMEPAGE=https://code.google.com/p/protobuf/
|
|
||||||
IUSE=emacs examples java python static-libs vim-syntax abi_x86_32 abi_x86_64 abi_x86_x32 abi_mips_n32 abi_mips_n64 abi_mips_o32 abi_ppc_32 abi_ppc_64 abi_s390_32 abi_s390_64 python_targets_python2_7 elibc_FreeBSD source java
|
|
||||||
KEYWORDS=amd64 arm -hppa ~ia64 ~mips ppc ~ppc64 x86 ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos
|
|
||||||
LICENSE=Apache-2.0
|
|
||||||
RDEPEND=emacs? ( virtual/emacs ) python? ( python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,-python_single_target_python2_7(-)] ) java? ( >=virtual/jre-1.5 ) java? ( >=dev-java/java-config-2.2.0-r3 source? ( app-arch/zip ) )
|
|
||||||
REQUIRED_USE=python? ( || ( python_targets_python2_7 ) )
|
|
||||||
SLOT=0/8
|
|
||||||
SRC_URI=https://protobuf.googlecode.com/files/protobuf-2.5.0.tar.bz2
|
|
||||||
_eclasses_=autotools d0e5375d47f4c809f406eb892e531513 autotools-multilib f4848d9634439c7203cb7dd3b9650fff autotools-utils 5a4611dfba155b1659528663fad4cd5e desktop 1b286a7e7143d8c4ec89cd0d2743a097 distutils-r1 63fea93ca1cc4fdc5fa2247afc4e3a15 elisp-common 23f47b2e1de7abf387105eddd1318738 epatch 9a5f039771f143195164a15a4faa41a1 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 5b8ce72259e08104b337fe28c6de5dbc flag-o-matic 5128c4729303400bd8d4b0b966530955 java-pkg-opt-2 77d2e22d0de7640f817d20e861c0ff3f java-utils-2 0ee72667014428e01a01df2345244cf3 libtool 0081a71a261724730ec4c248494f044d ltprune 607e058da37aa6dabfa408b7d61da72e multibuild 35719a9cd25ec71ee49c966f6868454c multilib 97f470f374f2e94ccab04a2fb21d811e multilib-build 45f0e78dba7de5c77988265229b4402a multilib-minimal bfa1226d0f1fa0093d10b84acd029633 multiprocessing cac3169468f893670dac3e7cb940e045 preserve-libs ef207dc62baddfddfd39a164d9797648 python-r1 0b5829eb6369d7af3a834b6eed7b7107 python-utils-r1 ffa9c3284c6b07b8c9f7933911f63812 toolchain-funcs 1e35303c63cd707f6c3422b4493d5607 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf versionator 26ca8a8bd95d6a74122c08ba98a4ee72 xdg-utils f2c8335407f0b935b0a96d4adf23ef25
|
|
||||||
_md5_=18ddca7213322efed7c6a01a28279e7e
|
|
@ -1,14 +0,0 @@
|
|||||||
DEFINED_PHASES=compile configure install postinst postrm preinst prepare setup test
|
|
||||||
DEPEND=emacs? ( virtual/emacs ) python? ( python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,-python_single_target_python2_7(-)] ) zlib? ( >=sys-libs/zlib-1.2.8-r1[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) java? ( >=virtual/jdk-1.5 ) python? ( dev-python/google-apputils[python_targets_python2_7(-)?,-python_single_target_python2_7(-)] dev-python/setuptools[python_targets_python2_7(-)?,-python_single_target_python2_7(-)] ) >=app-portage/elt-patches-20170422 !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.16.1:1.16 >=sys-devel/automake-1.15.1:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4 java? ( >=dev-java/java-config-2.2.0-r3 source? ( app-arch/zip ) )
|
|
||||||
DESCRIPTION=Google's Protocol Buffers -- an efficient method of encoding structured data
|
|
||||||
EAPI=5
|
|
||||||
HOMEPAGE=https://code.google.com/p/protobuf/ https://github.com/google/protobuf/
|
|
||||||
IUSE=emacs examples java python static-libs vim-syntax zlib abi_x86_32 abi_x86_64 abi_x86_x32 abi_mips_n32 abi_mips_n64 abi_mips_o32 abi_ppc_32 abi_ppc_64 abi_s390_32 abi_s390_64 python_targets_python2_7 elibc_FreeBSD source java
|
|
||||||
KEYWORDS=alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 sh sparc x86 ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos
|
|
||||||
LICENSE=Apache-2.0
|
|
||||||
RDEPEND=emacs? ( virtual/emacs ) python? ( python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,-python_single_target_python2_7(-)] ) zlib? ( >=sys-libs/zlib-1.2.8-r1[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) java? ( >=virtual/jre-1.5 ) java? ( >=dev-java/java-config-2.2.0-r3 source? ( app-arch/zip ) )
|
|
||||||
REQUIRED_USE=python? ( || ( python_targets_python2_7 ) )
|
|
||||||
SLOT=0/9
|
|
||||||
SRC_URI=https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.bz2
|
|
||||||
_eclasses_=autotools d0e5375d47f4c809f406eb892e531513 autotools-multilib f4848d9634439c7203cb7dd3b9650fff autotools-utils 5a4611dfba155b1659528663fad4cd5e desktop 1b286a7e7143d8c4ec89cd0d2743a097 distutils-r1 63fea93ca1cc4fdc5fa2247afc4e3a15 elisp-common 23f47b2e1de7abf387105eddd1318738 epatch 9a5f039771f143195164a15a4faa41a1 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 5b8ce72259e08104b337fe28c6de5dbc flag-o-matic 5128c4729303400bd8d4b0b966530955 java-pkg-opt-2 77d2e22d0de7640f817d20e861c0ff3f java-utils-2 0ee72667014428e01a01df2345244cf3 libtool 0081a71a261724730ec4c248494f044d ltprune 607e058da37aa6dabfa408b7d61da72e multibuild 35719a9cd25ec71ee49c966f6868454c multilib 97f470f374f2e94ccab04a2fb21d811e multilib-build 45f0e78dba7de5c77988265229b4402a multilib-minimal bfa1226d0f1fa0093d10b84acd029633 multiprocessing cac3169468f893670dac3e7cb940e045 preserve-libs ef207dc62baddfddfd39a164d9797648 python-r1 0b5829eb6369d7af3a834b6eed7b7107 python-utils-r1 ffa9c3284c6b07b8c9f7933911f63812 toolchain-funcs 1e35303c63cd707f6c3422b4493d5607 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf versionator 26ca8a8bd95d6a74122c08ba98a4ee72 xdg-utils f2c8335407f0b935b0a96d4adf23ef25
|
|
||||||
_md5_=9bad9b1fd6dd170f77b599ba632ab697
|
|
@ -1,15 +0,0 @@
|
|||||||
DEFINED_PHASES=compile configure install postinst postrm prepare test
|
|
||||||
DEPEND=emacs? ( virtual/emacs ) python? ( python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) python_targets_python3_4? ( dev-lang/python:3.4 ) python_targets_python3_5? ( dev-lang/python:3.5 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,python_targets_python3_4(-)?,python_targets_python3_5(-)?,-python_single_target_python2_7(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-)] ) zlib? ( >=sys-libs/zlib-1.2.8-r1[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) test? ( dev-cpp/gmock[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) >=app-portage/elt-patches-20170422 !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.16.1:1.16 >=sys-devel/automake-1.15.1:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4
|
|
||||||
DESCRIPTION=Google's Protocol Buffers -- an efficient method of encoding structured data
|
|
||||||
EAPI=6
|
|
||||||
HOMEPAGE=https://github.com/google/protobuf/ https://developers.google.com/protocol-buffers/
|
|
||||||
IUSE=emacs examples java python static-libs test vim-syntax zlib python_targets_python2_7 python_targets_python3_4 python_targets_python3_5 abi_x86_32 abi_x86_64 abi_x86_x32 abi_mips_n32 abi_mips_n64 abi_mips_o32 abi_ppc_32 abi_ppc_64 abi_s390_32 abi_s390_64
|
|
||||||
KEYWORDS=~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos
|
|
||||||
LICENSE=Apache-2.0
|
|
||||||
PDEPEND=java? ( dev-java/protobuf-java ) python? ( dev-python/protobuf-python[python_targets_python2_7(-)?,python_targets_python3_4(-)?,python_targets_python3_5(-)?,-python_single_target_python2_7(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-)] )
|
|
||||||
RDEPEND=emacs? ( virtual/emacs ) python? ( python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) python_targets_python3_4? ( dev-lang/python:3.4 ) python_targets_python3_5? ( dev-lang/python:3.5 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,python_targets_python3_4(-)?,python_targets_python3_5(-)?,-python_single_target_python2_7(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-)] ) zlib? ( >=sys-libs/zlib-1.2.8-r1[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] )
|
|
||||||
REQUIRED_USE=python? ( || ( python_targets_python2_7 python_targets_python3_4 python_targets_python3_5 ) )
|
|
||||||
SLOT=0/10b3
|
|
||||||
SRC_URI=https://github.com/google/protobuf/archive/v3.0.0-beta-3.1.tar.gz -> protobuf-3.0.0_beta3_p1.tar.gz
|
|
||||||
_eclasses_=autotools d0e5375d47f4c809f406eb892e531513 desktop 1b286a7e7143d8c4ec89cd0d2743a097 elisp-common 23f47b2e1de7abf387105eddd1318738 epatch 9a5f039771f143195164a15a4faa41a1 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 5b8ce72259e08104b337fe28c6de5dbc flag-o-matic 5128c4729303400bd8d4b0b966530955 libtool 0081a71a261724730ec4c248494f044d ltprune 607e058da37aa6dabfa408b7d61da72e multibuild 35719a9cd25ec71ee49c966f6868454c multilib 97f470f374f2e94ccab04a2fb21d811e multilib-build 45f0e78dba7de5c77988265229b4402a multilib-minimal bfa1226d0f1fa0093d10b84acd029633 preserve-libs ef207dc62baddfddfd39a164d9797648 python-r1 0b5829eb6369d7af3a834b6eed7b7107 python-utils-r1 ffa9c3284c6b07b8c9f7933911f63812 toolchain-funcs 1e35303c63cd707f6c3422b4493d5607 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf
|
|
||||||
_md5_=f7e835e00a6cf1129cde36b4d89047dc
|
|
@ -1,15 +0,0 @@
|
|||||||
DEFINED_PHASES=compile configure install postinst postrm prepare test
|
|
||||||
DEPEND=emacs? ( virtual/emacs ) python? ( python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) python_targets_python3_4? ( dev-lang/python:3.4 ) python_targets_python3_5? ( dev-lang/python:3.5 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,python_targets_python3_4(-)?,python_targets_python3_5(-)?,-python_single_target_python2_7(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-)] ) zlib? ( >=sys-libs/zlib-1.2.8-r1[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) test? ( dev-cpp/gmock[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) >=app-portage/elt-patches-20170422 !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.16.1:1.16 >=sys-devel/automake-1.15.1:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4
|
|
||||||
DESCRIPTION=Google's Protocol Buffers -- an efficient method of encoding structured data
|
|
||||||
EAPI=6
|
|
||||||
HOMEPAGE=https://github.com/google/protobuf/ https://developers.google.com/protocol-buffers/
|
|
||||||
IUSE=emacs examples java python static-libs test vim-syntax zlib python_targets_python2_7 python_targets_python3_4 python_targets_python3_5 abi_x86_32 abi_x86_64 abi_x86_x32 abi_mips_n32 abi_mips_n64 abi_mips_o32 abi_ppc_32 abi_ppc_64 abi_s390_32 abi_s390_64
|
|
||||||
KEYWORDS=~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos
|
|
||||||
LICENSE=Apache-2.0
|
|
||||||
PDEPEND=java? ( dev-java/protobuf-java ) python? ( dev-python/protobuf-python[python_targets_python2_7(-)?,python_targets_python3_4(-)?,python_targets_python3_5(-)?,-python_single_target_python2_7(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-)] )
|
|
||||||
RDEPEND=emacs? ( virtual/emacs ) python? ( python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) python_targets_python3_4? ( dev-lang/python:3.4 ) python_targets_python3_5? ( dev-lang/python:3.5 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,python_targets_python3_4(-)?,python_targets_python3_5(-)?,-python_single_target_python2_7(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-)] ) zlib? ( >=sys-libs/zlib-1.2.8-r1[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] )
|
|
||||||
REQUIRED_USE=python? ( || ( python_targets_python2_7 python_targets_python3_4 python_targets_python3_5 ) )
|
|
||||||
SLOT=0/10
|
|
||||||
SRC_URI=https://github.com/google/protobuf/archive/v3.0.2.tar.gz -> protobuf-3.0.2.tar.gz
|
|
||||||
_eclasses_=autotools d0e5375d47f4c809f406eb892e531513 desktop 1b286a7e7143d8c4ec89cd0d2743a097 elisp-common 23f47b2e1de7abf387105eddd1318738 epatch 9a5f039771f143195164a15a4faa41a1 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 5b8ce72259e08104b337fe28c6de5dbc flag-o-matic 5128c4729303400bd8d4b0b966530955 libtool 0081a71a261724730ec4c248494f044d ltprune 607e058da37aa6dabfa408b7d61da72e multibuild 35719a9cd25ec71ee49c966f6868454c multilib 97f470f374f2e94ccab04a2fb21d811e multilib-build 45f0e78dba7de5c77988265229b4402a multilib-minimal bfa1226d0f1fa0093d10b84acd029633 preserve-libs ef207dc62baddfddfd39a164d9797648 python-r1 0b5829eb6369d7af3a834b6eed7b7107 python-utils-r1 ffa9c3284c6b07b8c9f7933911f63812 toolchain-funcs 1e35303c63cd707f6c3422b4493d5607 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf
|
|
||||||
_md5_=ae2c6c2c2e6d17887be3960e7ee12b92
|
|
@ -1,15 +0,0 @@
|
|||||||
DEFINED_PHASES=compile configure install postinst postrm prepare test
|
|
||||||
DEPEND=emacs? ( virtual/emacs ) python? ( python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) python_targets_python3_4? ( dev-lang/python:3.4 ) python_targets_python3_5? ( dev-lang/python:3.5 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,python_targets_python3_4(-)?,python_targets_python3_5(-)?,-python_single_target_python2_7(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-)] ) zlib? ( >=sys-libs/zlib-1.2.8-r1[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) test? ( dev-cpp/gmock[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) >=app-portage/elt-patches-20170422 !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.16.1:1.16 >=sys-devel/automake-1.15.1:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4
|
|
||||||
DESCRIPTION=Google's Protocol Buffers -- an efficient method of encoding structured data
|
|
||||||
EAPI=6
|
|
||||||
HOMEPAGE=https://github.com/google/protobuf/ https://developers.google.com/protocol-buffers/
|
|
||||||
IUSE=emacs examples java python static-libs test vim-syntax zlib python_targets_python2_7 python_targets_python3_4 python_targets_python3_5 abi_x86_32 abi_x86_64 abi_x86_x32 abi_mips_n32 abi_mips_n64 abi_mips_o32 abi_ppc_32 abi_ppc_64 abi_s390_32 abi_s390_64
|
|
||||||
KEYWORDS=~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos
|
|
||||||
LICENSE=Apache-2.0
|
|
||||||
PDEPEND=java? ( dev-java/protobuf-java ) python? ( dev-python/protobuf-python[python_targets_python2_7(-)?,python_targets_python3_4(-)?,python_targets_python3_5(-)?,-python_single_target_python2_7(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-)] )
|
|
||||||
RDEPEND=emacs? ( virtual/emacs ) python? ( python_targets_python2_7? ( >=dev-lang/python-2.7.5-r2:2.7 ) python_targets_python3_4? ( dev-lang/python:3.4 ) python_targets_python3_5? ( dev-lang/python:3.5 ) >=dev-lang/python-exec-2:=[python_targets_python2_7(-)?,python_targets_python3_4(-)?,python_targets_python3_5(-)?,-python_single_target_python2_7(-),-python_single_target_python3_4(-),-python_single_target_python3_5(-)] ) zlib? ( >=sys-libs/zlib-1.2.8-r1[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] )
|
|
||||||
REQUIRED_USE=python? ( || ( python_targets_python2_7 python_targets_python3_4 python_targets_python3_5 ) )
|
|
||||||
SLOT=0/11
|
|
||||||
SRC_URI=https://github.com/google/protobuf/archive/v3.1.0.tar.gz -> protobuf-3.1.0.tar.gz
|
|
||||||
_eclasses_=autotools d0e5375d47f4c809f406eb892e531513 desktop 1b286a7e7143d8c4ec89cd0d2743a097 elisp-common 23f47b2e1de7abf387105eddd1318738 epatch 9a5f039771f143195164a15a4faa41a1 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 5b8ce72259e08104b337fe28c6de5dbc flag-o-matic 5128c4729303400bd8d4b0b966530955 libtool 0081a71a261724730ec4c248494f044d ltprune 607e058da37aa6dabfa408b7d61da72e multibuild 35719a9cd25ec71ee49c966f6868454c multilib 97f470f374f2e94ccab04a2fb21d811e multilib-build 45f0e78dba7de5c77988265229b4402a multilib-minimal bfa1226d0f1fa0093d10b84acd029633 preserve-libs ef207dc62baddfddfd39a164d9797648 python-r1 0b5829eb6369d7af3a834b6eed7b7107 python-utils-r1 ffa9c3284c6b07b8c9f7933911f63812 toolchain-funcs 1e35303c63cd707f6c3422b4493d5607 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf
|
|
||||||
_md5_=6af856c3fbb65b38365961241b810beb
|
|
13
sdk_container/src/third_party/portage-stable/metadata/md5-cache/dev-libs/protobuf-3.4.1
vendored
Normal file
13
sdk_container/src/third_party/portage-stable/metadata/md5-cache/dev-libs/protobuf-3.4.1
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
DEFINED_PHASES=compile configure install postinst postrm prepare test
|
||||||
|
DEPEND=emacs? ( virtual/emacs ) zlib? ( sys-libs/zlib[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) test? ( >=dev-cpp/gtest-1.8.0[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) >=app-portage/elt-patches-20170422 !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.16.1:1.16 >=sys-devel/automake-1.15.1:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4
|
||||||
|
DESCRIPTION=Google's Protocol Buffers - Extensible mechanism for serializing structured data
|
||||||
|
EAPI=6
|
||||||
|
HOMEPAGE=https://developers.google.com/protocol-buffers/ https://github.com/google/protobuf
|
||||||
|
IUSE=emacs examples static-libs test zlib abi_x86_32 abi_x86_64 abi_x86_x32 abi_mips_n32 abi_mips_n64 abi_mips_o32 abi_ppc_32 abi_ppc_64 abi_s390_32 abi_s390_64
|
||||||
|
KEYWORDS=~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos
|
||||||
|
LICENSE=BSD
|
||||||
|
RDEPEND=emacs? ( virtual/emacs ) zlib? ( sys-libs/zlib[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] )
|
||||||
|
SLOT=0/14
|
||||||
|
SRC_URI=https://github.com/google/protobuf/archive/v3.4.1.tar.gz -> protobuf-3.4.1.tar.gz
|
||||||
|
_eclasses_=autotools d0e5375d47f4c809f406eb892e531513 desktop 1b286a7e7143d8c4ec89cd0d2743a097 elisp-common 23f47b2e1de7abf387105eddd1318738 epatch 9a5f039771f143195164a15a4faa41a1 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 5b8ce72259e08104b337fe28c6de5dbc flag-o-matic 5128c4729303400bd8d4b0b966530955 libtool 0081a71a261724730ec4c248494f044d ltprune 607e058da37aa6dabfa408b7d61da72e multibuild 35719a9cd25ec71ee49c966f6868454c multilib 97f470f374f2e94ccab04a2fb21d811e multilib-build 45f0e78dba7de5c77988265229b4402a multilib-minimal bfa1226d0f1fa0093d10b84acd029633 preserve-libs ef207dc62baddfddfd39a164d9797648 toolchain-funcs 1e35303c63cd707f6c3422b4493d5607 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf
|
||||||
|
_md5_=1ac17313e4c52357ed599819975c6a6f
|
13
sdk_container/src/third_party/portage-stable/metadata/md5-cache/dev-libs/protobuf-3.5.1.1
vendored
Normal file
13
sdk_container/src/third_party/portage-stable/metadata/md5-cache/dev-libs/protobuf-3.5.1.1
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
DEFINED_PHASES=compile configure install postinst postrm prepare test
|
||||||
|
DEPEND=emacs? ( virtual/emacs ) zlib? ( sys-libs/zlib[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) test? ( >=dev-cpp/gtest-1.8.0[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) >=app-portage/elt-patches-20170422 !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.16.1:1.16 >=sys-devel/automake-1.15.1:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4
|
||||||
|
DESCRIPTION=Google's Protocol Buffers - Extensible mechanism for serializing structured data
|
||||||
|
EAPI=6
|
||||||
|
HOMEPAGE=https://developers.google.com/protocol-buffers/ https://github.com/google/protobuf
|
||||||
|
IUSE=emacs examples static-libs test zlib abi_x86_32 abi_x86_64 abi_x86_x32 abi_mips_n32 abi_mips_n64 abi_mips_o32 abi_ppc_32 abi_ppc_64 abi_s390_32 abi_s390_64
|
||||||
|
KEYWORDS=alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos
|
||||||
|
LICENSE=BSD
|
||||||
|
RDEPEND=emacs? ( virtual/emacs ) zlib? ( sys-libs/zlib[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] )
|
||||||
|
SLOT=0/15
|
||||||
|
SRC_URI=https://github.com/google/protobuf/archive/v3.5.1.1.tar.gz -> protobuf-3.5.1.1.tar.gz
|
||||||
|
_eclasses_=autotools d0e5375d47f4c809f406eb892e531513 desktop 1b286a7e7143d8c4ec89cd0d2743a097 elisp-common 23f47b2e1de7abf387105eddd1318738 epatch 9a5f039771f143195164a15a4faa41a1 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 5b8ce72259e08104b337fe28c6de5dbc flag-o-matic 5128c4729303400bd8d4b0b966530955 libtool 0081a71a261724730ec4c248494f044d ltprune 607e058da37aa6dabfa408b7d61da72e multibuild 35719a9cd25ec71ee49c966f6868454c multilib 97f470f374f2e94ccab04a2fb21d811e multilib-build 45f0e78dba7de5c77988265229b4402a multilib-minimal bfa1226d0f1fa0093d10b84acd029633 preserve-libs ef207dc62baddfddfd39a164d9797648 toolchain-funcs 1e35303c63cd707f6c3422b4493d5607 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf
|
||||||
|
_md5_=2d579c95c24efad26aa0ddca017ab068
|
13
sdk_container/src/third_party/portage-stable/metadata/md5-cache/dev-libs/protobuf-3.5.2
vendored
Normal file
13
sdk_container/src/third_party/portage-stable/metadata/md5-cache/dev-libs/protobuf-3.5.2
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
DEFINED_PHASES=compile configure install postinst postrm prepare test
|
||||||
|
DEPEND=emacs? ( virtual/emacs ) zlib? ( sys-libs/zlib[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) test? ( >=dev-cpp/gtest-1.8.0[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] ) >=app-portage/elt-patches-20170422 !<sys-devel/gettext-0.18.1.1-r3 || ( >=sys-devel/automake-1.16.1:1.16 >=sys-devel/automake-1.15.1:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4
|
||||||
|
DESCRIPTION=Google's Protocol Buffers - Extensible mechanism for serializing structured data
|
||||||
|
EAPI=6
|
||||||
|
HOMEPAGE=https://developers.google.com/protocol-buffers/ https://github.com/google/protobuf
|
||||||
|
IUSE=emacs examples static-libs test zlib abi_x86_32 abi_x86_64 abi_x86_x32 abi_mips_n32 abi_mips_n64 abi_mips_o32 abi_ppc_32 abi_ppc_64 abi_s390_32 abi_s390_64
|
||||||
|
KEYWORDS=alpha amd64 arm arm64 ~hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos
|
||||||
|
LICENSE=BSD
|
||||||
|
RDEPEND=emacs? ( virtual/emacs ) zlib? ( sys-libs/zlib[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] )
|
||||||
|
SLOT=0/15
|
||||||
|
SRC_URI=https://github.com/google/protobuf/archive/v3.5.2.tar.gz -> protobuf-3.5.2.tar.gz
|
||||||
|
_eclasses_=autotools d0e5375d47f4c809f406eb892e531513 desktop 1b286a7e7143d8c4ec89cd0d2743a097 elisp-common 23f47b2e1de7abf387105eddd1318738 epatch 9a5f039771f143195164a15a4faa41a1 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 5b8ce72259e08104b337fe28c6de5dbc flag-o-matic 5128c4729303400bd8d4b0b966530955 libtool 0081a71a261724730ec4c248494f044d ltprune 607e058da37aa6dabfa408b7d61da72e multibuild 35719a9cd25ec71ee49c966f6868454c multilib 97f470f374f2e94ccab04a2fb21d811e multilib-build 45f0e78dba7de5c77988265229b4402a multilib-minimal bfa1226d0f1fa0093d10b84acd029633 preserve-libs ef207dc62baddfddfd39a164d9797648 toolchain-funcs 1e35303c63cd707f6c3422b4493d5607 vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf
|
||||||
|
_md5_=e7515c27d35d6b8adf413f7f31fc62df
|
Loading…
x
Reference in New Issue
Block a user