<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/795be98ef64124b1379293cc13c2eb175270d425">https://github.com/macports/macports-ports/commit/795be98ef64124b1379293cc13c2eb175270d425</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'>     new 795be98ef64 sentencepiece: Update to 0.1.99 and use external protobuf
</span>795be98ef64 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 795be98ef64124b1379293cc13c2eb175270d425
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Sun May 21 13:08:20 2023 -0500

<span style='display:block; white-space:pre;color:#404040;'>    sentencepiece: Update to 0.1.99 and use external protobuf
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Closes: https://trac.macports.org/ticket/67471
</span>---
 textproc/sentencepiece/Portfile                    | 18 ++++++++++------
 .../files/fix-overlinking-with-protobuf.patch      | 24 ++++++++++++++++++++++
 2 files changed, 36 insertions(+), 6 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/textproc/sentencepiece/Portfile b/textproc/sentencepiece/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 8a9f6d5c015..9fb3f02ff8f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/textproc/sentencepiece/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/textproc/sentencepiece/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6,10 +6,13 @@ PortGroup           github 1.0
</span> 
 # If you update this port, also update the py-sentencepiece to latest version.
 # `py-sentencepiece` is closely coupled to `sentencepiece`.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-github.setup        google sentencepiece 0.1.97 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup        google sentencepiece 0.1.99 v
</span> revision            0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-categories          textproc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums           rmd160  c312f02a761517825c67a1dfcdcb17dee8e51a4c \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    sha256  63617eaf56c7a3857597dcd8780461f57dd21381b56a27716ef7d7e02e14ced4 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    size    11960799
</span> 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+categories          textproc
</span> license             Apache-2
 maintainers         nomaintainer
 
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -27,14 +30,17 @@ long_description    SentencePiece is an unsupervised text tokenizer \
</span>                     a purely end-to-end system that does not depend \
                     on language-specific pre/postprocessing.
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums           rmd160  de3ed2ed6103ae71339d99a399223a9b94c0ea3c \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                    sha256  aeb50103249d07018545db3ed8580427aa5a73d6af92b94577dc40626c071beb \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                    size    11945683
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.tarball_from archive
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append  port:gperftools \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:protobuf3-cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles          fix-overlinking-with-protobuf.patch
</span> 
 compiler.cxx_standard           2017
 compiler.thread_local_storage   yes
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_lib-append  port:gperftools
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args      -DSPM_USE_BUILTIN_PROTOBUF=OFF
</span> 
 platform darwin {
     if {[string match *gcc* ${configure.compiler}]} {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/textproc/sentencepiece/files/fix-overlinking-with-protobuf.patch b/textproc/sentencepiece/files/fix-overlinking-with-protobuf.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..167b1e148ad
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/textproc/sentencepiece/files/fix-overlinking-with-protobuf.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,24 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix overlinking with protobuf.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/google/sentencepiece/pull/870
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- CMakeLists.txt.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ CMakeLists.txt
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -70,7 +70,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (SPM_USE_BUILTIN_PROTOBUF)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   set(libprotobuf_lite "")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-  set(libprotobuf_lite "-lprotobuf-lite")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++  set(libprotobuf_lite "protobuf-lite")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (MSVC)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- sentencepiece.pc.in.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ sentencepiece.pc.in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -6,5 +6,6 @@ includedir=@includedir_for_pc_file@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Name: @PROJECT_NAME@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Description: Unsupervised text tokenizer and detokenizer for Neural Network-based text generation.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Version: @PROJECT_VERSION@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-Libs: -L${libdir} -lsentencepiece -lsentencepiece_train @libprotobuf_lite@ @pkgconfiglibs@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-Cflags: -I${includedir} @pkgconfigcflags@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++Libs: -L${libdir} -lsentencepiece -lsentencepiece_train
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++Cflags: -I${includedir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++Requires.private: @libprotobuf_lite@
</span></pre><pre style='margin:0'>

</pre>