Hi,

    Here is a patch to update converters/opencc to 1.1.1 and
remove the unneeded patch. It build well and run well on
amd64-6.8 system.
    No test defined and no other ports depend on it.


Cheers !
wen
Index: Makefile
===================================================================
RCS file: /cvs/ports/converters/opencc/Makefile,v
retrieving revision 1.4
diff -u -p -r1.4 Makefile
--- Makefile    12 Jul 2019 20:43:49 -0000      1.4
+++ Makefile    17 Nov 2020 08:20:38 -0000
@@ -2,7 +2,7 @@
 
 COMMENT =      convert between traditional and simplified Chinese
 
-V =            1.0.5
+V =            1.1.1
 DISTNAME =     opencc-$V
 
 GH_ACCOUNT =   BYVoid
@@ -26,8 +26,6 @@ COMPILER =            base-clang ports-gcc
 MODULES =              devel/cmake \
                        lang/python
 MODPY_RUNDEP =         No
-
-CONFIGURE_ARGS =       -DOPENCC_PYTHON="${MODPY_BIN}"
 
 WRKDIST =              ${WRKDIR}/OpenCC-ver.$V
 
Index: distinfo
===================================================================
RCS file: /cvs/ports/converters/opencc/distinfo,v
retrieving revision 1.1
diff -u -p -r1.1 distinfo
--- distinfo    18 Dec 2018 09:32:23 -0000      1.1
+++ distinfo    17 Nov 2020 08:20:38 -0000
@@ -1,2 +1,2 @@
-SHA256 (opencc-1.0.5.tar.gz) = HOFkm6KAz8iLt250C+X1SympwDRADJejriEcN9cDBwU=
-SIZE (opencc-1.0.5.tar.gz) = 1598354
+SHA256 (opencc-1.1.1.tar.gz) = LUmH3IQnXyUtR7xtjIG0Uvam6CyqJvKEyFSoFTzPWTM=
+SIZE (opencc-1.1.1.tar.gz) = 2212256
Index: patches/patch-data_CMakeLists_txt
===================================================================
RCS file: patches/patch-data_CMakeLists_txt
diff -N patches/patch-data_CMakeLists_txt
--- patches/patch-data_CMakeLists_txt   18 Dec 2018 09:32:23 -0000      1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,14 +0,0 @@
-$OpenBSD: patch-data_CMakeLists_txt,v 1.1 2018/12/18 09:32:23 bentley Exp $
-
-Index: data/CMakeLists.txt
---- data/CMakeLists.txt.orig
-+++ data/CMakeLists.txt
-@@ -1,6 +1,6 @@
- set(OPENCC_DICT_BIN opencc_dict)
--set(DICT_MERGE_BIN python ${CMAKE_CURRENT_SOURCE_DIR}/scripts/merge.py)
--set(DICT_REVERSE_BIN python ${CMAKE_CURRENT_SOURCE_DIR}/scripts/reverse.py)
-+set(DICT_MERGE_BIN ${OPENCC_PYTHON} 
${CMAKE_CURRENT_SOURCE_DIR}/scripts/merge.py)
-+set(DICT_REVERSE_BIN ${OPENCC_PYTHON} 
${CMAKE_CURRENT_SOURCE_DIR}/scripts/reverse.py)
- set(DICT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/dictionary)
- set(DICT_GENERATED_DIR ${CMAKE_CURRENT_BINARY_DIR})
- 
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/converters/opencc/pkg/PLIST,v
retrieving revision 1.1
diff -u -p -r1.1 PLIST
--- pkg/PLIST   18 Dec 2018 09:32:23 -0000      1.1
+++ pkg/PLIST   17 Nov 2020 08:20:38 -0000
@@ -17,12 +17,14 @@ 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/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
@@ -31,26 +33,30 @@ include/opencc/opencc.h
 @lib lib/libopencc.so.${LIBopencc_VERSION}
 lib/pkgconfig/opencc.pc
 share/opencc/
-share/opencc/HKVariants.ocd
-share/opencc/HKVariantsPhrases.ocd
-share/opencc/HKVariantsRev.ocd
-share/opencc/HKVariantsRevPhrases.ocd
-share/opencc/JPVariants.ocd
-share/opencc/STCharacters.ocd
-share/opencc/STPhrases.ocd
-share/opencc/TSCharacters.ocd
-share/opencc/TSPhrases.ocd
-share/opencc/TWPhrases.ocd
-share/opencc/TWPhrasesRev.ocd
-share/opencc/TWVariants.ocd
-share/opencc/TWVariantsRev.ocd
-share/opencc/TWVariantsRevPhrases.ocd
+share/opencc/HKVariants.ocd2
+share/opencc/HKVariantsRev.ocd2
+share/opencc/HKVariantsRevPhrases.ocd2
+share/opencc/JPShinjitaiCharacters.ocd2
+share/opencc/JPShinjitaiPhrases.ocd2
+share/opencc/JPVariants.ocd2
+share/opencc/JPVariantsRev.ocd2
+share/opencc/STCharacters.ocd2
+share/opencc/STPhrases.ocd2
+share/opencc/TSCharacters.ocd2
+share/opencc/TSPhrases.ocd2
+share/opencc/TWPhrases.ocd2
+share/opencc/TWPhrasesRev.ocd2
+share/opencc/TWVariants.ocd2
+share/opencc/TWVariantsRev.ocd2
+share/opencc/TWVariantsRevPhrases.ocd2
 share/opencc/hk2s.json
+share/opencc/jp2t.json
 share/opencc/s2hk.json
 share/opencc/s2t.json
 share/opencc/s2tw.json
 share/opencc/s2twp.json
 share/opencc/t2hk.json
+share/opencc/t2jp.json
 share/opencc/t2s.json
 share/opencc/t2tw.json
 share/opencc/tw2s.json

Reply via email to