# $Id: Portfile 65908 2010-04-02 22:28:17Z jmr@macports.org $

PortSystem      1.0
PortGroup       python26 1.0

name            protobuf-python26
version         2.3.0
categories      devel
maintainers     blair
description     Encode data in an efficient yet extensible format.

long_description \
                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 \
                name-value pairs.

homepage        http://code.google.com/p/protobuf/
master_sites    googlecode:protobuf

distname        protobuf-${version}
dist_subdir     protobuf-cpp
use_bzip2       yes
checksums       md5 f2964f636b3c67d1e9d8b90819fa8ddb \
                sha1 db0fbdc58be22a676335a37787178a4dfddf93c6 \
                rmd160 92b9c374ce3ccbb0b0d22d08e9f9d3a5a68d1ac8

platforms       darwin

depends_lib     port:protobuf-cpp \
                port:py26-distribute

worksrcdir      ${worksrcdir}/python

test.run        yes
test.cmd        "${prefix}/bin/python2.6 setup.py"
test.target     test
