aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormax <max@FreeBSD.org>1996-10-22 20:12:31 +0800
committermax <max@FreeBSD.org>1996-10-22 20:12:31 +0800
commita6375ad4fec1f23d597619a6fedd17f7394798ca (patch)
treebdcb767dde8bcc8f40467fdf0c70a0052cc2a71e
parentcce43509224bec43417171eed33f7f2849c1deee (diff)
downloadfreebsd-ports-graphics-a6375ad4fec1f23d597619a6fedd17f7394798ca.tar.gz
freebsd-ports-graphics-a6375ad4fec1f23d597619a6fedd17f7394798ca.tar.zst
freebsd-ports-graphics-a6375ad4fec1f23d597619a6fedd17f7394798ca.zip
This port now installs its startup script in ${PREFIX}/etc/rc.d.
The location for the documentation to be installed is now ${PREFIX}/share/doc/jp-elvis. Added ``editors'' to the CATEGORIES list. (Closing PR #1733.) Submitted by: sanpei@yy.cs.keio.ac.jp
-rw-r--r--japanese/elvis/Makefile35
1 files changed, 28 insertions, 7 deletions
diff --git a/japanese/elvis/Makefile b/japanese/elvis/Makefile
index d50202cca4f..5ca18fb612f 100644
--- a/japanese/elvis/Makefile
+++ b/japanese/elvis/Makefile
@@ -3,12 +3,12 @@
# Date created: 5 October 1995
# Whom: Yoshiro MIHIRA <sanpei@yy.cs.keio.ac.jp>
#
-# $Id$
+# $Id: Makefile,v 1.1.1.1 1995/10/18 11:18:58 asami Exp $
#
DISTNAME= elv18src
PKGNAME= jp-elvis-1.8.4
-CATEGORIES+= japanese
+CATEGORIES+= japanese editors
MASTER_SITES= ftp://ftp.cs.pdx.edu/pub/elvis/
EXTRACT_SUFX= .tgz
@@ -22,13 +22,34 @@ LIB_DEPENDS= canna\\.1\\.:${PORTSDIR}/japanese/Canna
NO_WRKSUBDIR= yes
-post-patch:
- cp ${WRKSRC}/Makefile.mix ${WRKSRC}/Makefile
+STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/jp-elvis.sh
+do-configure:
+ @cp ${WRKSRC}/Makefile.mix ${WRKSRC}/Makefile
post-install:
- if [ ! -d ${PREFIX}/share/jp-elvis ]; then \
- mkdir -p ${PREFIX}/share/jp-elvis; \
+ if [ ! -d ${PREFIX}/share/doc/jp-elvis ]; then \
+ mkdir -p ${PREFIX}/share/doc/jp-elvis; \
+ fi
+ ${INSTALL_DATA} ${WRKSRC}/README.j18 ${PREFIX}/share/doc/jp-elvis
+ @/bin/sh ${PKGDIR}/REQ ${PKGNAME} INSTALL
+ @if [ ! -f ${STARTUP_SCRIPT} ]; then \
+ echo "Installing ${STARTUP_SCRIPT} startup file."; \
+ echo '#!/bin/sh' > ${STARTUP_SCRIPT}; \
+ echo 'virecovery=`echo /var/tmp/elv_*`' \
+ >> ${STARTUP_SCRIPT}; \
+ echo 'if [ "$$virecovery" != '"'/var/tmp/elv_*' ]; then" \
+ >> ${STARTUP_SCRIPT}; \
+ echo " echo 'Recovering jp-elvis editor sessions'" \
+ >> ${STARTUP_SCRIPT}; \
+ echo ' for i in $$virecovery; do' \
+ >> ${STARTUP_SCRIPT}; \
+ echo " ${PREFIX}/bin/elvprsv "'$$i' \
+ >> ${STARTUP_SCRIPT}; \
+ echo ' done' \
+ >> ${STARTUP_SCRIPT}; \
+ echo 'fi' >> ${STARTUP_SCRIPT}; \
+ chmod 755 ${STARTUP_SCRIPT}; \
+ chown bin.bin ${STARTUP_SCRIPT}; \
fi
- cp ${WRKSRC}/README.j18 ${PREFIX}/share/jp-elvis
.include <bsd.port.mk>