diff --git a/chinese/Makefile b/chinese/Makefile index e83d21c027db..541216c9d060 100644 --- a/chinese/Makefile +++ b/chinese/Makefile @@ -1,136 +1,137 @@ COMMENT = Chinese support SUBDIR += CJKUnifonts SUBDIR += CNS11643-font SUBDIR += FreeWnn-lib SUBDIR += FreeWnn-server SUBDIR += arphicttf SUBDIR += aterm SUBDIR += auto-cn-l10n SUBDIR += auto-tw-l10n SUBDIR += autoconvert SUBDIR += big5width SUBDIR += bitchx SUBDIR += bsdconv-opencc SUBDIR += bug5 SUBDIR += c2t SUBDIR += cconv SUBDIR += chiconv SUBDIR += chinese-calendar SUBDIR += cless SUBDIR += cnprint SUBDIR += dictd-database SUBDIR += elffont SUBDIR += enscript SUBDIR += fandol SUBDIR += fcitx SUBDIR += fcitx-chewing SUBDIR += fcitx-cloudpinyin SUBDIR += fcitx-configtool SUBDIR += fcitx-libpinyin SUBDIR += fcitx-table-extra SUBDIR += fcitx-ui-light SUBDIR += fcitx5-chewing SUBDIR += fcitx5-chinese-addons SUBDIR += fcitx5-mcbopomofo SUBDIR += fcitx5-rime SUBDIR += fcitx5-table-extra SUBDIR += fcitx5-table-other SUBDIR += fireflyttf SUBDIR += font-std SUBDIR += fortunetw SUBDIR += gb2jis SUBDIR += gb2ps SUBDIR += gcin SUBDIR += gcin-gtk3 SUBDIR += gcin-qt5 SUBDIR += gydict SUBDIR += hc SUBDIR += ibus-array SUBDIR += ibus-cangjie SUBDIR += ibus-chewing SUBDIR += ibus-libpinyin SUBDIR += ibus-pinyin SUBDIR += ibus-rime SUBDIR += ibus-table-chinese SUBDIR += jis2gb SUBDIR += libcangjie SUBDIR += libchewing SUBDIR += libime SUBDIR += libime-jyutping SUBDIR += libpinyin SUBDIR += libreoffice-zh_CN SUBDIR += libreoffice-zh_TW SUBDIR += librime SUBDIR += libtabe SUBDIR += linux-wps-office-zh_CN SUBDIR += lunar SUBDIR += moettf SUBDIR += opencc SUBDIR += opendesktop-fonts SUBDIR += oto SUBDIR += p5-Date-Chinese SUBDIR += p5-Encode-CNMap SUBDIR += p5-Encode-HanConvert SUBDIR += p5-Encode-HanExtra SUBDIR += p5-Lingua-Han-PinYin SUBDIR += p5-Lingua-Han-Utils SUBDIR += p5-Lingua-ZH-HanDetect SUBDIR += p5-Lingua-ZH-Keywords SUBDIR += p5-Lingua-ZH-Numbers SUBDIR += p5-Lingua-ZH-Romanize-Pinyin SUBDIR += p5-Lingua-ZH-Segment SUBDIR += p5-Lingua-ZH-Summarize SUBDIR += p5-Lingua-ZH-TaBE SUBDIR += p5-Lingua-ZH-Toke SUBDIR += p5-Lingua-ZH-WordSegmenter SUBDIR += p5-Lingua-ZH-Wrap SUBDIR += p5-Text-Greeking-zh_TW SUBDIR += pcmanx SUBDIR += php-opencc SUBDIR += phpbb3-tw + SUBDIR += py-OpenCC SUBDIR += py-chinese-calendar SUBDIR += py-rjieba SUBDIR += pycangjie SUBDIR += pyzy SUBDIR += qe SUBDIR += rime-array SUBDIR += rime-bopomofo SUBDIR += rime-cangjie SUBDIR += rime-cantonese SUBDIR += rime-combo-pinyin SUBDIR += rime-data-full SUBDIR += rime-double-pinyin SUBDIR += rime-emoji SUBDIR += rime-essay SUBDIR += rime-ipa SUBDIR += rime-jyutping SUBDIR += rime-luna-pinyin SUBDIR += rime-middle-chinese SUBDIR += rime-pinyin-simp SUBDIR += rime-prelude SUBDIR += rime-quick SUBDIR += rime-scj SUBDIR += rime-soutzoe SUBDIR += rime-stenotype SUBDIR += rime-stroke SUBDIR += rime-terra-pinyin SUBDIR += rime-wubi SUBDIR += rime-wugniu SUBDIR += scim-fcitx SUBDIR += scim-pinyin SUBDIR += scim-tables SUBDIR += sourcehansans-sc-otf SUBDIR += sourcehansans-tc-otf SUBDIR += sourcehanserif-sc-otf SUBDIR += sourcehanserif-tc-otf SUBDIR += taipeisanstc SUBDIR += tintin++ SUBDIR += ttf2pt1 SUBDIR += ttfm SUBDIR += ve SUBDIR += wenju SUBDIR += wordpress-zh_CN SUBDIR += wordpress-zh_TW .include diff --git a/chinese/py-OpenCC/Makefile b/chinese/py-OpenCC/Makefile new file mode 100644 index 000000000000..38d598f4717f --- /dev/null +++ b/chinese/py-OpenCC/Makefile @@ -0,0 +1,22 @@ +PORTNAME= OpenCC +PORTVERSION= 1.3.1 +CATEGORIES= chinese python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= opencc-${PORTVERSION} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Conversion between Traditional and Simplified Chinese +WWW= https://github.com/BYVoid/OpenCC + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= cmake-core>=0:devel/cmake-core \ + ${PYTHON_PKGNAMEPREFIX}setuptools>=63.1.0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} + +USES= compiler:c++17-lang python +USE_PYTHON= autoplist concurrent pep517 + +.include diff --git a/chinese/py-OpenCC/distinfo b/chinese/py-OpenCC/distinfo new file mode 100644 index 000000000000..75c0c0fea884 --- /dev/null +++ b/chinese/py-OpenCC/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1781842763 +SHA256 (opencc-1.3.1.tar.gz) = 6892ee3f8fcc5992f0e9f90dbf177c8da566620f83c3f2040257293f16141b33 +SIZE (opencc-1.3.1.tar.gz) = 11755312 diff --git a/chinese/py-OpenCC/files/patch-pyproject.toml b/chinese/py-OpenCC/files/patch-pyproject.toml new file mode 100644 index 000000000000..0eacac4bc1e4 --- /dev/null +++ b/chinese/py-OpenCC/files/patch-pyproject.toml @@ -0,0 +1,9 @@ +-- Lower setuptools build requirement from >=78.1.1 to >=63.1.0 +-- to match the version available in the FreeBSD ports tree. +--- pyproject.toml.orig 2026-06-19 01:48:24 UTC ++++ pyproject.toml +@@ -1,3 +1,3 @@ + [build-system] +-requires = ["setuptools>=78.1.1", "wheel"] ++requires = ["setuptools>=63.1.0", "wheel"] + build-backend = "setuptools.build_meta" diff --git a/chinese/py-OpenCC/pkg-descr b/chinese/py-OpenCC/pkg-descr new file mode 100644 index 000000000000..4089be5f8f86 --- /dev/null +++ b/chinese/py-OpenCC/pkg-descr @@ -0,0 +1,5 @@ +Conversion between Traditional and Simplified Chinese. + +Open Chinese Convert (OpenCC) is an opensource project for conversions +between Traditional Chinese, Simplified Chinese and Japanese Kanji +(Shinjitai).