summaryrefslogtreecommitdiff
path: root/japanese/elvis/Makefile
blob: 36bf8291572cfcc6fda73a0a3e1e86c16d17cbc1 (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
# New ports collection makefile for:    elvis + japanese patch
# Date created:         5 October 1995
# Whom:                 Yoshiro MIHIRA <sanpei@yy.cs.keio.ac.jp>
#
# $FreeBSD$
#

PORTNAME=	elvis
PORTVERSION=	1.8.4
PORTREVISION=	1
CATEGORIES=	japanese editors
MASTER_SITES=   ftp://ftp.cs.pdx.edu/pub/elvis/
EXTRACT_SUFX=	.tgz
DISTNAME=	${PORTNAME}-1.8

PATCH_SITES=    ftp://ftp.foretune.co.jp/pub/tools/jelvis/
PATCHFILES=	j${PORTNAME}1.8p4-j1.1.tar.Z

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A clone of vi/ex, the standard UNIX editor, with Japanese patch

LIB_DEPENDS=	canna.1:${PORTSDIR}/japanese/Canna

NO_WRKSUBDIR=	yes
PATCH_DIST_STRIP=       -p1
MAN1=		elvis.1 ctags.1 ref.1 elvrec.1 elvprsv.1

STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/ja-elvis.sh

do-configure:
	@${CP} ${WRKSRC}/Makefile.mix ${WRKSRC}/Makefile

post-install:
	@${MKDIR} ${PREFIX}/share/doc/ja-elvis
	${INSTALL_DATA} ${WRKSRC}/README.j18 ${PREFIX}/share/doc/ja-elvis
	@${SH} ${PKGREQ} ${PKGNAME} INSTALL
	@if [ ! -f ${STARTUP_SCRIPT} ]; then				\
		${ECHO} "Installing ${STARTUP_SCRIPT} startup file.";	\
		${INSTALL_SCRIPT} ${FILESDIR}/ja-elvis.sh ${STARTUP_SCRIPT};\
	fi

.include <bsd.port.mk>