diff --git a/chinese/opencc/Makefile b/chinese/opencc/Makefile index 0c6f634b2108..293b295039ee 100644 --- a/chinese/opencc/Makefile +++ b/chinese/opencc/Makefile @@ -1,31 +1,24 @@ PORTNAME= opencc -DISTVERSION= 1.1.6 DISTVERSIONPREFIX= ver. +DISTVERSION= 1.3.1 CATEGORIES= chinese converters MAINTAINER= lichray@gmail.com COMMENT= Open Chinese Convert library and utilities WWW= https://github.com/BYVoid/OpenCC LICENSE= APACHE20 +USES= cmake:testing compiler:c++11-lib python:build USE_GITHUB= yes +USE_LDCONFIG= yes GH_ACCOUNT= BYVoid GH_PROJECT= OpenCC -USES= cmake compiler:c++11-lib python:build -USE_LDCONFIG= yes - -OPTIONS_DEFINE= TESTS - -TESTS_DESC= Build the unit testing -TESTS_CMAKE_ON= -DENABLE_GTEST=ON +CMAKE_TESTING_ON= ENABLE_GTEST -MAKE_JOBS_UNSAFE= yes TEST_TARGET= test -post-patch: - @${REINPLACE_CMD} -e "s|python|${PYTHON_CMD}|g" \ - ${WRKSRC}/data/CMakeLists.txt +# tests as of 1.3.1: 100% tests passed, 0 tests failed out of 18 .include diff --git a/chinese/opencc/distinfo b/chinese/opencc/distinfo index e076790557ea..72c7d799fe87 100644 --- a/chinese/opencc/distinfo +++ b/chinese/opencc/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1696659113 -SHA256 (BYVoid-OpenCC-ver.1.1.6_GH0.tar.gz) = 169bff4071ffe814dc16df7d180ff6610db418f4816e9c0ce02cf874bdf058df -SIZE (BYVoid-OpenCC-ver.1.1.6_GH0.tar.gz) = 3325614 +TIMESTAMP = 1781847645 +SHA256 (BYVoid-OpenCC-ver.1.3.1_GH0.tar.gz) = 1cc663704ff15728d6ea41ced8cd9dcc086f7bd9a80e8531b2f8054d2f3b8733 +SIZE (BYVoid-OpenCC-ver.1.3.1_GH0.tar.gz) = 11886343 diff --git a/chinese/opencc/files/patch-deps_rapidjson-1.1.0_rapidjson_document.h b/chinese/opencc/files/patch-deps_rapidjson-1.1.0_rapidjson_document.h deleted file mode 100644 index 00524a9d8445..000000000000 --- a/chinese/opencc/files/patch-deps_rapidjson-1.1.0_rapidjson_document.h +++ /dev/null @@ -1,11 +0,0 @@ ---- deps/rapidjson-1.1.0/rapidjson/document.h.orig 2022-12-08 07:44:48 UTC -+++ deps/rapidjson-1.1.0/rapidjson/document.h -@@ -316,8 +316,6 @@ struct GenericStringRef { - - GenericStringRef(const GenericStringRef& rhs) : s(rhs.s), length(rhs.length) {} - -- GenericStringRef& operator=(const GenericStringRef& rhs) { s = rhs.s; length = rhs.length; } -- - //! implicit conversion to plain CharType pointer - operator const Ch *() const { return s; } - diff --git a/chinese/opencc/pkg-plist b/chinese/opencc/pkg-plist index 18293198a53a..d9cbdbfc4d1c 100644 --- a/chinese/opencc/pkg-plist +++ b/chinese/opencc/pkg-plist @@ -1,66 +1,74 @@ bin/opencc bin/opencc_dict bin/opencc_phrase_extract +include/opencc/BinaryDict.hpp include/opencc/Common.hpp include/opencc/Config.hpp include/opencc/Conversion.hpp include/opencc/ConversionChain.hpp +include/opencc/ConversionInspection.hpp include/opencc/Converter.hpp +include/opencc/DartsDict.hpp include/opencc/Dict.hpp include/opencc/DictConverter.hpp include/opencc/DictEntry.hpp include/opencc/DictGroup.hpp include/opencc/Exception.hpp include/opencc/Export.hpp include/opencc/Lexicon.hpp include/opencc/MarisaDict.hpp include/opencc/MaxMatchSegmentation.hpp include/opencc/Optional.hpp include/opencc/PhraseExtract.hpp +include/opencc/PluginSegmentation.hpp +include/opencc/PrefixMatch.hpp include/opencc/Segmentation.hpp include/opencc/Segments.hpp include/opencc/SerializableDict.hpp include/opencc/SerializedValues.hpp include/opencc/SimpleConverter.hpp include/opencc/TextDict.hpp include/opencc/UTF8StringSlice.hpp include/opencc/UTF8Util.hpp include/opencc/opencc.h include/opencc/opencc_config.h -include/opencc/BinaryDict.hpp -include/opencc/DartsDict.hpp -lib/libopencc.so.1.1.5 -lib/libopencc.so.1.1 +include/opencc/plugin/OpenCCPlugin.h +lib/cmake/opencc/OpenCCConfig.cmake +lib/cmake/opencc/OpenCCConfigVersion.cmake +lib/cmake/opencc/OpenCCTargets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/opencc/OpenCCTargets.cmake +lib/libmarisa.a lib/libopencc.so +lib/libopencc.so.1.3 +lib/libopencc.so.1.3.1 libdata/pkgconfig/opencc.pc -%%DATADIR%%/STCharacters.ocd2 -%%DATADIR%%/STPhrases.ocd2 -%%DATADIR%%/TSCharacters.ocd2 -%%DATADIR%%/TSPhrases.ocd2 -%%DATADIR%%/TWVariants.ocd2 -%%DATADIR%%/TWVariantsRevPhrases.ocd2 %%DATADIR%%/HKVariants.ocd2 +%%DATADIR%%/HKVariantsRev.ocd2 %%DATADIR%%/HKVariantsRevPhrases.ocd2 -%%DATADIR%%/JPVariants.ocd2 %%DATADIR%%/JPShinjitaiCharacters.ocd2 %%DATADIR%%/JPShinjitaiPhrases.ocd2 +%%DATADIR%%/JPVariants.ocd2 +%%DATADIR%%/JPVariantsRev.ocd2 +%%DATADIR%%/STCharacters.ocd2 +%%DATADIR%%/STPhrases.ocd2 +%%DATADIR%%/TSCharacters.ocd2 +%%DATADIR%%/TSPhrases.ocd2 %%DATADIR%%/TWPhrases.ocd2 %%DATADIR%%/TWPhrasesRev.ocd2 +%%DATADIR%%/TWVariants.ocd2 %%DATADIR%%/TWVariantsRev.ocd2 -%%DATADIR%%/HKVariantsRev.ocd2 -%%DATADIR%%/JPVariantsRev.ocd2 +%%DATADIR%%/TWVariantsRevPhrases.ocd2 %%DATADIR%%/hk2s.json %%DATADIR%%/hk2t.json %%DATADIR%%/jp2t.json %%DATADIR%%/s2hk.json %%DATADIR%%/s2t.json %%DATADIR%%/s2tw.json %%DATADIR%%/s2twp.json %%DATADIR%%/t2hk.json %%DATADIR%%/t2jp.json %%DATADIR%%/t2s.json %%DATADIR%%/t2tw.json %%DATADIR%%/tw2s.json %%DATADIR%%/tw2sp.json %%DATADIR%%/tw2t.json -