2020-12-17 11:47:28 +01:00
|
|
|
PORTNAME= rime-cantonese
|
2021-11-30 04:09:41 +01:00
|
|
|
DISTVERSION= g20211029
|
2022-08-12 16:46:53 +02:00
|
|
|
PORTREVISION= 1
|
2020-12-17 11:47:28 +01:00
|
|
|
CATEGORIES= chinese textproc
|
|
|
|
|
2021-11-30 04:09:41 +01:00
|
|
|
MAINTAINER= khng@FreeBSD.org
|
2020-12-17 11:47:28 +01:00
|
|
|
COMMENT= Rime Cantonese (Jyutping) schema support
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= https://github.com/rime/rime-cantonese
|
2020-12-17 11:47:28 +01:00
|
|
|
|
|
|
|
LICENSE= CC-BY-4.0 ODbL
|
|
|
|
LICENSE_COMB= multi
|
|
|
|
LICENSE_FILE_CC-BY-4.0= ${WRKSRC}/LICENSE-CC-BY
|
|
|
|
LICENSE_FILE_ODbL= ${WRKSRC}/LICENSE-ODbL
|
|
|
|
|
|
|
|
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
|
2021-11-30 04:09:41 +01:00
|
|
|
GH_TAGNAME= 5b6d334a878af8cdb180bb48408fae7cf839da1c
|
2020-12-17 11:47:28 +01:00
|
|
|
|
|
|
|
NO_ARCH= yes
|
|
|
|
|
|
|
|
PORTDOCS= README.md README-cmn.md README-en.md demo/*
|
|
|
|
|
|
|
|
PRELUDE_FILES= default.yaml key_bindings.yaml punctuation.yaml symbols.yaml
|
|
|
|
ESSAY_FILES= essay.txt
|
|
|
|
SCHEMA_FILES= jyut6ping3.schema.yaml jyut6ping3_ipa.schema.yaml
|
|
|
|
MY_OUTDIR= ${WRKDIR}/out
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
@${MKDIR} ${MY_OUTDIR}
|
|
|
|
@${RLN} ${WRKSRC}/* ${MY_OUTDIR}
|
|
|
|
.for i in ${PRELUDE_FILES} ${ESSAY_FILES}
|
2020-12-29 16:30:13 +01:00
|
|
|
@${CP} ${LOCALBASE}/share/rime-data/${i} ${MY_OUTDIR}
|
2020-12-17 11:47:28 +01:00
|
|
|
.endfor
|
|
|
|
.for i in ${SCHEMA_FILES}
|
|
|
|
rime_deployer --compile ${WRKSRC}/${i} ${MY_OUTDIR}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/rime-data
|
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/rime-data/opencc
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/opencc/* ${STAGEDIR}${PREFIX}/share/rime-data/opencc
|
|
|
|
${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}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}/demo
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/demo/* ${STAGEDIR}${DOCSDIR}/demo
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/README.md ${STAGEDIR}/${DOCSDIR}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/README-cmn.md ${STAGEDIR}/${DOCSDIR}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/README-en.md ${STAGEDIR}/${DOCSDIR}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|