1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-31 10:46:16 +00:00
freebsd-ports/chinese/rime-array/Makefile
Ka Ho Ng 1a2b517d99 chinese/rime-array: Update to snapshot 20210824
Sponsored By:	The FreeBSD Foundation
Approved by:	ygy
Differential Revision:	https://reviews.freebsd.org/D33184
2021-11-30 05:38:35 -05:00

56 lines
1.3 KiB
Makefile

# Created by: Ka Ho Ng <khng300@gmail.com>
PORTNAME= rime-array
DISTVERSION= g20210824
CATEGORIES= chinese textproc
MAINTAINER= khng@FreeBSD.org
COMMENT= Rime Array input 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= d10f2f8b2aec7c7e736ace01e8a399e5ae5e7c3a
NO_ARCH= yes
PORTDOCS= README.md
PRELUDE_FILES= default.yaml key_bindings.yaml punctuation.yaml symbols.yaml
ESSAY_FILES= essay.txt
SCHEMA_FILES= array30.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}/README.md ${STAGEDIR}/${DOCSDIR}
.include <bsd.port.mk>