1998-08-30 21:26:06 +00:00
|
|
|
# New ports collection makefile for: ja-tcsh NLS catalog (Generic Japanese)
|
1999-07-06 23:09:17 +00:00
|
|
|
# Version required: 6.08.05
|
1998-08-30 21:26:06 +00:00
|
|
|
# Date created: 19 August 1998
|
1999-08-31 06:53:31 +00:00
|
|
|
# Whom: Issei Suzuki <issei@jp.FreeBSD.org>
|
1998-08-30 21:26:06 +00:00
|
|
|
#
|
1999-08-25 05:28:01 +00:00
|
|
|
# $FreeBSD$
|
1998-08-30 21:26:06 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
.if !defined(NLSSRC)
|
1999-07-06 23:09:17 +00:00
|
|
|
DISTNAME= tcsh-6.08.05
|
|
|
|
PKGNAME= ja-tcsh-nls-generic-6.08.05
|
1998-08-30 21:26:06 +00:00
|
|
|
CATEGORIES= japanese shells
|
1999-07-29 21:21:12 +00:00
|
|
|
MASTER_SITES= ftp://ftp.astron.com/pub/tcsh/ ${MASTER_SITE_PORTS_JP}
|
1999-01-06 19:12:23 +00:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}.add2${EXTRACT_SUFX}
|
1998-08-30 21:26:06 +00:00
|
|
|
|
1999-08-31 06:53:31 +00:00
|
|
|
MAINTAINER= issei@jp.FreeBSD.org
|
1998-08-30 21:26:06 +00:00
|
|
|
|
|
|
|
PATCH_DIST_STRIP= -p1
|
1999-01-06 19:12:23 +00:00
|
|
|
NLSSRC= ${DISTNAME}/nls/ja
|
1998-08-30 21:26:06 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
BUILD_DEPENDS= nkf:${PORTSDIR}/japanese/nkf
|
|
|
|
RUN_DEPENDS= tcsh:${PORTSDIR}/japanese/tcsh
|
|
|
|
|
1999-07-06 23:09:17 +00:00
|
|
|
WRKSRC= ${WRKDIR}/tcsh-6.08.05.add2
|
1998-10-10 03:57:33 +00:00
|
|
|
|
1998-08-30 21:26:06 +00:00
|
|
|
NLSDIR= ${PREFIX}/share/nls
|
|
|
|
GENCAT= /usr/bin/gencat
|
|
|
|
NKF= ${PREFIX}/bin/nkf
|
|
|
|
NLSSRC_FULL= ${WRKDIR}/${NLSSRC}
|
1998-10-10 03:57:33 +00:00
|
|
|
PORTDOCS= HISTORY.additional HowToMakeNLS.euc README.additional
|
1998-08-30 21:26:06 +00:00
|
|
|
|
|
|
|
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:
|
1998-10-10 03:57:33 +00:00
|
|
|
${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
|
1998-08-30 21:26:06 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|