View | Details | Raw Unified | Return to bug 278808 | Differences between
and this patch

Collapse All | Expand All

(-)b/japanese/Makefile (+1 lines)
Lines 250-255 Link Here
250
    SUBDIR += sj3-lib
250
    SUBDIR += sj3-lib
251
    SUBDIR += sj3-server
251
    SUBDIR += sj3-server
252
    SUBDIR += skk
252
    SUBDIR += skk
253
    SUBDIR += skk-jawiki
253
    SUBDIR += skk-jisyo
254
    SUBDIR += skk-jisyo
254
    SUBDIR += skk-jisyo-cdb
255
    SUBDIR += skk-jisyo-cdb
255
    SUBDIR += skk-tools
256
    SUBDIR += skk-tools
(-)b/japanese/skk-jawiki/Makefile (+82 lines)
Added Link Here
1
PORTNAME=	jawiki
2
DISTVERSION=	g20240521
3
CATEGORIES=	japanese
4
PKGNAMEPREFIX?=	ja-skk-
5
6
MAINTAINER=	mew14930xvi@inbox.lv
7
COMMENT?=	SKK dictionary from Wikipedia (Japanese edition)
8
WWW=		https://github.com/tokuhirom/jawiki-kana-kanji-dict
9
10
LICENSE=	MIT
11
12
.if defined(MECAB)
13
BUILD_DEPENDS=	${LOCALBASE}/libexec/mecab/mecab-dict-index:japanese/mecab
14
.else
15
BUILD_DEPENDS=	${LOCALBASE}/bin/cdb:databases/tinycdb \
16
		${LOCALBASE}/bin/nkf:japanese/nkf
17
.endif
18
19
USE_GITHUB=	yes
20
GH_ACCOUNT=	tokuhirom
21
GH_PROJECT=	jawiki-kana-kanji-dict
22
GH_TAGNAME=	d62e22e
23
NO_ARCH=	yes
24
25
.if defined(MECAB)
26
MECABDIR=	lib/mecab/dic/ipadic
27
MECABDIC=	${PORTNAME}.dic
28
29
PLIST_FILES=	${MECABDIR}/${MECABDIC}
30
31
OPTIONS_DEFAULT=	UTF8
32
OPTIONS_SINGLE=		CHARSET
33
OPTIONS_SINGLE_CHARSET=	EUCJP SHIFTJIS UTF8
34
EUCJP_DESC=		Use EUC-JP as dictionary charset.
35
SHIFTJIS_DESC=		Use SHIFT-JIS as dictionary charset.
36
UTF8_DESC=		Use UTF-8 as dictionary charset.
37
38
EUCJP_BUILD_DEPENDS=	ja-mecab-ipadic-eucjp>0:japanese/mecab-ipadic-eucjp
39
SHIFTJIS_BUILD_DEPENDS=	ja-mecab-ipadic-sjis>0:japanese/mecab-ipadic-sjis
40
UTF8_BUILD_DEPENDS=	ja-mecab-ipadic-utf8>0:japanese/mecab-ipadic-utf8
41
42
.include <bsd.port.options.mk>
43
44
.if ${PORT_OPTIONS:MEUCJP}
45
CHARSET=	euc-jp
46
.elif ${PORT_OPTIONS:MSHIFTJIS}
47
CHARSET=	shiftjis
48
.else
49
CHARSET=	utf-8
50
.endif
51
52
do-build:
53
	${LOCALBASE}/libexec/mecab/mecab-dict-index \
54
		-d ${LOCALBASE}/${MECABDIR} -u ${WRKSRC}/${MECABDIC} \
55
		-f utf-8 -t ${CHARSET} ${WRKSRC}/mecab-userdic.csv
56
57
do-install:
58
	${MKDIR} ${STAGEDIR}${PREFIX}/${MECABDIR}
59
	${INSTALL_DATA} ${WRKSRC}/${MECABDIC} ${STAGEDIR}${PREFIX}/${MECABDIR}
60
.else
61
SKKDIR=		share/skk
62
SKKDIC=		SKK-JISYO.${PORTNAME}
63
64
PLIST_FILES=	${SKKDIR}/${SKKDIC} ${SKKDIR}/${SKKDIC}.utf8 \
65
		${SKKDIR}/${SKKDIC}.cdb
66
do-build:
67
	${LOCALBASE}/bin/nkf -e --overwrite=.utf8 ${WRKSRC}/${SKKDIC}
68
	${AWK} '/^[^;]/ { \
69
			s = substr($$0, index($$0, " ") + 1); \
70
			print "+" length($$1) "," length(s) ":" $$1 "->" s; \
71
		} \
72
		END { \
73
			print ""; \
74
		}' < ${WRKSRC}/${SKKDIC} | \
75
	${LOCALBASE}/bin/cdb -c -t - ${WRKSRC}/${SKKDIC}.cdb
76
77
do-install:
78
	${MKDIR} ${STAGEDIR}${PREFIX}/${SKKDIR}
79
	${INSTALL_DATA} ${WRKSRC}/${SKKDIC}* ${STAGEDIR}${PREFIX}/${SKKDIR}
80
.endif
81
82
.include <bsd.port.mk>
(-)b/japanese/skk-jawiki/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1716299864
2
SHA256 (tokuhirom-jawiki-kana-kanji-dict-g20240521-d62e22e_GH0.tar.gz) = 862f59e3795a04d85a0106029d63c4118a0323a7fa1eb3f3cbaf689b5cd1600c
3
SIZE (tokuhirom-jawiki-kana-kanji-dict-g20240521-d62e22e_GH0.tar.gz) = 27128722
(-)b/japanese/skk-jawiki/pkg-descr (+3 lines)
Added Link Here
1
SKK (Simple Kana Kanji Convertor) is a very fast and efficient Japanese
2
input method system.
3
This package provides dictionary from Wikipedia (Japanese edition).

Return to bug 278808