| 1 | # -*- 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 |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | PortGroup github 1.0 |
|---|
| 5 | |
|---|
| 6 | # NOTE: For any version number change, also |
|---|
| 7 | # NOTE: Update py-protobuf3 version's number to match |
|---|
| 8 | # NOTE: For a minor or major version number change, also |
|---|
| 9 | # NOTE: Revbump mosh |
|---|
| 10 | github.setup protocolbuffers protobuf 3.8.0 v |
|---|
| 11 | |
|---|
| 12 | checksums rmd160 6fdecbb2ac2be899f97a8a94c126913071cab6e5 \ |
|---|
| 13 | sha256 ddc96d83f3b7417da53bce2510b94ad2796465ef8763f7a4e82089157efe97aa \ |
|---|
| 14 | size 4545607 |
|---|
| 15 | |
|---|
| 16 | name protobuf3.8-cpp |
|---|
| 17 | categories devel |
|---|
| 18 | maintainers nomaintainer |
|---|
| 19 | license BSD |
|---|
| 20 | |
|---|
| 21 | conflicts protobuf-cpp protobuf3-cpp |
|---|
| 22 | |
|---|
| 23 | description Encode data in an efficient yet extensible format. |
|---|
| 24 | |
|---|
| 25 | long_description \ |
|---|
| 26 | Google Protocol Buffers are a flexible, efficient, \ |
|---|
| 27 | automated mechanism for serializing structured data -- \ |
|---|
| 28 | think XML, but smaller, faster, and simpler. You \ |
|---|
| 29 | define how you want your data to be structured once, \ |
|---|
| 30 | then you can use special generated source code to \ |
|---|
| 31 | easily write and read your structured data to and from \ |
|---|
| 32 | a variety of data streams and using a variety of \ |
|---|
| 33 | languages. You can even update your data structure \ |
|---|
| 34 | without breaking deployed programs that are compiled \ |
|---|
| 35 | against the "old" format. You specify how you want \ |
|---|
| 36 | the information you're serializing to be structured by \ |
|---|
| 37 | defining protocol buffer message types in .proto \ |
|---|
| 38 | files. Each protocol buffer message is a small \ |
|---|
| 39 | logical record of information, containing a series of \ |
|---|
| 40 | name-value pairs. |
|---|
| 41 | |
|---|
| 42 | homepage https://developers.google.com/protocol-buffers/ |
|---|
| 43 | |
|---|
| 44 | github.tarball_from releases |
|---|
| 45 | distname protobuf-cpp-${version} |
|---|
| 46 | worksrcdir protobuf-${version} |
|---|
| 47 | |
|---|
| 48 | compiler.cxx_standard 2011 |
|---|
| 49 | compiler.thread_local_storage yes |
|---|
| 50 | |
|---|
| 51 | # bundled libtool version doesn't recognise -stdlib |
|---|
| 52 | use_autoreconf yes |
|---|
| 53 | |
|---|
| 54 | platforms darwin |
|---|
| 55 | |
|---|
| 56 | depends_lib port:zlib |
|---|
| 57 | |
|---|
| 58 | # see https://trac.macports.org/wiki/UsingTheRightCompiler |
|---|
| 59 | configure.env-append \ |
|---|
| 60 | CC_FOR_BUILD=${configure.cc} \ |
|---|
| 61 | CXX_FOR_BUILD=${configure.cxx} |
|---|
| 62 | |
|---|
| 63 | configure.cflags-append -g |
|---|
| 64 | configure.cppflags-append -g |
|---|
| 65 | |
|---|
| 66 | post-destroot { |
|---|
| 67 | set docdir ${destroot}${prefix}/share/doc/${name} |
|---|
| 68 | |
|---|
| 69 | xinstall -d -m 755 ${docdir} |
|---|
| 70 | |
|---|
| 71 | foreach f {CHANGES.txt CONTRIBUTORS.txt LICENSE README.md editors examples} { |
|---|
| 72 | file copy ${worksrcpath}/${f} ${docdir} |
|---|
| 73 | } |
|---|
| 74 | } |
|---|
| 75 | |
|---|
| 76 | test.run yes |
|---|
| 77 | test.target check |
|---|
| 78 | |
|---|
| 79 | github.livecheck.regex {([0-9.]+)} |
|---|