1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools multilib-minimal
11 DESCRIPTION="Protocol Buffers implementation in C"
12 HOMEPAGE="https://github.com/protobuf-c/protobuf-c"
13 SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${MY_PV}/${MY_P}.tar.gz"
16 # Subslot == SONAME version
18 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 sparc x86"
19 IUSE="static-libs test"
20 RESTRICT="!test? ( test )"
22 BDEPEND=">=dev-libs/protobuf-3:0
23 virtual/pkgconfig[${MULTILIB_USEDEP}]"
24 DEPEND=">=dev-libs/protobuf-3:0=[${MULTILIB_USEDEP}]"
27 S="${WORKDIR}/${MY_P}"
32 eapply "${FILESDIR}"/${PN}-1.3.0-no-build-tests.patch
38 multilib_src_configure() {
40 $(use_enable static-libs static)
42 ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"