blob: 4d3fd3475e01ef92b95c286cec3d4e8627523d55 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# New ports collection makefile for: ja-tcsh NLS catalog (Generic Japanese)
# Version required: 6.08.05
# Date created: 19 August 1998
# Whom: Issei Suzuki <issei@jp.FreeBSD.org>
#
# $FreeBSD$
#
.if !defined(NLSSRC)
DISTNAME= tcsh-6.08.05
PKGNAME= ja-tcsh-nls-generic-6.08.05
CATEGORIES= japanese shells
MASTER_SITES= ftp://ftp.astron.com/pub/tcsh/ ${MASTER_SITE_PORTS_JP}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}.add2${EXTRACT_SUFX}
MAINTAINER= issei@jp.FreeBSD.org
PATCH_DIST_STRIP= -p1
NLSSRC= ${DISTNAME}/nls/ja
.endif
BUILD_DEPENDS= nkf:${PORTSDIR}/japanese/nkf
RUN_DEPENDS= tcsh:${PORTSDIR}/japanese/tcsh
WRKSRC= ${WRKDIR}/tcsh-6.08.05.add2
NLSDIR= ${PREFIX}/share/nls
GENCAT= /usr/bin/gencat
NKF= ${PREFIX}/bin/nkf
NLSSRC_FULL= ${WRKDIR}/${NLSSRC}
PORTDOCS= HISTORY.additional HowToMakeNLS.euc README.additional
post-patch:
@${MKDIR} ${NLSSRC_FULL}_sjis
@(cd ${NLSSRC_FULL}; \
for j in set[0-9] set[0-9][0-9] ; do \
${NKF} -Es $$j | \
${AWK} '{gsub(/[\x81-\x84\x88-\x9f\xe0-\xea]\\/,"&\\"); print; }' \
> ${NLSSRC_FULL}_sjis/$$j ; done ; \
)
do-build:
@(cd ${NLSSRC_FULL}; \
${CAT} set[0-9] set[0-9][0-9] > tcsh.m; \
${GENCAT} tcsh.cat tcsh.m; \
cd ${NLSSRC_FULL}_sjis; \
${CAT} set[0-9] set[0-9][0-9] > tcsh.m; \
${GENCAT} tcsh.cat tcsh.m; \
)
do-install:
${INSTALL_DATA} ${NLSSRC_FULL}/tcsh.cat ${NLSDIR}/ja_JP.EUC/tcsh.cat
${INSTALL_DATA} ${NLSSRC_FULL}/tcsh.m ${NLSDIR}/ja_JP.EUC/tcsh.m
${INSTALL_DATA} ${NLSSRC_FULL}_sjis/tcsh.cat ${NLSDIR}/ja_JP.SJIS/tcsh.cat
${INSTALL_DATA} ${NLSSRC_FULL}_sjis/tcsh.m ${NLSDIR}/ja_JP.SJIS/tcsh.m
.if !defined(NOPORTDOCS)
.for i in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/doc/tcsh
.endfor
.endif
.include <bsd.port.mk>
|