summaryrefslogtreecommitdiff
path: root/dev-libs/protobuf-c
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-libs/protobuf-c
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-libs/protobuf-c')
-rw-r--r--dev-libs/protobuf-c/Manifest16
-rw-r--r--dev-libs/protobuf-c/files/protobuf-c-1.1.0-no-build-tests.patch29
-rw-r--r--dev-libs/protobuf-c/files/protobuf-c-1.2.0-no-build-tests.patch30
-rw-r--r--dev-libs/protobuf-c/files/protobuf-c-1.3.0-no-build-tests.patch30
-rw-r--r--dev-libs/protobuf-c/files/protobuf-c-1.3.0-restore-protobuf-2-compatibility.patch33
-rw-r--r--dev-libs/protobuf-c/metadata.xml8
-rw-r--r--dev-libs/protobuf-c/protobuf-c-1.0.2-r1.ebuild24
-rw-r--r--dev-libs/protobuf-c/protobuf-c-1.1.1.ebuild33
-rw-r--r--dev-libs/protobuf-c/protobuf-c-1.2.1-r1.ebuild39
-rw-r--r--dev-libs/protobuf-c/protobuf-c-1.3.0-r1.ebuild42
-rw-r--r--dev-libs/protobuf-c/protobuf-c-1.3.0.ebuild39
11 files changed, 323 insertions, 0 deletions
diff --git a/dev-libs/protobuf-c/Manifest b/dev-libs/protobuf-c/Manifest
new file mode 100644
index 000000000000..2f2e05fa0f3e
--- /dev/null
+++ b/dev-libs/protobuf-c/Manifest
@@ -0,0 +1,16 @@
+AUX protobuf-c-1.1.0-no-build-tests.patch 1108 SHA256 d53bbc9925c06b13c344574eb46f642a5c2231ae1df6cec3f53afd482d5ef0fb SHA512 631782453df70da302e614b62d14b67fe95dfd3b348c6c127ed197b8d1121f58e379b74f2a0886d4347017aad9097570682d9f5439bd4a246709f6a89044daa9 WHIRLPOOL 2ea4a97309bd46114e2dc3fa99e083e0511e6b0306c223c6d51a5018d3c3711597f54fe78180524ce3f5f84134013144e11945efb3bf0e1048c045a9a98ba91d
+AUX protobuf-c-1.2.0-no-build-tests.patch 1062 SHA256 5c8fe4b2b1651a35d8b61df9c6cfb37a473641d9b3f82f016a35a485059db747 SHA512 4f16d7b2584cc5e3612a37d93b95b013501478fddee3d3e2759dd06752ff2aa6c18ee843a590c8fd1ca1a95e33f0246d1aee45b59e3b2fa0f5dd8e8b17094604 WHIRLPOOL d5207184d04c984acd6983bd635eb79bdeb62a4b8218b09987b0d830c13e31be95aa15fe1afb6eab13e76d3f24f37c0e53fc39945b5e475a58094891f06f9bfe
+AUX protobuf-c-1.3.0-no-build-tests.patch 1020 SHA256 1a9bc66a76e9f65b380df328ebcc2d68106cf847d52d66034a7cbc94091a46c2 SHA512 c6b6f37d8d0fb1ac14e650cc521034267b0af06525249078cc81fc8a3d551dc446bb5285228ca349ce18581979ea88eb9765233154cfbbedd8c4a937987d2684 WHIRLPOOL d47494286df63dfad78b21845b94db6c750be7cb5c9031221ccc10932bdcd28a5f463a6cbdc3902df30abbdfc540f3a65fb2c4b34ce64e852681ee3bcae03429
+AUX protobuf-c-1.3.0-restore-protobuf-2-compatibility.patch 1182 SHA256 6b9bf055f21529fd69acf97a92a6bd18fb35284d25edd359070881e96c6f1b8b SHA512 82761f41d60ad7ab69f3ca9479593bd25d4d2225b9e6f8b2b4d9f577f0ca36572432b0dc6f94ba8729da87d4b5474b977037fbf5b4dd27c3fda186e7307d8eba WHIRLPOOL cf8ef3ee44e6f8583ed83a4f4608616c2175cd122d1582807471ac1c436283be8ba90d8e206ee6c2d837e0992c6852be1881dcd2344fa034f3068fec270129a5
+DIST protobuf-c-1.0.2.tar.gz 449923 SHA256 db771f7b0e76d5bb14140a50df4a32553288fd3e701b60e90e034e22f411ef76 SHA512 d748712f4216015802ffeff1072266da98ba9d9a4dfdaecd1c1b9d76f15403112b5cc2563a54390653c5eb82d7b51caf4c1f595cf1287bcbb123efb646e12f33 WHIRLPOOL 7a18446fc7ea27c10cbc0393f96859f237fcf29c962e982270b8f4cd10e27366b42cc38d418e973d4295e41e7da522fc577df296063e8f723a51415a6783d48d
+DIST protobuf-c-1.1.1.tar.gz 454913 SHA256 09c5bb187b7a8e86bc0ff860f7df86370be9e8661cdb99c1072dcdab0763562c SHA512 9eeb3165ca53c57091503866e2600d675e03d79c22dbd41bd3c4ebf8e569ed147f0b832e8b68dcdaece2f151798e7e0589fdf975e9a04fae9904991e89ea0465 WHIRLPOOL 4e117812916d5f54432edc01437e5c4a35dd953f2da2a94d312ee8ebfba1523e74c13012120532cd1d7bd90a0f0717804e53366f128bd8fc909fffd271044e4f
+DIST protobuf-c-1.2.1.tar.gz 458614 SHA256 846eb4846f19598affdc349d817a8c4c0c68fd940303e6934725c889f16f00bd SHA512 032b82dde333e286a3aff1a621be9e497122d38ce8f337275842a55be083232605387a516cfd4b9a09f8f7caf8817c14e596570352bc6ae495c3a3f15ac00959 WHIRLPOOL f87dc4dd6b7c6a5de964790369aeb88ac4c97f27aaad131b817771374f767cd2967bbf71c91910fe962a8d009fab52d5777b0096ecc0818f720550f3ffdeb06e
+DIST protobuf-c-1.3.0.tar.gz 488443 SHA256 5dc9ad7a9b889cf7c8ff6bf72215f1874a90260f60ad4f88acf21bb15d2752a1 SHA512 ba49bf45a9ae93d41f200f4f18c4f9469c63fcc2a2392b3b45f083c378a6876891890448ceba216083ad351aa35f4669cd920973f53e5780de9ec4c8f61279bb WHIRLPOOL 915cb9ace5254721ab0dce009505d0c093032f28d7501fe5cfa4051a7a0b901cfbea8a81bba20c63962514196b24175b9854f27a1a614ac71bc0cdf3f4b22df6
+EBUILD protobuf-c-1.0.2-r1.ebuild 590 SHA256 ad78642e709931e6be731df9a63a5a8226bd7bd1b13adafb50a80a83b8321362 SHA512 947afcdeb6d9c563d38cd163c01f0a37ed5a0c10643648732de09717458640bddb024d927fd290bffbb320cf50aba7633e0008decf3959a9ba39e1cbaf819e67 WHIRLPOOL 6e4d1b01e86bccebaf56e6cffeebb6e5fc833d8f48cb2573ff33ab1cd0b7077a4e68fda89203085b0fa732593c6e7003dec88b693f5d28bbfb155c8bf503432e
+EBUILD protobuf-c-1.1.1.ebuild 818 SHA256 9c3e58ce43ecb8ef63e826f08bc812f35ccd7343bb5cd7d8fc9aef40536f51ce SHA512 9d00a07f79210aba5879f9c8691f3398de1062ee403fbd289a5a642994ad1ea60de80f58da3a21437defb6ed4244965c781b07d569ddd018ae45adc5bfe9db6d WHIRLPOOL 01f440a95eb8d3ff7019df93154b158a08837b7ff1da98952125ed1d506f3c2ebae83be062f48b2fff7a360a7d270a8e37d2735e2e3a968fdd3eefafe621dd3c
+EBUILD protobuf-c-1.2.1-r1.ebuild 916 SHA256 aae2c9ebe375b5d5981ff1ea8dd790208622e32bef8f0f231c2d674e9214a8bb SHA512 e81103c60409ee2d448c1c136d8d987948107e23f8e8e568dd882d054f225ed207d815cfe3ccf1befdf8363a010e90520f76b33c5daa9830f8121749acc07620 WHIRLPOOL e149d144b697a55886122724a7f9fe00efef96fe43e0b5cc8537347481bd22d20a8d4fc4d0db0c3a49a6edde2eee7190ebc5a0d5763d323c5f80048c4203e29a
+EBUILD protobuf-c-1.3.0-r1.ebuild 995 SHA256 575f9b213f5a59eae5cbd275cdca5c09b6ebc4c70a27e9dc41378cdb603e405c SHA512 a17dead9219b51a8d7510803c61cbf56366ed7af1c269cefbb9f14e4784eeb14cbb7114e57229a0aa5aa0d770e92846049010787b5abf763f2e1264cf4cca4c0 WHIRLPOOL bfefd4bdeb72e1739494b97b84da15f72ca52bed9415027bb2fa93becacd2b2f270b9bad34de1de4939161f0c660e30df7cd397a1f6b1f27177f5f5552ffe2ad
+EBUILD protobuf-c-1.3.0.ebuild 922 SHA256 d8d8525050a92ae1021cdeecc96b158748992f9e0b2e7d26b6d8956002258948 SHA512 ba060b39dbce6fa37ecbc940b5540bdfd81840d4f3c4bca2fd4e5830eb3f912a29bc49dc13e76d46fbe17e05be6543c892b7957d6a7e6c15ae71da84a87d5506 WHIRLPOOL cd72735ce66e505629e6d1acbb7308e0ac0b398dff1acf346d22b5a3a504ebeabfc5ce63c8d87415853c22999f68afe1aea67b4c1b7b2d2570062dd5adaf978e
+MISC ChangeLog 4497 SHA256 ab298f2c999c1f0028644b06dd65aa9225aef6c73c57a0f34e0182cc6916f87e SHA512 8e7eb73794fb593c1d1f8dabcc79918dbe66b5f492b597fc698a342b537f2c0ed100904ed17432e42c553e7d91ce4db53ac0f78fb789fd25dd52f2bf84fdb23f WHIRLPOOL 69d84b141f24bcdf2b6ff1e443709761be2b7dc7eab1191f5691fff157d552daf68de5321af2f45c6a80c2bdabdc3d98e5ba47aa52059c61407a3485d2993aaf
+MISC ChangeLog-2015 3651 SHA256 8b60d31f7f97b271a80ac15bd38386aabf615f08ef089c1b112b595dacb9fcae SHA512 bfc72890482df31bbe9ddd1be5114d8068e95650bec4a054ec9441c952fe86b7727656e770b7520d259f58e0e6cd927ce029c92cd09fb887554dacdc4b5e42aa WHIRLPOOL bbea1a0839ae0fedaec7f1f72b996a85827ecbad4a2710b725d47a827ccac9c56a9202fad463d4a62179799e7778836b06372d6e175d54ae06012958d3ece9e7
+MISC metadata.xml 258 SHA256 750113c79880a07d9f530a3064b2cdee60b014e2f125aebe25306f3169f911be SHA512 92e3b05f2cf1d2ff09b852d2ad8707f55b4cd3fc78df317fa5234a9c0018405cfad67d90211435963983440228dfb75de28ab7ee62f1a80bb97192768d93ce92 WHIRLPOOL 313a756ccbede646a646f8900835a0b79c695ed7f2f0ea1cedf2c525c98770427fb371bf5da96d6dfe3e704b0c48e0e2480f389ec73014783820890fd1ea31db
diff --git a/dev-libs/protobuf-c/files/protobuf-c-1.1.0-no-build-tests.patch b/dev-libs/protobuf-c/files/protobuf-c-1.1.0-no-build-tests.patch
new file mode 100644
index 000000000000..4e611d710705
--- /dev/null
+++ b/dev-libs/protobuf-c/files/protobuf-c-1.1.0-no-build-tests.patch
@@ -0,0 +1,29 @@
+https://bugs.gentoo.org/518440
+
+avoid compiling tests when we aren't actually testing, especially since it
+requires a compiler to execute which fails when cross-compiling
+
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -135,7 +135,7 @@ t_generated_code2_test_generated_code2_SOURCES = \
+ t_generated_code2_test_generated_code2_LDADD = \
+ protobuf-c/libprotobuf-c.la
+
+-noinst_PROGRAMS += \
++check_PROGRAMS += \
+ t/generated-code2/cxx-generate-packed-data
+
+ t_generated_code2_cxx_generate_packed_data_SOURCES = \
+@@ -160,12 +160,6 @@ t/test-full.pb.cc t/test-full.pb.h: @PROTOC@ $(top_srcdir)/t/test-full.proto
+ t/generated-code2/test-full-cxx-output.inc: t/generated-code2/cxx-generate-packed-data$(EXEEXT)
+ $(AM_V_GEN)$(top_builddir)/t/generated-code2/cxx-generate-packed-data$(EXEEXT) > $(top_builddir)/t/generated-code2/test-full-cxx-output.inc
+
+-BUILT_SOURCES += \
+- t/test.pb-c.c t/test.pb-c.h \
+- t/test-full.pb-c.c t/test-full.pb-c.h \
+- t/test-full.pb.cc t/test-full.pb.h \
+- t/generated-code2/test-full-cxx-output.inc
+-
+ t_version_version_SOURCES = \
+ t/version/version.c
+ t_version_version_LDADD = \
diff --git a/dev-libs/protobuf-c/files/protobuf-c-1.2.0-no-build-tests.patch b/dev-libs/protobuf-c/files/protobuf-c-1.2.0-no-build-tests.patch
new file mode 100644
index 000000000000..c11e98df5784
--- /dev/null
+++ b/dev-libs/protobuf-c/files/protobuf-c-1.2.0-no-build-tests.patch
@@ -0,0 +1,30 @@
+https://bugs.gentoo.org/518440
+
+avoid compiling tests when we aren't actually testing, especially since it
+requires a compiler to execute which fails when cross-compiling
+
+--- protobuf-c-1.2.0/Makefile.am
++++ protobuf-c-1.2.0/Makefile.am
+@@ -142,7 +142,7 @@
+ t_generated_code2_test_generated_code2_LDADD = \
+ protobuf-c/libprotobuf-c.la
+
+-noinst_PROGRAMS += \
++check_PROGRAMS += \
+ t/generated-code2/cxx-generate-packed-data
+
+ t_generated_code2_cxx_generate_packed_data_SOURCES = \
+@@ -170,13 +170,6 @@
+ t/generated-code2/test-full-cxx-output.inc: t/generated-code2/cxx-generate-packed-data$(EXEEXT)
+ $(AM_V_GEN)$(top_builddir)/t/generated-code2/cxx-generate-packed-data$(EXEEXT) > $(top_builddir)/t/generated-code2/test-full-cxx-output.inc
+
+-BUILT_SOURCES += \
+- t/test.pb-c.c t/test.pb-c.h \
+- t/test-full.pb-c.c t/test-full.pb-c.h \
+- t/test-optimized.pb-c.c t/test-optimized.pb-c.h \
+- t/test-full.pb.cc t/test-full.pb.h \
+- t/generated-code2/test-full-cxx-output.inc
+-
+ t_version_version_SOURCES = \
+ t/version/version.c
+ t_version_version_LDADD = \
diff --git a/dev-libs/protobuf-c/files/protobuf-c-1.3.0-no-build-tests.patch b/dev-libs/protobuf-c/files/protobuf-c-1.3.0-no-build-tests.patch
new file mode 100644
index 000000000000..55116c67e416
--- /dev/null
+++ b/dev-libs/protobuf-c/files/protobuf-c-1.3.0-no-build-tests.patch
@@ -0,0 +1,30 @@
+https://bugs.gentoo.org/518440
+
+avoid compiling tests when we aren't actually testing, especially since it
+requires a compiler to execute which fails when cross-compiling
+
+--- protobuf-c-1.3.0/Makefile.am
++++ protobuf-c-1.3.0/Makefile.am
+@@ -150,7 +150,7 @@
+ t_generated_code2_test_generated_code2_LDADD = \
+ protobuf-c/libprotobuf-c.la
+
+-noinst_PROGRAMS += \
++check_PROGRAMS += \
+ t/generated-code2/cxx-generate-packed-data
+
+ t_generated_code2_cxx_generate_packed_data_SOURCES = \
+@@ -178,13 +178,6 @@
+ t/generated-code2/test-full-cxx-output.inc: t/generated-code2/cxx-generate-packed-data$(EXEEXT)
+ $(AM_V_GEN)$(top_builddir)/t/generated-code2/cxx-generate-packed-data$(EXEEXT) > $(top_builddir)/t/generated-code2/test-full-cxx-output.inc
+
+-BUILT_SOURCES += \
+- t/test.pb-c.c t/test.pb-c.h \
+- t/test-full.pb-c.c t/test-full.pb-c.h \
+- t/test-optimized.pb-c.c t/test-optimized.pb-c.h \
+- t/test-full.pb.cc t/test-full.pb.h \
+- t/generated-code2/test-full-cxx-output.inc
+-
+ if BUILD_PROTO3
+
+ check_PROGRAMS += \
diff --git a/dev-libs/protobuf-c/files/protobuf-c-1.3.0-restore-protobuf-2-compatibility.patch b/dev-libs/protobuf-c/files/protobuf-c-1.3.0-restore-protobuf-2-compatibility.patch
new file mode 100644
index 000000000000..962341b6540d
--- /dev/null
+++ b/dev-libs/protobuf-c/files/protobuf-c-1.3.0-restore-protobuf-2-compatibility.patch
@@ -0,0 +1,33 @@
+From 4302266b45303094616685c7997a6e6015ddadba Mon Sep 17 00:00:00 2001
+From: Robert Edmonds <edmonds@users.noreply.github.com>
+Date: Mon, 7 Aug 2017 12:31:55 -0400
+Subject: [PATCH] Restore protobuf-2.x compatibility
+
+The change in commit 712154b912de824741381c0bb26c2fbed54515a3 ("Bump
+minimum required header version for proto3 syntax") uses functionality
+only exposed by protobuf-3.x, breaking the build when compiling against
+protobuf-2.x.
+
+Since we still want to support building against protobuf-2.x, this
+commit makes the proto3 syntax check in the file generator dependent on
+building against protobuf-3.x.
+---
+ protoc-c/c_file.cc | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/protoc-c/c_file.cc b/protoc-c/c_file.cc
+index 9851768..0f1d770 100644
+--- a/protoc-c/c_file.cc
++++ b/protoc-c/c_file.cc
+@@ -120,9 +120,11 @@ void FileGenerator::GenerateHeader(io::Printer* printer) {
+ string filename_identifier = FilenameIdentifier(file_->name());
+
+ int min_header_version = 1000000;
++#if defined(HAVE_PROTO3)
+ if (file_->syntax() == FileDescriptor::SYNTAX_PROTO3) {
+ min_header_version = 1003000;
+ }
++#endif
+
+ // Generate top of header.
+ printer->Print(
diff --git a/dev-libs/protobuf-c/metadata.xml b/dev-libs/protobuf-c/metadata.xml
new file mode 100644
index 000000000000..b15849585db8
--- /dev/null
+++ b/dev-libs/protobuf-c/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="github">protobuf-c/protobuf-c</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-libs/protobuf-c/protobuf-c-1.0.2-r1.ebuild b/dev-libs/protobuf-c/protobuf-c-1.0.2-r1.ebuild
new file mode 100644
index 000000000000..fc9d7452ffa5
--- /dev/null
+++ b/dev-libs/protobuf-c/protobuf-c-1.0.2-r1.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools-multilib
+
+MY_PV=${PV/_/-}
+MY_P=${PN}-${MY_PV}
+
+DESCRIPTION="Protocol Buffers implementation in C"
+HOMEPAGE="https://github.com/protobuf-c/protobuf-c/"
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${MY_PV}/${MY_P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="amd64 arm ppc ppc64 x86"
+IUSE="static-libs"
+
+RDEPEND=">=dev-libs/protobuf-2.5.0-r2[${MULTILIB_USEDEP}]"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig[${MULTILIB_USEDEP}]"
+
+S=${WORKDIR}/${MY_P}
diff --git a/dev-libs/protobuf-c/protobuf-c-1.1.1.ebuild b/dev-libs/protobuf-c/protobuf-c-1.1.1.ebuild
new file mode 100644
index 000000000000..00dcc508cf72
--- /dev/null
+++ b/dev-libs/protobuf-c/protobuf-c-1.1.1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools-multilib
+
+MY_PV=${PV/_/-}
+MY_P=${PN}-${MY_PV}
+
+DESCRIPTION="Protocol Buffers implementation in C"
+HOMEPAGE="https://github.com/protobuf-c/protobuf-c/"
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${MY_PV}/${MY_P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 sparc x86"
+IUSE="static-libs test"
+
+RDEPEND=">=dev-libs/protobuf-2.6.0[${MULTILIB_USEDEP}]"
+DEPEND="${RDEPEND}
+ test? ( ${AUTOTOOLS_DEPEND} )
+ virtual/pkgconfig[${MULTILIB_USEDEP}]"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ if ! use test ; then
+ epatch "${FILESDIR}"/${PN}-1.1.0-no-build-tests.patch
+ AUTOTOOLS_AUTORECONF=true
+ fi
+ autotools-multilib_src_prepare
+}
diff --git a/dev-libs/protobuf-c/protobuf-c-1.2.1-r1.ebuild b/dev-libs/protobuf-c/protobuf-c-1.2.1-r1.ebuild
new file mode 100644
index 000000000000..7004d26b7e11
--- /dev/null
+++ b/dev-libs/protobuf-c/protobuf-c-1.2.1-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools multilib-minimal
+
+MY_PV=${PV/_/-}
+MY_P=${PN}-${MY_PV}
+
+DESCRIPTION="Protocol Buffers implementation in C"
+HOMEPAGE="https://github.com/protobuf-c/protobuf-c/"
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${MY_PV}/${MY_P}.tar.gz"
+
+LICENSE="BSD-2"
+# Subslot == SONAME version
+SLOT="0/1.0.0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="static-libs test"
+
+RDEPEND=">=dev-libs/protobuf-2.6.0:0=[${MULTILIB_USEDEP}]"
+DEPEND="${RDEPEND}
+ test? ( ${AUTOTOOLS_DEPEND} )
+ virtual/pkgconfig[${MULTILIB_USEDEP}]"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ default
+ if ! use test ; then
+ eapply "${FILESDIR}"/${PN}-1.2.0-no-build-tests.patch
+ eautoreconf
+ fi
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE="${S}" \
+ econf "${myeconfargs[@]}"
+}
diff --git a/dev-libs/protobuf-c/protobuf-c-1.3.0-r1.ebuild b/dev-libs/protobuf-c/protobuf-c-1.3.0-r1.ebuild
new file mode 100644
index 000000000000..06429a30746b
--- /dev/null
+++ b/dev-libs/protobuf-c/protobuf-c-1.3.0-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools multilib-minimal
+
+MY_PV="${PV/_/-}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="Protocol Buffers implementation in C"
+HOMEPAGE="https://github.com/protobuf-c/protobuf-c/"
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${MY_PV}/${MY_P}.tar.gz"
+
+LICENSE="BSD-2"
+# Subslot == SONAME version
+SLOT="0/1.0.0"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ia64 ~mips ppc ppc64 ~sparc x86"
+IUSE="static-libs test"
+
+RDEPEND=">=dev-libs/protobuf-2.6.0:0=[${MULTILIB_USEDEP}]"
+DEPEND="${RDEPEND}
+ test? ( ${AUTOTOOLS_DEPEND} )
+ virtual/pkgconfig[${MULTILIB_USEDEP}]"
+
+PATCHES=( "${FILESDIR}"/${PN}-1.3.0-restore-protobuf-2-compatibility.patch )
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ default
+ if ! use test ; then
+ eapply "${FILESDIR}"/${PN}-1.3.0-no-build-tests.patch
+ fi
+
+ eautoreconf
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE="${S}" \
+ econf "${myeconfargs[@]}"
+}
diff --git a/dev-libs/protobuf-c/protobuf-c-1.3.0.ebuild b/dev-libs/protobuf-c/protobuf-c-1.3.0.ebuild
new file mode 100644
index 000000000000..4e24a882515e
--- /dev/null
+++ b/dev-libs/protobuf-c/protobuf-c-1.3.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools multilib-minimal
+
+MY_PV="${PV/_/-}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="Protocol Buffers implementation in C"
+HOMEPAGE="https://github.com/protobuf-c/protobuf-c/"
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${MY_PV}/${MY_P}.tar.gz"
+
+LICENSE="BSD-2"
+# Subslot == SONAME version
+SLOT="0/1.0.0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="static-libs test"
+
+RDEPEND=">=dev-libs/protobuf-2.6.0:0=[${MULTILIB_USEDEP}]"
+DEPEND="${RDEPEND}
+ test? ( ${AUTOTOOLS_DEPEND} )
+ virtual/pkgconfig[${MULTILIB_USEDEP}]"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ default
+ if ! use test ; then
+ eapply "${FILESDIR}"/${PN}-1.3.0-no-build-tests.patch
+ eautoreconf
+ fi
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE="${S}" \
+ econf "${myeconfargs[@]}"
+}