opencc: bump revision

This commit is contained in:
Aaron Ji
2025-12-22 21:55:15 +08:00
committed by Renee Otten
parent a643759a7e
commit 1475162272
+7 -3
View File
@@ -5,7 +5,7 @@ PortGroup cmake 1.1
PortGroup github 1.0
github.setup BYVoid OpenCC 1.1.9 ver.
revision 0
revision 1
checksums rmd160 11494a72423a298d39d7e5f77746a6b906702b73 \
sha256 ad4bcd8d87219a240a236d4a55c9decd2132a9436697d2882ead85c8939b0a99 \
size 3422511
@@ -31,9 +31,13 @@ depends_lib port:marisa-trie
patchfiles patch-data-CMakeLists.txt.diff
compiler.cxx_standard \
2014
2017
configure.args -DUSE_SYSTEM_MARISA=ON
# include/marisa/key.h:22:21: error: 'std::string_view' has not been declared
post-patch {
reinplace "s|CMAKE_CXX_STANDARD 14|CMAKE_CXX_STANDARD 17|" ${worksrcpath}/CMakeLists.txt
reinplace "s|std=c++14|std=c++17|g" ${worksrcpath}/CMakeLists.txt
}
if {${os.platform} ne "darwin" || ${os.major} >= 21} {
configure.args-append -DPYTHON_EXECUTABLE=/usr/bin/python3