FreeBSD Bugzilla – Attachment 251296 Details for
Bug 278808
[new port] japanese/skk-jawiki: SKK/MeCab dictionary from Wikipedia(Japanese edition)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
SKK/MeCab dictionary
patch.jawiki (text/plain), 3.78 KB, created by
mew14930xvi
on 2024-06-08 19:18:26 UTC
(
hide
)
Description:
SKK/MeCab dictionary
Filename:
MIME Type:
Creator:
mew14930xvi
Created:
2024-06-08 19:18:26 UTC
Size:
3.78 KB
patch
obsolete
>diff --git a/japanese/skk-jawiki/Makefile b/japanese/skk-jawiki/Makefile >new file mode 100644 >index 000000000000..e4316d8b5967 >--- /dev/null >+++ b/japanese/skk-jawiki/Makefile >@@ -0,0 +1,98 @@ >+PORTNAME= jawiki >+DISTVERSION= g20240521 >+CATEGORIES= japanese >+PKGNAMEPREFIX?= ja-skk- >+ >+MAINTAINER= mew14930xvi@inbox.lv >+COMMENT?= SKK dictionary from Wikipedia (Japanese edition) >+WWW= https://github.com/tokuhirom/jawiki-kana-kanji-dict >+ >+LICENSE= MIT >+ >+USE_GITHUB= yes >+GH_ACCOUNT= tokuhirom >+GH_PROJECT= jawiki-kana-kanji-dict >+GH_TAGNAME= d62e22e >+NO_ARCH= yes >+ >+.if defined(MECAB) >+BUILD_DEPENDS= ${LOCALBASE}/libexec/mecab/mecab-dict-index:japanese/mecab >+ >+MECABDIR= lib/mecab/dic/ipadic >+MECABDIC= ${PORTNAME}.dic >+ >+PLIST_FILES= ${MECABDIR}/${MECABDIC} >+ >+OPTIONS_DEFAULT= UTF8 >+OPTIONS_SINGLE= CHARSET >+OPTIONS_SINGLE_CHARSET= EUCJP SHIFTJIS UTF8 >+EUCJP_DESC= Use EUC-JP as dictionary charset. >+SHIFTJIS_DESC= Use SHIFT-JIS as dictionary charset. >+UTF8_DESC= Use UTF-8 as dictionary charset. >+ >+EUCJP_BUILD_DEPENDS= ja-mecab-ipadic-eucjp>0:japanese/mecab-ipadic-eucjp >+EUCJP_VARS= ENCODING=euc-jp >+SHIFTJIS_BUILD_DEPENDS= ja-mecab-ipadic-sjis>0:japanese/mecab-ipadic-sjis >+SHIFTJIS_VARS= ENCODING=shiftjis >+UTF8_BUILD_DEPENDS= ja-mecab-ipadic-utf8>0:japanese/mecab-ipadic-utf8 >+UTF8_VARS= ENCODING=utf-8 >+ >+do-build: >+ ${LOCALBASE}/libexec/mecab/mecab-dict-index \ >+ -d ${LOCALBASE}/${MECABDIR} -u ${WRKSRC}/${MECABDIC} \ >+ -f utf-8 -t ${ENCODING} ${WRKSRC}/mecab-userdic.csv >+ >+do-install: >+ ${MKDIR} ${STAGEDIR}${PREFIX}/${MECABDIR} >+ ${INSTALL_DATA} ${WRKSRC}/${MECABDIC} ${STAGEDIR}${PREFIX}/${MECABDIR} >+.else >+SKKDIR= share/skk >+SKKDIC= SKK-JISYO.${PORTNAME} >+ >+OPTIONS_DEFAULT= EUCCDB >+OPTIONS_MULTI= DICTIONARY >+OPTIONS_MULTI_DICTIONARY= EUC EUCCDB UTF8 UTF8CDB >+EUC_DESC= EUC-JP Charset dictionary >+EUCCDB_DESC= EUC-JP Charset dictionary (cdb) >+UTF8_DESC= UTF8 Charset dictionary >+UTF8CDB_DESC= UTF8 Charset dictionary (cdb) >+ >+EUC_BUILD_DEPENDS= ${LOCALBASE}/bin/nkf:japanese/nkf >+EUCCDB_BUILD_DEPENDS= ${LOCALBASE}/bin/nkf:japanese/nkf \ >+ ${LOCALBASE}/bin/cdb:databases/tinycdb >+UTF8CDB_BUILD_DEPENDS= ${LOCALBASE}/bin/cdb:databases/tinycdb >+ >+EUC_VARS= DICS=${SKKDIC} >+EUCCDB_VARS= DICS+=${SKKDIC}.cdb CDBS=${SKKDIC} >+UTF8_VARS= DICS+=${SKKDIC}.utf8 >+UTF8CDB_VARS= DICS+=${SKKDIC}.utf8.cdb CDBS+=${SKKDIC}.utf8 >+ >+.include <bsd.port.options.mk> >+ >+.for dic in ${DICS} >+PLIST_FILES+= ${SKKDIR}/${dic} >+.endfor >+ >+do-build: >+.if ${PORT_OPTIONS:MEUC*} >+ ${LOCALBASE}/bin/nkf -e --overwrite=.utf8 ${WRKSRC}/${SKKDIC} >+.else >+ ${MV} ${WRKSRC}/${SKKDIC} ${WRKSRC}/${SKKDIC}.utf8 >+.endif >+.for dic in ${CDBS} >+ ${AWK} '/^[^;]/ { \ >+ s = substr($$0, index($$0, " ") + 1); \ >+ print "+" length($$1) "," length(s) ":" $$1 "->" s; \ >+ } \ >+ END { \ >+ print ""; \ >+ }' < ${WRKSRC}/${dic} | \ >+ ${LOCALBASE}/bin/cdb -c -t - ${WRKSRC}/${dic}.cdb >+.endfor >+ >+do-install: >+ ${MKDIR} ${STAGEDIR}${PREFIX}/${SKKDIR} >+ cd ${WRKSRC} && ${INSTALL_DATA} ${DICS} ${STAGEDIR}${PREFIX}/${SKKDIR} >+.endif >+ >+.include <bsd.port.mk> >diff --git a/japanese/skk-jawiki/distinfo b/japanese/skk-jawiki/distinfo >new file mode 100644 >index 000000000000..87dcf88ed2d0 >--- /dev/null >+++ b/japanese/skk-jawiki/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1716299864 >+SHA256 (tokuhirom-jawiki-kana-kanji-dict-g20240521-d62e22e_GH0.tar.gz) = 862f59e3795a04d85a0106029d63c4118a0323a7fa1eb3f3cbaf689b5cd1600c >+SIZE (tokuhirom-jawiki-kana-kanji-dict-g20240521-d62e22e_GH0.tar.gz) = 27128722 >diff --git a/japanese/skk-jawiki/pkg-descr b/japanese/skk-jawiki/pkg-descr >new file mode 100644 >index 000000000000..1ed7aa745834 >--- /dev/null >+++ b/japanese/skk-jawiki/pkg-descr >@@ -0,0 +1,3 @@ >+SKK (Simple Kana Kanji Convertor) is a very fast and efficient Japanese >+input method system. >+This package provides dictionary from Wikipedia (Japanese edition).
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 278808
:
250485
|
250865
|
250884
|
251296
|
251424
|
251484