1999-05-19 13:24:00 +00:00
|
|
|
# New ports collection makefile for: ja-emacs-manual
|
|
|
|
# Date created: 14 April 1999
|
|
|
|
# Whom: OKAZAKI Tetsurou
|
|
|
|
#
|
1999-08-25 05:28:01 +00:00
|
|
|
# $FreeBSD$
|
1999-05-19 13:24:00 +00:00
|
|
|
#
|
|
|
|
|
2000-04-11 14:15:53 +00:00
|
|
|
PORTNAME= emacs-manual
|
2000-04-30 20:10:41 +00:00
|
|
|
PORTVERSION= 13.20000303
|
1999-05-19 13:24:00 +00:00
|
|
|
CATEGORIES= japanese
|
2000-03-11 20:07:48 +00:00
|
|
|
MASTER_SITES= ftp://ftp.ascii.co.jp/pub/GNU/emacs-20.x/ \
|
2000-01-27 21:51:21 +00:00
|
|
|
${MASTER_SITE_GNU}
|
|
|
|
MASTER_SITE_SUBDIR= emacs
|
2000-04-30 20:10:41 +00:00
|
|
|
DISTNAME= emacs-20.6-man-jp
|
2000-01-27 21:51:21 +00:00
|
|
|
DISTFILES= ${DISTNAME}.tgz ${EMACS_ARC}
|
1999-05-19 13:24:00 +00:00
|
|
|
|
|
|
|
MAINTAINER= okazaki@be.to
|
|
|
|
|
2000-07-19 08:03:55 +00:00
|
|
|
EMACS_PORT_NAME= emacs20
|
|
|
|
EMACS_NO_RUN_DEPENDS= YES
|
1999-08-20 21:28:28 +00:00
|
|
|
|
2000-04-30 20:10:41 +00:00
|
|
|
ERRATA_FILE=
|
2000-03-11 20:07:48 +00:00
|
|
|
|
2000-01-27 21:51:21 +00:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}.tgz
|
2000-07-19 08:03:55 +00:00
|
|
|
EMACS_DISTNAME= emacs-${EMACS_VER}
|
2000-03-11 20:07:48 +00:00
|
|
|
EMACS_ARC= ${EMACS_DISTNAME}.tar.gz
|
1999-05-19 13:24:00 +00:00
|
|
|
EMACS_SRCDIR= ${WRKDIR}/${EMACS_DISTNAME}
|
|
|
|
EXTRACT_FILES= ${EMACS_DISTNAME}/man/ack.texi \
|
|
|
|
${EMACS_DISTNAME}/lisp/textmodes/texinfmt.el
|
|
|
|
|
2000-03-11 20:07:48 +00:00
|
|
|
# We must apply this patch at first.
|
|
|
|
EXTRA_PATCHES= ${WRKSRC}/patch-texinfmt.el
|
|
|
|
|
|
|
|
.if defined(ERRATA_FILE) && !empty(ERRATA_FILE)
|
|
|
|
DISTFILES+= ${ERRATA_FILE}.tgz
|
|
|
|
EXTRACT_ONLY+= ${ERRATA_FILE}.tgz
|
|
|
|
EXTRA_PATCHES+= ${WRKDIR}/${ERRATA_FILE}
|
|
|
|
.endif
|
|
|
|
|
1999-05-19 13:24:00 +00:00
|
|
|
post-extract:
|
2000-04-30 20:10:41 +00:00
|
|
|
${CP} ${FILESDIR}/Makefile.in ${WRKSRC}/Makefile
|
|
|
|
${CP} ${FILESDIR}/PORT_TEXIFMT.MK ${WRKSRC}
|
1999-05-19 13:24:00 +00:00
|
|
|
@(cd ${WRKDIR} && \
|
1999-11-21 15:22:38 +00:00
|
|
|
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${EMACS_ARC} ${EXTRACT_AFTER_ARGS} ${EXTRACT_FILES} ; \
|
|
|
|
${CP} ${EXTRACT_FILES} ${WRKSRC})
|
2000-04-30 20:10:41 +00:00
|
|
|
${MKDIR} ${WRKDIR}/info
|
|
|
|
|
2000-07-19 08:03:55 +00:00
|
|
|
# workaround target (please delete after emacs-20.7-man-jp is released).
|
|
|
|
pre-patch:
|
|
|
|
@(cd ${WRKSRC} && \
|
2000-10-07 22:11:23 +00:00
|
|
|
${PATCH} ${PATCH_ARGS} < ${FILESDIR}/extra-patch-texinfmt.el.patch ; \
|
2000-07-19 08:03:55 +00:00
|
|
|
)
|
|
|
|
|
2000-04-30 20:10:41 +00:00
|
|
|
post-patch:
|
|
|
|
cd ${WRKSRC} && \
|
|
|
|
${PERL} -pi -e 's/(@[^@]*ref{.*,.*,.*, *elisp),/$$1-ja,/;' *.texi
|
1999-05-19 13:24:00 +00:00
|
|
|
|
|
|
|
pre-build:
|
|
|
|
@${ECHO_MSG} "===> Now start formatting texinfo. Please wait."
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
@${ECHO_MSG} "===> Done."
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
install-info ${PREFIX}/info/emacs-ja ${PREFIX}/info/dir
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|