mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-06 22:51:41 +00:00
8cace20e8b
PR: 11878 Submitted by: maintainer
58 lines
1.6 KiB
Makefile
58 lines
1.6 KiB
Makefile
# New ports collection makefile for: ja-emacs-manual
|
|
# Version required: 13
|
|
# Date created: 14 April 1999
|
|
# Whom: OKAZAKI Tetsurou
|
|
#
|
|
# $Id: Makefile,v 1.1.1.1 1999/05/19 13:23:56 taoka Exp $
|
|
#
|
|
|
|
DISTNAME= emacs-20.3-man-jp
|
|
PKGNAME= ja-emacs-manual-13.1998.11.25
|
|
CATEGORIES= japanese
|
|
MASTER_SITES= ftp://ftp.ascii.co.jp/pub/GNU/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= okazaki@be.to
|
|
|
|
BUILD_DEPENDS= emacs-20.3:${PORTSDIR}/editors/emacs20 \
|
|
/nonexistent:${PORTSDIR}/editors/emacs20:fetch
|
|
|
|
# EMACS_ARC is fetched by BUILD_DEPENDS
|
|
EMACS_DISTNAME= emacs-20.3
|
|
EMACS_ARC= ${EMACS_DISTNAME}.tar.gz
|
|
EMACS_SRCDIR= ${WRKDIR}/${EMACS_DISTNAME}
|
|
EXTRACT_FILES= ${EMACS_DISTNAME}/man/ack.texi \
|
|
${EMACS_DISTNAME}/lisp/textmodes/texinfmt.el
|
|
|
|
# We use emacs20 to format texinfo files.
|
|
EMACS= emacs-20.3
|
|
FORMAT_FLAG= t
|
|
|
|
MAKE_ENV= EMACS="${EMACS}" FORMAT_FLAG="${FORMAT_FLAG}"
|
|
|
|
post-extract:
|
|
@${CP} ${FILESDIR}/Makefile.in ${WRKSRC}/Makefile
|
|
@(cd ${WRKDIR} && \
|
|
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${EMACS_ARC} ${EXTRACT_AFTER_ARGS} ${EXTRACT_FILES})
|
|
@${CP} ${EMACS_SRCDIR}/man/ack.texi ${WRKSRC}/ack.texi
|
|
@${CP} ${EMACS_SRCDIR}/lisp/textmodes/texinfmt.el ${WRKSRC}/texinfmt.el
|
|
|
|
pre-patch:
|
|
@${PATCH} ${PATCH_ARGS} < ${WRKSRC}/patch-texinfmt.el
|
|
|
|
post-patch:
|
|
@(cd ${WRKSRC} && ${MV} texinfmt.el texinfmt.el.tmp && \
|
|
${SED} -e 's/START-INFO-DIR-ENTRY\\n\\n/START-INFO-DIR-ENTRY\\n/g' \
|
|
texinfmt.el.tmp > texinfmt.el)
|
|
|
|
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>
|