Skip to content

Commit fc7c8b7

Browse files
committed
protobuf{2,3}-cpp: add notes
1 parent 524fdcf commit fc7c8b7

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

devel/protobuf2-cpp/Portfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,22 @@ long_description \
3232
name-value pairs.
3333
homepage https://github.com/google/protobuf
3434

35+
notes-append "
36+
The '${name}' port contains the legacy Protocol Buffers v2 C++
37+
implementation.
38+
39+
To avoid file clashes with the modern 'protobuf' port, all headers, libraries,
40+
and the 'protoc' compiler are now installed under ${prefix}/libexec/${name}.
41+
42+
This port may potentially be removed in the future.
43+
Wherever possible, please migrate builds and scripts to depend on the
44+
'protobuf' port instead.
45+
46+
If you would like to continue using this port's 'protoc' compiler in the
47+
interim, add it to your PATH, e.g.:
48+
export PATH=${prefix}/libexec/${name}/bin:\$PATH
49+
"
50+
3551
distname protobuf-${version}
3652
dist_subdir protobuf-cpp
3753
worksrcdir protobuf-${version}

devel/protobuf3-cpp/Portfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,22 @@ long_description \
4040
name-value pairs.
4141
homepage https://protobuf.dev
4242

43+
notes-append "
44+
The '${name}' port contains the legacy Protocol Buffers v3 C++
45+
implementation.
46+
47+
To avoid file clashes with the modern 'protobuf' port, all headers, libraries,
48+
and the 'protoc' compiler are now installed under ${prefix}/libexec/${name}.
49+
50+
This port may potentially be removed in the future.
51+
Wherever possible, please migrate builds and scripts to depend on the
52+
'protobuf' port instead.
53+
54+
If you would like to continue using this port's 'protoc' compiler in the
55+
interim, add it to your PATH, e.g.:
56+
export PATH=${prefix}/libexec/${name}/bin:\$PATH
57+
"
58+
4359
checksums rmd160 f7c2879e427160c2a5055a2ab5d5ab231304fd31 \
4460
sha256 4eab9b524aa5913c6fffb20b2a8abf5ef7f95a80bc0701f3a6dbb4c607f73460 \
4561
size 4842303

0 commit comments

Comments
 (0)