Lines 1-47
Link Here
|
1 |
PORTNAME= skk-tools |
1 |
PORTNAME= skk-tools |
2 |
PORTVERSION= 1.3.4 |
2 |
DISTVERSION= 1.3.4-28 |
3 |
PORTEPOCH= 1 |
3 |
DISTVERSIONSUFFIX= -g1e8c457 |
|
|
4 |
PORTEPOCH= 2 |
4 |
CATEGORIES= japanese |
5 |
CATEGORIES= japanese |
5 |
MASTER_SITES= http://openlab.ring.gr.jp/skk/tools/ |
|
|
6 |
DISTNAME= skktools-${PORTVERSION} |
7 |
|
6 |
|
8 |
MAINTAINER= ports@FreeBSD.org |
7 |
MAINTAINER= ports@FreeBSD.org |
9 |
COMMENT= Jisyo-tools for the SKK Japanese-input software |
8 |
COMMENT= Jisyo-tools for the SKK Japanese-input software |
10 |
WWW= http://openlab.ring.gr.jp/skk/ |
9 |
WWW= https://github.com/skk-dev/skktools |
11 |
|
10 |
|
12 |
LICENSE= GPLv2 |
11 |
LICENSE= GPLv2 |
|
|
12 |
LICENSE_FILE= ${WRKSRC}/COPYING |
13 |
|
13 |
|
14 |
GNU_CONFIGURE= yes |
14 |
USES= gettext-runtime gnome pkgconfig python |
15 |
|
15 |
USE_GNOME= glib20 |
16 |
DOCSDIR= ${PREFIX}/share/doc/skk |
|
|
17 |
|
16 |
|
18 |
WRKSRC= ${WRKDIR}/skktools-${DISTNAME:S/./_/g} |
17 |
USE_GITHUB= yes |
|
|
18 |
GH_ACCOUNT= skk-dev |
19 |
GH_PROJECT= skktools |
19 |
|
20 |
|
20 |
PORTDOCS= README.skktools |
21 |
GNU_CONFIGURE= yes |
21 |
PLIST_FILES= bin/skkdic-count bin/skkdic-expr bin/skkdic-sort |
22 |
CONFIGURE_ARGS= --with-skkdic-expr2 |
22 |
|
23 |
|
23 |
OPTIONS_DEFINE= DOCS EXPR2 |
24 |
PLIST_FILES= bin/skkdic-count bin/skkdic-expr bin/skkdic-expr2 \ |
24 |
OPTIONS_DEFAULT= EXPR2 |
25 |
bin/skkdic-sort bin/skk2cdb |
|
|
26 |
PORTDOCS= FAQ.md README.md README.skkdic-expr2.md |
25 |
|
27 |
|
26 |
EXPR2_DESC= Build skkdic-expr2 (needs glib-2.x) |
28 |
OPTIONS_DEFINE= DIFF DOCS |
27 |
EXPR2_USES= gnome pkgconfig |
29 |
DIFF_DESC= Install skkdic-diff (lang/gauche dependency) |
28 |
EXPR2_USE= GNOME=glib20 |
30 |
DIFF_RUN_DEPENDS= gosh:lang/gauche |
29 |
EXPR2_PLIST_FILES= bin/skkdic-expr2 |
31 |
DIFF_PLIST_FILES= bin/skkdic-diff |
30 |
EXPR2_CONFIGURE_WITH= skkdic-expr2 |
|
|
31 |
|
32 |
|
32 |
.include <bsd.port.options.mk> |
33 |
.include <bsd.port.options.mk> |
33 |
|
34 |
|
34 |
.if ${PORT_OPTIONS:MEXPR2} |
35 |
.if ${PORT_OPTIONS:MDIFF} |
35 |
PORTDOCS+= README.skkdic-expr2 |
36 |
PORTDOCS+= README.skkdic-diff.md |
36 |
.endif |
37 |
.endif |
37 |
|
38 |
|
38 |
post-build: |
39 |
post-extract: |
39 |
@${LN} -sf README.C ${WRKSRC}/READMEs/README.skktools |
40 |
@${REINPLACE_CMD} -e "s|python3|${PYTHON_VERSION}|" ${WRKSRC}/skk2cdb.py |
|
|
41 |
|
42 |
post-extract-DIFF-on: |
43 |
@${REINPLACE_CMD} -e 's|gosh|env gosh|' ${WRKSRC}/skkdic-diff.scm |
40 |
|
44 |
|
41 |
post-install: |
45 |
post-install: |
|
|
46 |
${INSTALL_SCRIPT} ${WRKSRC}/skk2cdb.py ${STAGEDIR}${PREFIX}/bin/skk2cdb |
47 |
|
48 |
post-install-DIFF-on: |
49 |
${INSTALL_SCRIPT} ${WRKSRC}/skkdic-diff.scm \ |
50 |
${STAGEDIR}${PREFIX}/bin/skkdic-diff |
51 |
|
52 |
post-install-DOCS-on: |
42 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
53 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
43 |
.for i in ${PORTDOCS} |
54 |
.for i in ${PORTDOCS} |
44 |
(cd ${WRKSRC}/READMEs && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR}) |
55 |
${INSTALL_DATA} ${WRKSRC}/READMEs/${i} ${STAGEDIR}${DOCSDIR} |
45 |
.endfor |
56 |
.endfor |
46 |
|
57 |
|
47 |
.include <bsd.port.mk> |
58 |
.include <bsd.port.mk> |