# Copyright 2013 William Orr <will@worrbase.com>
# Copyright 2016 Julian Ospald <hasufell@posteo.de>
# Distributed under the terms of the GNU General Public License v2

require github [ tag=v${PV} ] autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.13 ] ]

SUMMARY="C bindings for the protobuf library"
DESCRIPTION="
Allows you to use protobuf library in C. Provides both a library and the code generator.
"

LICENCES="BSD-3"
SLOT="0"
PLATFORMS="~amd64"
MYOPTIONS=""

DEPENDENCIES="
    build+run:
        dev-libs/protobuf[>=2.6.0]
    build:
        virtual/pkg-config
"

DEFAULT_SRC_PREPARE_PATCHES=( "${FILES}"/${PNV}-no-build-tests.patch )