Added
Link Here
|
1 |
PORTNAME= skk-jawiki |
2 |
DISTVERSION= g20240216 |
3 |
CATEGORIES= japanese |
4 |
|
5 |
MAINTAINER= mew14930xvi@inbox.lv |
6 |
COMMENT= SKK dictionary from Wikipedia (Japanese edition) |
7 |
WWW= https://github.com/tokuhirom/jawiki-kana-kanji-dict |
8 |
|
9 |
LICENSE= MIT |
10 |
|
11 |
BUILD_DEPENDS= ${LOCALBASE}/bin/cdb:databases/tinycdb \ |
12 |
${LOCALBASE}/bin/nkf:japanese/nkf |
13 |
|
14 |
USE_GITHUB= yes |
15 |
GH_ACCOUNT= tokuhirom |
16 |
GH_PROJECT= jawiki-kana-kanji-dict |
17 |
GH_TAGNAME= 0e0fb52 |
18 |
NO_ARCH= yes |
19 |
|
20 |
SKKDIR= share/skk |
21 |
SKKDIC= SKK-JISYO.jawiki |
22 |
|
23 |
PLIST_FILES= ${SKKDIR}/${SKKDIC} ${SKKDIR}/${SKKDIC}.utf8 \ |
24 |
${SKKDIR}/${SKKDIC}.cdb |
25 |
|
26 |
do-build: |
27 |
${LOCALBASE}/bin/nkf -e --overwrite=.utf8 ${WRKSRC}/${SKKDIC} |
28 |
${AWK} '/^[^;]/ { \ |
29 |
s = substr($$0, index($$0, " ") + 1); \ |
30 |
print "+" length($$1) "," length(s) ":" $$1 "->" s; \ |
31 |
} \ |
32 |
END { \ |
33 |
print ""; \ |
34 |
}' < ${WRKSRC}/${SKKDIC} | \ |
35 |
${LOCALBASE}/bin/cdb -c -t - ${WRKSRC}/${SKKDIC}.cdb |
36 |
|
37 |
do-install: |
38 |
${MKDIR} ${STAGEDIR}${PREFIX}/${SKKDIR} |
39 |
${INSTALL_DATA} ${WRKSRC}/${SKKDIC}* ${STAGEDIR}${PREFIX}/${SKKDIR} |
40 |
|
41 |
.include <bsd.port.mk> |