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