Ticket #59826: Portfile

File Portfile, 2.7 KB (added by someuser12, 5 years ago)

Portfile for protobuf3.8-cpp (workaround is to downgrade protobuf3-cpp and py-protobuf3)

Line 
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
3PortSystem                1.0
4PortGroup       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
10github.setup    protocolbuffers protobuf 3.8.0 v
11
12checksums       rmd160  6fdecbb2ac2be899f97a8a94c126913071cab6e5 \
13                sha256  ddc96d83f3b7417da53bce2510b94ad2796465ef8763f7a4e82089157efe97aa \
14                size    4545607
15
16name            protobuf3.8-cpp
17categories      devel
18maintainers     nomaintainer
19license         BSD
20
21conflicts       protobuf-cpp protobuf3-cpp
22
23description     Encode data in an efficient yet extensible format.
24
25long_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
42homepage        https://developers.google.com/protocol-buffers/
43
44github.tarball_from releases
45distname        protobuf-cpp-${version}
46worksrcdir      protobuf-${version}
47
48compiler.cxx_standard   2011
49compiler.thread_local_storage   yes
50
51# bundled libtool version doesn't recognise -stdlib
52use_autoreconf  yes
53
54platforms       darwin
55
56depends_lib     port:zlib
57
58# see https://trac.macports.org/wiki/UsingTheRightCompiler
59configure.env-append \
60    CC_FOR_BUILD=${configure.cc} \
61    CXX_FOR_BUILD=${configure.cxx}
62
63configure.cflags-append     -g
64configure.cppflags-append   -g
65
66post-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
76test.run    yes
77test.target check
78
79github.livecheck.regex  {([0-9.]+)}