From nobody Sun Aug 18 06:27:52 2024 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Wmm4T02dBz5STCx; Sun, 18 Aug 2024 06:27:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wmm4S6RFxz56gq; Sun, 18 Aug 2024 06:27:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723962472; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7wpbgKq9iEkGuDI5EwQOjRmTsjiE5ryUm6OaonK1zfY=; b=oPuwciGfUVP0erjrjxMvJYjYFd2HotkCyKwySan6t3lyAnhHmj6RA7qK0euIByC6QfPBLx p/TP6EDRzXEdEvlGRcRIoTXBX+TPmFgqYETjWcskkpOFkf7+SHyibDn7TcY3TsTgT2M9tE iIzbm19Oesy3Ji1LOjTtqWx990xejP1ArfDYu98/W4oOBGttYe/aeSxQ1lF+E0tOJiGyIZ mHX9+Vgihj4zoAJd9OFeAvxJSWhABVM1wf60+72A7UkBmw9MZ0lud9S+r5cDwIEQXaMW3c nD4J9+bnIPqDTFrQpQw8A7W8SLIUqamZPAUIbveJFx16vr13JlR9KnHRuTzVNg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723962472; a=rsa-sha256; cv=none; b=MuSNfqCwMOto8ed/Q3bckHY+HiafWAfqGseiVBJeh/vgHxqta7QDD8oY9uy4uqEI9DcDsV iDcnpmI7I6PhFcJc+I6A7T571NUWYfL+MNBBmDSAHqD6BfGNBfwjbejuajtJPJ5/dMPhZZ aW3deWtRrIjQDzRdZAKB+P8L/HxrZ3mwEWdPGiIFNKU3U/JE/6q0xHmMlnae7tup1ubNPg XVxrJdD7MuYD0jGycZd7yo/gz0E4Oa5zK4PvYf3CUN2cNC9C3fkl6MeNu+eEhy7Q7VU2sB XKY5dVZSRLdeUjnPnUtSN3vBA4wdme1zwysCUoOk+xdFkWp/211Xj0K2GiMFPg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723962472; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7wpbgKq9iEkGuDI5EwQOjRmTsjiE5ryUm6OaonK1zfY=; b=k5KedhREWuqELMl0FHpcWtBGRjtKSidR5tVc/r9Luddgt3yNJBlKoIqRUYSh9/tYbW4RYn m0bf8yYcACWSwpDgH9I7m9klceq/vWUYyjEXFfOb8cAHhYkxVT75vm+00r1n1eU7ApW2fl UvNWndsEBckDhy58TarFHS9PNqLmygLI4crz7hPzHD7cAWRZSwBm8XMrijnjYAIZl3cDoX 5cnts2tZjMVpm6MeVRDryLF9V5eZZmclKY1scyX0JdceGsp2bRftLu62NDxUw91RwCmZZ9 z8IBrbEQC6i6QDN4plWm+o1j28ME18IYRva2iRsBqAv+4rmVcv42KNioH5/mLQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Wmm4S624FzM8n; Sun, 18 Aug 2024 06:27:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47I6RqT7027050; Sun, 18 Aug 2024 06:27:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47I6RqKO027047; Sun, 18 Aug 2024 06:27:52 GMT (envelope-from git) Date: Sun, 18 Aug 2024 06:27:52 GMT Message-Id: <202408180627.47I6RqKO027047@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: MANTANI Nobutaka Subject: git: 5667992026d1 - main - japanese/skk-jawiki: New port: SKK dictionary from Wikipedia (Japanese edition) List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: nobutaka X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5667992026d1c0e65ab240d98e46a3d3f899511c Auto-Submitted: auto-generated The branch main has been updated by nobutaka: URL: https://cgit.FreeBSD.org/ports/commit/?id=5667992026d1c0e65ab240d98e46a3d3f899511c commit 5667992026d1c0e65ab240d98e46a3d3f899511c Author: MANTANI Nobutaka AuthorDate: 2024-08-18 06:24:39 +0000 Commit: MANTANI Nobutaka CommitDate: 2024-08-18 06:24:39 +0000 japanese/skk-jawiki: New port: SKK dictionary from Wikipedia (Japanese edition) SKK (Simple Kana Kanji Convertor) is a very fast and efficient Japanese input method system. This package provides dictionary from Wikipedia (Japanese edition). PR: 278808 Reported by: mew14930xvi --- japanese/Makefile | 1 + japanese/skk-jawiki/Makefile | 103 ++++++++++++++++++++++++++++++++++++++++++ japanese/skk-jawiki/distinfo | 3 ++ japanese/skk-jawiki/pkg-descr | 3 ++ 4 files changed, 110 insertions(+) diff --git a/japanese/Makefile b/japanese/Makefile index 0da6a8c8f6f4..ddf8c0e2389f 100644 --- a/japanese/Makefile +++ b/japanese/Makefile @@ -257,6 +257,7 @@ SUBDIR += sj3-lib SUBDIR += sj3-server SUBDIR += skk + SUBDIR += skk-jawiki SUBDIR += skk-jisyo SUBDIR += skk-jisyo-cdb SUBDIR += skk-tools diff --git a/japanese/skk-jawiki/Makefile b/japanese/skk-jawiki/Makefile new file mode 100644 index 000000000000..ad55ea1ce70d --- /dev/null +++ b/japanese/skk-jawiki/Makefile @@ -0,0 +1,103 @@ +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 +SHIFTJIS_BUILD_DEPENDS= ja-mecab-ipadic-sjis>0:japanese/mecab-ipadic-sjis +UTF8_BUILD_DEPENDS= ja-mecab-ipadic-utf8>0:japanese/mecab-ipadic-utf8 + +EUCJP_VARS= CSET=euc-jp +SHIFTJIS_VARS= CSET=shiftjis +UTF8_VARS= CSET=utf-8 + +do-build: + ${LOCALBASE}/libexec/mecab/mecab-dict-index \ + -d ${LOCALBASE}/${MECABDIR} -u ${WRKSRC}/${MECABDIC} \ + -f utf-8 -t ${CSET} ${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 +UTF8_VARS= DICS+=${SKKDIC}.utf8 +UTF8CDB_VARS= DICS+=${SKKDIC}.utf8.cdb + +PLIST_FILES= ${DICS:S|^|${SKKDIR}/|} + +.include + +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 ${DICS:M*.cdb} + ${AWK} '/^[^;]/ { \ + s = substr($$0, index($$0, " ") + 1); \ + print "+" length($$1) "," length(s) ":" $$1 "->" s; \ + } \ + END { \ + print ""; \ + }' < ${WRKSRC}/${dic:S|.cdb||} | \ + ${LOCALBASE}/bin/cdb -c -t - ${WRKSRC}/${dic} +.endfor + +do-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/${SKKDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${DICS} ${STAGEDIR}${PREFIX}/${SKKDIR} +.endif + +.include 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).