blob: 84d2a57567a77028c72f04ca89d33e30f6727804 (
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
|
# Created by: Makoto Matsushita <matusita@jp.FreeBSD.ORG>
PORTNAME= dbskkd-cdb
PORTVERSION= 3.00
PORTREVISION= 0
CATEGORIES= japanese
MAINTAINER= ports@FreeBSD.org
COMMENT= SKK dictionary server based on cdb
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${LOCALBASE}/lib/libcdb.a:databases/tinycdb
RUN_DEPENDS= ${SKKJISYOCDB}:japanese/skk-jisyo-cdb
USE_GITHUB= yes
GH_ACCOUNT= jj1bdx
MAKE_ENV= LOCALBASE="${LOCALBASE}" \
SKKJISYOCDB="${SKKJISYOCDB}"
PLIST_FILES= libexec/dbskkd-cdb
SUB_FILES= pkg-message
PORTDOCS= ${PORTDOCS_FILE} ${PORTDOCS_SH}
SKKDIR?= share/skk
SKKJISYO_TYPE?= L
SKKJISYOCDB?= ${LOCALBASE}/${SKKDIR}/SKK-JISYO.${SKKJISYO_TYPE}.cdb
PORTDOCS_FILE= CHANGES.md LICENSE README.md READMEJP.md \
examples.md skk-server-protocol.md
PORTDOCS_SH= makeskkcdb.sh skktocdbm.sh
OPTIONS_DEFINE= DOCS
post-patch:
.for f in READMEJP.md makeskkcdb.sh
${REINPLACE_CMD} -e "s!%%PREFIX%%!${PREFIX}!g" \
-e "s!%%SKKDIR%%!${SKKDIR}!g" \
-e "s!%%JISYONAME%%!SKK-JISYO.${SKKJISYO_TYPE}!g" ${WRKSRC}/${f}
.endfor
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/dbskkd-cdb ${STAGEDIR}${PREFIX}/libexec
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS_FILE:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
${INSTALL_SCRIPT} ${PORTDOCS_SH:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|