1995-10-18 11:18:59 +00:00
|
|
|
# New ports collection makefile for: elvis + japanese patch
|
|
|
|
# Date created: 5 October 1995
|
|
|
|
# Whom: Yoshiro MIHIRA <sanpei@yy.cs.keio.ac.jp>
|
|
|
|
#
|
1999-08-25 05:28:01 +00:00
|
|
|
# $FreeBSD$
|
1995-10-18 11:18:59 +00:00
|
|
|
#
|
|
|
|
|
2000-04-11 14:15:53 +00:00
|
|
|
PORTNAME= elvis
|
|
|
|
PORTVERSION= 1.8.4
|
1996-11-11 10:13:07 +00:00
|
|
|
CATEGORIES= japanese editors
|
1995-10-18 11:18:59 +00:00
|
|
|
MASTER_SITES= ftp://ftp.cs.pdx.edu/pub/elvis/
|
|
|
|
EXTRACT_SUFX= .tgz
|
2000-04-11 14:15:53 +00:00
|
|
|
DISTNAME= ${PORTNAME}-1.8
|
1995-10-18 11:18:59 +00:00
|
|
|
|
|
|
|
PATCH_SITES= ftp://ftp.foretune.co.jp/pub/tools/jelvis/
|
2000-04-11 14:15:53 +00:00
|
|
|
PATCHFILES= j${PORTNAME}1.8p4-j1.1.tar.Z
|
1995-10-18 11:18:59 +00:00
|
|
|
|
|
|
|
MAINTAINER= sanpei@yy.cs.keio.ac.jp
|
|
|
|
|
1998-09-21 22:33:26 +00:00
|
|
|
LIB_DEPENDS= canna.1:${PORTSDIR}/japanese/Canna
|
1995-10-18 11:18:59 +00:00
|
|
|
|
|
|
|
NO_WRKSUBDIR= yes
|
1997-09-15 00:04:00 +00:00
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
MAN1= elvis.1 ctags.1 ref.1 elvrec.1 elvprsv.1
|
1995-10-18 11:18:59 +00:00
|
|
|
|
1997-09-14 23:58:19 +00:00
|
|
|
STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/ja-elvis.sh
|
1996-12-03 13:08:20 +00:00
|
|
|
|
1996-10-22 12:12:31 +00:00
|
|
|
do-configure:
|
1996-12-03 13:08:20 +00:00
|
|
|
@${CP} ${WRKSRC}/Makefile.mix ${WRKSRC}/Makefile
|
1995-10-18 11:18:59 +00:00
|
|
|
|
|
|
|
post-install:
|
1997-09-14 23:58:19 +00:00
|
|
|
@${MKDIR} ${PREFIX}/share/doc/ja-elvis
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.j18 ${PREFIX}/share/doc/ja-elvis
|
1997-07-13 18:49:31 +00:00
|
|
|
@${SH} ${PKGDIR}/REQ ${PKGNAME} INSTALL
|
1996-10-22 12:12:31 +00:00
|
|
|
@if [ ! -f ${STARTUP_SCRIPT} ]; then \
|
1999-08-27 22:30:39 +00:00
|
|
|
${ECHO} "Installing ${STARTUP_SCRIPT} startup file."; \
|
|
|
|
${ECHO} '#!/bin/sh' > ${STARTUP_SCRIPT}; \
|
|
|
|
${ECHO} 'virecovery=`${ECHO} /var/tmp/elv_*`' \
|
1996-10-22 12:12:31 +00:00
|
|
|
>> ${STARTUP_SCRIPT}; \
|
1999-08-27 22:30:39 +00:00
|
|
|
${ECHO} 'if [ "$$virecovery" != '"'/var/tmp/elv_*' ]; then" \
|
1996-10-22 12:12:31 +00:00
|
|
|
>> ${STARTUP_SCRIPT}; \
|
1999-08-27 22:30:39 +00:00
|
|
|
${ECHO} " ${ECHO} 'Recovering ja-elvis editor sessions'" \
|
1996-10-22 12:12:31 +00:00
|
|
|
>> ${STARTUP_SCRIPT}; \
|
1999-08-27 22:30:39 +00:00
|
|
|
${ECHO} ' for i in $$virecovery; do' \
|
1996-10-22 12:12:31 +00:00
|
|
|
>> ${STARTUP_SCRIPT}; \
|
1999-08-27 22:30:39 +00:00
|
|
|
${ECHO} " ${PREFIX}/bin/elvprsv "'$$i' \
|
1996-10-22 12:12:31 +00:00
|
|
|
>> ${STARTUP_SCRIPT}; \
|
1999-08-27 22:30:39 +00:00
|
|
|
${ECHO} ' done' \
|
1996-10-22 12:12:31 +00:00
|
|
|
>> ${STARTUP_SCRIPT}; \
|
1999-08-27 22:30:39 +00:00
|
|
|
${ECHO} 'fi' >> ${STARTUP_SCRIPT}; \
|
1999-08-22 19:01:07 +00:00
|
|
|
${CHMOD} 755 ${STARTUP_SCRIPT}; \
|
|
|
|
${CHOWN} bin.bin ${STARTUP_SCRIPT}; \
|
1995-10-18 11:18:59 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|