mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
401b2fdc9e
This adds the following new schemas: - chinese/rime-array - chinese/rime-combo-pinyin - chinese/rime-double-pinyin - chinese/rime-emoji - chinese/rime-ipa - chinese/rime-jyutping - chinese/rime-middle-pinyin - chinese/rime-pinyin-simp - chinese/rime-quick - chinese/rime-scj - chinese/rime-soutzoe - chinese/rime-stenotype - chinese/rime-wubi - chinese/rime-wugniu The following metaport has been added: - chinese/rime-data-full Users can install the metaport to immediately get a full bundle of schemas available in upstream RIME. Submitted by: Ka Ho Ng <khng300@gmail.com> Approved by: lwhsu Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D27739
58 lines
1.4 KiB
Makefile
58 lines
1.4 KiB
Makefile
# Created by: Ka Ho Ng <khng300@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= rime-scj
|
|
DISTVERSION= g20190120
|
|
CATEGORIES= chinese textproc
|
|
|
|
MAINTAINER= khng300@gmail.com
|
|
COMMENT= Rime Smart Cangjie schema support
|
|
|
|
LICENSE= GPLv3
|
|
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= cab5a0858765eff0553dd685a2d61d5536e9149c
|
|
|
|
NO_ARCH= yes
|
|
|
|
PORTDOCS= AUTHORS README.md
|
|
|
|
PRELUDE_FILES= default.yaml key_bindings.yaml punctuation.yaml symbols.yaml
|
|
ESSAY_FILES= essay.txt
|
|
SCHEMA_FILES= scj6.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>
|