diff options
Diffstat (limited to 'shells/tcsh/Makefile')
-rw-r--r-- | shells/tcsh/Makefile | 90 |
1 files changed, 63 insertions, 27 deletions
diff --git a/shells/tcsh/Makefile b/shells/tcsh/Makefile index 9eee840df60a..3a897f107629 100644 --- a/shells/tcsh/Makefile +++ b/shells/tcsh/Makefile @@ -1,36 +1,72 @@ -# New ports collection makefile for: tcsh -# Version required: 6.07.02 -# Date created: 22 August 1994 -# Whom: jkh +# New ports collection makefile for: tcsh with color-ls and kanji patches +# Version required: 6.07.06 +# Date created: 29 November 1997 +# Whom: issei <issei@t-cnet.or.jp> # -# $Id: Makefile,v 1.17 1996/12/17 05:18:09 asami Exp $ +# $Id: Makefile,v 1.3 1997/12/28 22:11:37 asami Exp $ # -DISTNAME= tcsh-6.07 -PKGNAME= tcsh-6.07.02 -CATEGORIES= shells -MASTER_SITES= ftp://ftp.astron.com/pub/tcsh/ +DISTNAME= tcsh-6.07.06 +PKGNAME= ja-tcsh-6.07.06b4 +CATEGORIES= japanese shells +MASTER_SITES= ftp://ftp.gw.com/pub/unix/tcsh/ \ + ftp://ftp.kobe-u.ac.jp/pub/shell/tcsh/ \ + ftp://ftp.netlab.is.tsukuba.ac.jp/pub/unix/shells/tcsh/ \ + http://www.is.s.u-tokyo.ac.jp/~nayuta/pub/ \ + ftp://ftp.lab.kdd.co.jp/Usenet/fj.sources/1998/jun/ +DISTFILES= ${DISTNAME}.tgz ${DISTNAME}-color-1.07.tgz -MAINTAINER= ache@FreeBSD.ORG +PATCH_SITES= http://www2.wbs.ne.jp/~znc/tcsh/ \ + ftp://ftp.lab.kdd.co.jp/Usenet/fj.sources/1998/jun/ +PATCHFILES= ${DISTNAME}.kanji.patch7b4.gz +PATCH_DIST_STRIP= -p1 -GNU_CONFIGURE= yes -WRKSRC= ${WRKDIR}/${PKGNAME} -ALL_TARGET= all catalogs -INSTALL_TARGET= install install.man -MAN1= tcsh.1 +MAINTAINER= issei@t-cnet.or.jp + +BUILD_DEPENDS= nkf:${PORTSDIR}/japanese/nkf + +GNU_CONFIGURE= yes +ALL_TARGET= all catalogs +INSTALL_TARGET= install install.man +MAN1= tcsh.1 +NLSDIR= ${PREFIX}/share/nls +PORTDOCS= complete.tcsh FAQ HISTORY.kanji.patch.euc HowToMakeNLS.euc \ + README-color.ja README.kanji.patch.euc +ALL_CATALOGS= ja ja.roomi ja.koshiki +USE_CATALOG?= ja + +post-patch: + @-(cd ${WRKSRC}; \ + ${PATCH} ${PATCH_DIST_ARGS} < ../color.patch ; \ + ${PATCH} ${PATCH_DIST_ARGS} < ../kanji.patch ; \ + ) > /dev/null 2>&1 +.for i in ${ALL_CATALOGS} + @(cd ${WRKSRC}/nls/$i; \ + ${MKDIR} ../$i_s; \ + for j in * ; do \ + nkf -Es $$j | \ + ${AWK} '{gsub(/[\x81-\x84\x88-\x9f\xe0-\xea]\\/,"&\\"); print; }' \ + > ../$i_s/$$j ; done ; \ + ) +.endfor post-install: - chown bin.bin ${PREFIX}/bin/tcsh - chown bin.bin ${PREFIX}/man/man1/tcsh.1 - cd ${WRKSRC}; ${INSTALL_DATA} tcsh.C.cat ${PREFIX}/share/nls/C/tcsh.cat - cd ${WRKSRC}; ${INSTALL_DATA} tcsh.french.cat ${PREFIX}/share/nls/fr_FR.ISO_8859-1/tcsh.cat - ln -sf ${PREFIX}/share/nls/fr_FR.ISO_8859-1/tcsh.cat ${PREFIX}/share/nls/fr_BE.ISO_8859-1/tcsh.cat - ln -sf ${PREFIX}/share/nls/fr_FR.ISO_8859-1/tcsh.cat ${PREFIX}/share/nls/fr_CA.ISO_8859-1/tcsh.cat - ln -sf ${PREFIX}/share/nls/fr_FR.ISO_8859-1/tcsh.cat ${PREFIX}/share/nls/fr_CH.ISO_8859-1/tcsh.cat - cd ${WRKSRC}; ${INSTALL_DATA} tcsh.german.cat ${PREFIX}/share/nls/de_DE.ISO_8859-1/tcsh.cat - ln -sf ${PREFIX}/share/nls/de_DE.ISO_8859-1/tcsh.cat ${PREFIX}/share/nls/de_AT.ISO_8859-1/tcsh.cat - ln -sf ${PREFIX}/share/nls/de_DE.ISO_8859-1/tcsh.cat ${PREFIX}/share/nls/de_CH.ISO_8859-1/tcsh.cat - install -d -o ${BINOWN} -g ${BINGRP} -m 755 ${PREFIX}/share/nls/el_GR.ISO_8859-7 - cd ${WRKSRC}; ${INSTALL_DATA} tcsh.greek.cat ${PREFIX}/share/nls/el_GR.ISO_8859-7/tcsh.cat + @(cd ${WRKSRC}; \ + ${INSTALL_DATA} tcsh.C.cat ${NLSDIR}/C/tcsh.cat; \ + ${INSTALL_DATA} tcsh.C.m ${NLSDIR}/C/tcsh.m; \ + ${INSTALL_DATA} tcsh.${USE_CATALOG}.cat ${NLSDIR}/ja_JP.EUC/tcsh.cat; \ + ${INSTALL_DATA} tcsh.${USE_CATALOG}.m ${NLSDIR}/ja_JP.EUC/tcsh.m; \ + ${INSTALL_DATA} tcsh.${USE_CATALOG}_s.cat ${NLSDIR}/ja_JP.SJIS/tcsh.cat; \ + ${INSTALL_DATA} tcsh.${USE_CATALOG}_s.m ${NLSDIR}/ja_JP.SJIS/tcsh.m; \ + ) +.if !defined(NOPORTDOCS) + @${MKDIR} ${PREFIX}/share/doc/tcsh +.for i in ${PORTDOCS} + @${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/doc/tcsh/ +.endfor +.endif + @${ECHO} "updating /etc/shells" + @${CP} /etc/shells /etc/shells.bak + @(grep -v ${PREFIX}/bin/tcsh /etc/shells.bak; ${ECHO} ${PREFIX}/bin/tcsh) >/etc/shells .include <bsd.port.mk> |