diff options
Diffstat (limited to 'japanese/emacs-manual/Makefile')
-rw-r--r-- | japanese/emacs-manual/Makefile | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/japanese/emacs-manual/Makefile b/japanese/emacs-manual/Makefile index 6e0f9fd5cb0d..66ab8518caa8 100644 --- a/japanese/emacs-manual/Makefile +++ b/japanese/emacs-manual/Makefile @@ -16,12 +16,13 @@ DISTFILES= ${DISTNAME}.tgz ${EMACS_ARC} MAINTAINER= okazaki@be.to -BUILD_DEPENDS= ${EMACS}:${PORTSDIR}/editors/emacs20 +EMACS_PORT_NAME= emacs20 +EMACS_NO_RUN_DEPENDS= YES ERRATA_FILE= EXTRACT_ONLY= ${DISTNAME}.tgz -EMACS_DISTNAME= emacs-20.6 +EMACS_DISTNAME= emacs-${EMACS_VER} EMACS_ARC= ${EMACS_DISTNAME}.tar.gz EMACS_SRCDIR= ${WRKDIR}/${EMACS_DISTNAME} EXTRACT_FILES= ${EMACS_DISTNAME}/man/ack.texi \ @@ -36,11 +37,6 @@ EXTRACT_ONLY+= ${ERRATA_FILE}.tgz EXTRA_PATCHES+= ${WRKDIR}/${ERRATA_FILE} .endif -# We use emacs20 to format texinfo files. -EMACS= emacs-20.6 - -MAKE_ENV= EMACS="${EMACS}" - post-extract: ${CP} ${FILESDIR}/Makefile.in ${WRKSRC}/Makefile ${CP} ${FILESDIR}/PORT_TEXIFMT.MK ${WRKSRC} @@ -49,6 +45,12 @@ post-extract: ${CP} ${EXTRACT_FILES} ${WRKSRC}) ${MKDIR} ${WRKDIR}/info +# workaround target (please delete after emacs-20.7-man-jp is released). +pre-patch: + @(cd ${WRKSRC} && \ + ${PATCH} ${PATCH_ARGS} < ${FILESDIR}/patch-texinfmt.el.patch ; \ + ) + post-patch: cd ${WRKSRC} && \ ${PERL} -pi -e 's/(@[^@]*ref{.*,.*,.*, *elisp),/$$1-ja,/;' *.texi |