# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
maintainers {toby @tobypeterson} openmaintainer
description Encode data in an efficient yet extensible format.
Google Protocol Buffers are a flexible, efficient, \
automated mechanism for serializing structured data -- \
think XML, but smaller, faster, and simpler. You \
define how you want your data to be structured once, \
then you can use special generated source code to \
easily write and read your structured data to and from \
a variety of data streams and using a variety of \
languages. You can even update your data structure \
without breaking deployed programs that are compiled \
against the "old" format. You specify how you want \
the information you're serializing to be structured by \
defining protocol buffer message types in .proto \
files. Each protocol buffer message is a small \
logical record of information, containing a series of \
github.setup google protobuf ${version} v
github.tarball_from releases
homepage https://github.com/google/protobuf
master_sites https://github.com/google/protobuf/releases/download/v${version}
distfiles protobuf-python-${version}.tar.gz
worksrcdir protobuf-${version}
checksums sha256 39c7a5e7e557b24fc324bec3a73054d277ed9b9b320b273564e04f862131e679 \
rmd160 462a95c51a98fef1ef23986cf45e5bc9703606eb \
python.versions 27 35 36 37 38
if {${name} ne ${subport}} {
conflicts py${python.version}-protobuf
depends_build port:py${python.version}-setuptools
depends_lib port:protobuf3-cpp \
port:py${python.version}-six
worksrcdir ${worksrcdir}/python
# tricks to force the right -stdlib setting
# and to put a needed CXX flag on the 10.6 build
# see https://trac.macports.org/ticket/56482
patchfiles-append patch-py-protobuf3-settings.diff