FreeBSD Bugzilla – Attachment 251424 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.skk-jawiki (text/plain), 4.04 KB, created by
mew14930xvi
on 2024-06-12 23:33:34 UTC
(
hide
)
Description:
skk/mecab dictionary
Filename:
MIME Type:
Creator:
mew14930xvi
Created:
2024-06-12 23:33:34 UTC
Size:
4.04 KB
patch
obsolete
>diff --git a/japanese/skk-jawiki/Makefile b/japanese/skk-jawiki/Makefile >new file mode 100644 >index 000000000000..a424faa09400 >--- /dev/null >+++ b/japanese/skk-jawiki/Makefile >@@ -0,0 +1,104 @@ >+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: >+ ${MV} ${WRKSRC}/${SKKDIC} ${WRKSRC}/${SKKDIC}.orig >+.if ${PORT_OPTIONS:MUTF8*} >+ ${ECHO_CMD} ';; -*- mode: fundamental; coding: utf-8 -*-' | \ >+ ${CAT} - ${WRKSRC}/${SKKDIC}.orig > ${WRKSRC}/${SKKDIC}.utf8 >+.endif >+.if ${PORT_OPTIONS:MEUC*} >+ ${ECHO_CMD} ';; -*- mode: fundamental; coding: euc-jp -*-' \ >+ > ${WRKSRC}/${SKKDIC} >+ ${LOCALBASE}/bin/nkf --oc=eucJP-ms ${WRKSRC}/${SKKDIC}.orig \ >+ >> ${WRKSRC}/${SKKDIC} >+.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