source: trunk/dports/python/py-protobuf/Portfile

Last change on this file was 150896, checked in by devans@…, 12 months ago

py-google-apputils, py-protobuf: retire py26 subports (#51947).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 150896 2016-08-01 16:58:34Z ryandesign@macports.org $
2
3PortSystem      1.0
4PortGroup       python 1.0
5PortGroup       github 1.0
6
7name            py-protobuf
8version         2.6.1
9revision        2
10categories-append   devel
11maintainers     blair
12license         BSD
13description     Encode data in an efficient yet extensible format.
14
15long_description \
16                Google Protocol Buffers are a flexible, efficient, \
17                automated mechanism for serializing structured data -- \
18                think XML, but smaller, faster, and simpler.  You \
19                define how you want your data to be structured once, \
20                then you can use special generated source code to \
21                easily write and read your structured data to and from \
22                a variety of data streams and using a variety of \
23                languages.  You can even update your data structure \
24                without breaking deployed programs that are compiled \
25                against the "old" format.  You specify how you want \
26                the information you're serializing to be structured by \
27                defining protocol buffer message types in .proto \
28                files.  Each protocol buffer message is a small \
29                logical record of information, containing a series of \
30                name-value pairs.
31
32github.setup    google protobuf ${version} v
33github.tarball_from releases
34homepage        https://github.com/google/protobuf
35master_sites    https://github.com/google/protobuf/releases/download/v${version}
36distfiles       protobuf-${version}.tar.bz2
37worksrcdir      protobuf-${version}
38
39use_bzip2       yes
40checksums       sha1    6421ee86d8fb4e39f21f56991daa892a3e8d314b \
41                sha256  ee445612d544d885ae240ffbcbf9267faa9f593b7b101f21d58beceb92661910
42
43platforms       darwin
44
45python.versions 27
46
47if {${name} ne ${subport}} {
48    depends_build   port:py${python.version}-google-apputils
49    depends_lib     port:protobuf-cpp \
50                    port:py${python.version}-setuptools
51
52    worksrcdir      ${worksrcdir}/python
53
54    destroot.cmd-append    --cpp_implementation
55
56    test.run        yes
57    test.cmd        "${python.bin} setup.py"
58    test.target     test --cpp_implementation
59}
Note: See TracBrowser for help on using the repository browser.