blob: 843d105473bde35c0948ce38a447ff2f3a8a3026 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
PORTNAME= rime-cangjie
DISTVERSION= g20210223
PORTREVISION= 1
CATEGORIES= chinese textproc
MAINTAINER= khng300@gmail.com
COMMENT= Rime Cangjie v5 schema support
WWW= https://github.com/rime/rime-cangjie
LICENSE= LGPL3
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= rime_deployer:chinese/librime \
zh-rime-essay>g0:chinese/rime-essay \
zh-rime-prelude>g0:chinese/rime-prelude
RUN_DEPENDS= zh-rime-prelude>g0:chinese/rime-prelude
USES= localbase
OPTIONS_DEFINE= DOCS
OPTIONS_SUB= yes
USE_GITHUB= yes
GH_ACCOUNT= rime
GH_TAGNAME= 8dfad9e537f18821b71ba28773315d9c670ae245
NO_ARCH= yes
PORTDOCS= AUTHORS README.md
PRELUDE_FILES= default.yaml key_bindings.yaml punctuation.yaml symbols.yaml
ESSAY_FILES= essay.txt
SCHEMA_FILES= cangjie5.schema.yaml cangjie5_express.schema.yaml
MY_OUTDIR= ${WRKDIR}/out
do-build:
@${MKDIR} ${MY_OUTDIR}
@${RLN} ${WRKSRC}/* ${MY_OUTDIR}
.for i in ${PRELUDE_FILES} ${ESSAY_FILES}
@${CP} ${LOCALBASE}/share/rime-data/${i} ${MY_OUTDIR}
.endfor
.for i in ${SCHEMA_FILES}
rime_deployer --compile ${WRKSRC}/${i} ${MY_OUTDIR}
.endfor
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/rime-data
${INSTALL_DATA} ${WRKSRC}/*.yaml ${STAGEDIR}${PREFIX}/share/rime-data
(cd ${MY_OUTDIR} && ${COPYTREE_SHARE} build ${STAGEDIR}${PREFIX}/share/rime-data)
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/AUTHORS ${STAGEDIR}/${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/README.md ${STAGEDIR}/${DOCSDIR}
.include <bsd.port.mk>
|