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 (+66 lines)
Added Link Here
1
PORTNAME=	jawiki
2
DISTVERSION=	g20240521
3
CATEGORIES=	japanese
4
.if defined(MECAB)
5
PKGNAMEPREFIX=  ja-mecab-
6
.else
7
PKGNAMEPREFIX=  ja-skk-
8
.endif
9
10
MAINTAINER=	mew14930xvi@inbox.lv
11
COMMENT?=	SKK dictionary from Wikipedia (Japanese edition)
12
WWW=		https://github.com/tokuhirom/jawiki-kana-kanji-dict
13
14
LICENSE=	MIT
15
16
.if defined(MECAB)
17
BUILD_DEPENDS=	${LOCALBASE}/libexec/mecab/mecab-dict-index:japanese/mecab \
18
		${LOCALBASE}/${MECABDIR}/dicrc:japanese/mecab-ipadic-utf8
19
.else
20
BUILD_DEPENDS=	${LOCALBASE}/bin/cdb:databases/tinycdb \
21
		${LOCALBASE}/bin/nkf:japanese/nkf
22
.endif
23
24
USE_GITHUB=	yes
25
GH_ACCOUNT=	tokuhirom
26
GH_PROJECT=	jawiki-kana-kanji-dict
27
GH_TAGNAME=	d62e22e
28
NO_ARCH=	yes
29
30
.if defined(MECAB)
31
MECABDIR=	lib/mecab/dic/ipadic/
32
33
PLIST_FILES=	${MECABDIR}/${PORTNAME}.dic
34
35
do-build:
36
	${LOCALBASE}/libexec/mecab/mecab-dict-index \
37
		-d ${LOCALBASE}/${MECABDIR} -u ${WRKSRC}/${PORTNAME}.dic \
38
		-f utf-8 -t utf-8 ${WRKSRC}/mecab-userdic.csv
39
40
do-install:
41
	${MKDIR} ${STAGEDIR}${PREFIX}/${MECABDIR}
42
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.dic \
43
		${STAGEDIR}${PREFIX}/${MECABDIR}
44
.else
45
SKKDIR=		share/skk
46
SKKDIC=		SKK-JISYO.${PORTNAME}
47
48
PLIST_FILES=	${SKKDIR}/${SKKDIC} ${SKKDIR}/${SKKDIC}.utf8 \
49
		${SKKDIR}/${SKKDIC}.cdb
50
do-build:
51
	${LOCALBASE}/bin/nkf -e --overwrite=.utf8 ${WRKSRC}/${SKKDIC}
52
	${AWK} '/^[^;]/ { \
53
			s = substr($$0, index($$0, " ") + 1); \
54
			print "+" length($$1) "," length(s) ":" $$1 "->" s; \
55
		} \
56
		END { \
57
			print ""; \
58
		}' < ${WRKSRC}/${SKKDIC} | \
59
	${LOCALBASE}/bin/cdb -c -t - ${WRKSRC}/${SKKDIC}.cdb
60
61
do-install:
62
	${MKDIR} ${STAGEDIR}${PREFIX}/${SKKDIR}
63
	${INSTALL_DATA} ${WRKSRC}/${SKKDIC}* ${STAGEDIR}${PREFIX}/${SKKDIR}
64
.endif
65
66
.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