2001-05-20 22:53:56 +02:00
|
|
|
# New ports collection makefile for: mg
|
|
|
|
# Date created: 14 May 2001
|
|
|
|
# Whom: Dima Dorfman <dima@unixfreak.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mg
|
2005-11-16 17:05:35 +01:00
|
|
|
PORTVERSION= 20050820
|
2001-05-20 22:53:56 +02:00
|
|
|
CATEGORIES= editors
|
2004-06-08 11:39:25 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
2005-11-16 17:05:35 +01:00
|
|
|
MASTER_SITE_SUBDIR= lawrance
|
2001-05-20 22:53:56 +02:00
|
|
|
|
2006-11-19 13:28:48 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= A small, fast Emacs-like editor
|
2001-05-20 22:53:56 +02:00
|
|
|
|
2001-06-24 19:18:36 +02:00
|
|
|
MANSECTS= 1
|
2001-05-20 22:53:56 +02:00
|
|
|
MAN1= mg.1
|
|
|
|
MANCOMPRESSED= maybe
|
|
|
|
|
2001-06-24 19:18:36 +02:00
|
|
|
# MAN page COMPression SUFFIX
|
|
|
|
.if !defined(NOMANCOMPRESS)
|
|
|
|
MANCOMPSUFFIX= .gz
|
2001-05-20 22:53:56 +02:00
|
|
|
.else
|
2001-06-24 19:18:36 +02:00
|
|
|
MANCOMPSUFFIX=
|
2001-05-20 22:53:56 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/mg ${PREFIX}/bin/mg
|
2001-06-24 19:18:36 +02:00
|
|
|
.for __s in ${MANSECTS}
|
|
|
|
.for __m in ${MAN${__s}:S/$/${MANCOMPSUFFIX}/}
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/${__m} ${PREFIX}/man/man${__s}/${__m}
|
|
|
|
.endfor
|
|
|
|
.endfor
|
2001-05-20 22:53:56 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${PREFIX}/share/doc/mg
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/tutorial \
|
|
|
|
${PREFIX}/share/doc/mg
|
|
|
|
.endif
|
|
|
|
|
2003-12-19 12:40:16 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2001-05-20 22:53:56 +02:00
|
|
|
#
|
|
|
|
# Ports build/install stuff stops here. Tarball creation stuff begins here.
|
|
|
|
#
|
|
|
|
CVS_CMD?= cvs -z3
|
2005-11-16 17:05:35 +01:00
|
|
|
CVS_DATE= Sat Aug 20 21:22:23 UTC 2005
|
2001-05-20 22:53:56 +02:00
|
|
|
CVS_SITES?= anoncvs@anoncvs3.usa.openbsd.org:/cvs \
|
|
|
|
anoncvs@anoncvs1.ca.openbsd.org:/cvs
|
|
|
|
CVS_MODULE= src/usr.bin/mg
|
2005-11-16 17:05:35 +01:00
|
|
|
CVS_STRTONUM= src/lib/libc/stdlib/strtonum.c
|
2001-05-20 22:53:56 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# CVS checkout stuff mostly stolen from security/openssh-askpass port by
|
|
|
|
# kris@freebsd.org
|
|
|
|
#
|
|
|
|
tarball:
|
|
|
|
@${MKDIR} ${DISTDIR}/${PKGNAME} && \
|
|
|
|
cd ${DISTDIR}/${PKGNAME}; \
|
|
|
|
for CVS_SITE in ${CVS_SITES}; do \
|
|
|
|
${ECHO_MSG} ">> Attempting to check out from $${CVS_SITE}."; \
|
|
|
|
if ${CVS_CMD} -d $${CVS_SITE} co -D "${CVS_DATE}" \
|
2005-11-16 17:05:35 +01:00
|
|
|
${CVS_MODULE} ${CVS_STRTONUM}; then \
|
2001-05-20 22:53:56 +02:00
|
|
|
cd ${DISTDIR}; \
|
|
|
|
${ECHO_MSG} ">> Creating dist tarball in ${DISTDIR}"; \
|
|
|
|
${ECHO_MSG} ">> \"${PKGNAME}.tar.gz\"."; \
|
|
|
|
${MV} ${PKGNAME}/${CVS_MODULE} \
|
|
|
|
${PKGNAME}/${CVS_MODULE:H}/${PKGNAME}; \
|
2005-11-16 17:05:35 +01:00
|
|
|
${MV} ${PKGNAME}/${CVS_STRTONUM} \
|
|
|
|
${PKGNAME}/${CVS_MODULE:H}/${PKGNAME}; \
|
2001-05-20 22:53:56 +02:00
|
|
|
${TAR} -cz \
|
|
|
|
-X ${FILESDIR}/tarignore \
|
|
|
|
-f ${PKGNAME}.tar.gz \
|
|
|
|
-C ${PKGNAME}/${CVS_MODULE:H} \
|
|
|
|
${PKGNAME}; \
|
|
|
|
exit; \
|
|
|
|
fi \
|
|
|
|
done; \
|
|
|
|
${RMDIR} ${DISTDIR}/${PKGNAME}; \
|
|
|
|
${ECHO_MSG} ">> CVS checkout failed."; \
|
|
|
|
exit 1;
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|