aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/emacs-manual
diff options
context:
space:
mode:
authorokazaki <okazaki@FreeBSD.org>2004-06-14 11:42:15 +0800
committerokazaki <okazaki@FreeBSD.org>2004-06-14 11:42:15 +0800
commitead771d5ff3f47d2952e9372c06b1a0bbc3e1d17 (patch)
treeef815ff5ad925c42c53b7e73970b8292c7e66042 /japanese/emacs-manual
parente5538e5bfef23e461d60b82bf0c0be30f9bddb0b (diff)
downloadfreebsd-ports-gnome-ead771d5ff3f47d2952e9372c06b1a0bbc3e1d17.tar.gz
freebsd-ports-gnome-ead771d5ff3f47d2952e9372c06b1a0bbc3e1d17.tar.zst
freebsd-ports-gnome-ead771d5ff3f47d2952e9372c06b1a0bbc3e1d17.zip
Use INFO.
Set EXTRACT_DEPENDS.
Diffstat (limited to 'japanese/emacs-manual')
-rw-r--r--japanese/emacs-manual/Makefile36
-rw-r--r--japanese/emacs-manual/files/Makefile.in19
-rw-r--r--japanese/emacs-manual/files/patch-aa2
-rw-r--r--japanese/emacs-manual/pkg-plist3
4 files changed, 29 insertions, 31 deletions
diff --git a/japanese/emacs-manual/Makefile b/japanese/emacs-manual/Makefile
index a5b66c4d60b1..4d1c4a5295d6 100644
--- a/japanese/emacs-manual/Makefile
+++ b/japanese/emacs-manual/Makefile
@@ -27,8 +27,8 @@ EXTRACT_ONLY= ${DISTNAME}.tgz
EMACS_DISTNAME= emacs-${EMACS_VER}
EMACS_ARC= ${EMACS_DISTNAME}.tar.gz
EMACS_SRCDIR= ${WRKDIR}/${EMACS_DISTNAME}
-EXTRACT_FILES= ${EMACS_DISTNAME}/man/ack.texi \
- ${EMACS_DISTNAME}/lisp/textmodes/texinfmt.el
+EXTRACT_FILES= ${EMACS_DISTNAME}/man/ack.texi
+TEXINFMT_EL= ${LOCALBASE}/${EMACS_LIBDIR_WITH_VER}/lisp/textmodes/texinfmt.el
# We must apply this patch at first.
EXTRA_PATCHES= ${WRKSRC}/patch-texinfmt.el
@@ -39,6 +39,14 @@ EXTRACT_ONLY+= ${ERRATA_FILE}.tgz
EXTRA_PATCHES+= ${WRKDIR}/${ERRATA_FILE}
.endif
+EXTRACT_DEPENDS+= ${TEXINFMT_EL}:${EMACS_PORTSDIR}
+
+INFO= emacs-ja
+TEXINFO= emacs.texi
+
+EMACS_ARGS= -batch -nw --multibyte -no-init-file -no-site-file
+EMACS_LOADLIBS= --load=texinfmt.el --load=PORT_TEXIFMT.MK
+
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
@@ -46,30 +54,42 @@ IGNORE= is broken: hangs during build
.endif
post-extract:
- ${CP} ${FILESDIR}/Makefile.in ${WRKSRC}/Makefile
${CP} ${FILESDIR}/PORT_TEXIFMT.MK ${WRKSRC}
@(cd ${WRKDIR} && \
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${EMACS_ARC} ${EXTRACT_AFTER_ARGS} ${EXTRACT_FILES} ; \
${CP} ${EXTRACT_FILES} ${WRKSRC})
+ ${CP} ${TEXINFMT_EL} ${WRKSRC}
${MKDIR} ${WRKDIR}/info
# workaround target (please delete after emacs-20.7-man-jp is released).
pre-patch:
- @(cd ${WRKSRC} && \
- ${PATCH} ${PATCH_ARGS} < ${FILESDIR}/extra-patch-texinfmt.el.patch ; \
- )
+ cd ${WRKSRC}; \
+ ${PATCH} ${PATCH_ARGS} < ${FILESDIR}/extra-patch-texinfmt.el.patch
post-patch:
- cd ${WRKSRC} && \
+ cd ${WRKSRC}; \
${REINPLACE_CMD} -E -e 's/(@[^@]*ref{.*,.*,.*, *elisp),/\1-ja,/;' *.texi
pre-build:
@${ECHO_MSG} "===> Now start formatting texinfo. Please wait."
+do-build:
+ cd ${WRKSRC}; for f in ${TEXINFO}; do \
+ ${EMACS_CMD} ${EMACS_ARGS} ${EMACS_LOADLIBS} \
+ --eval "(port-texinfo-format \"$$f\" 'junet)"; \
+ done
+
post-build:
@${ECHO_MSG} "===> Done."
+do-install:
+.for i in ${INFO}
+ ${INSTALL_DATA} ${WRKDIR}/info/$i.info ${PREFIX}/${INFO_PATH}
+.endfor
+
post-install:
- install-info ${PREFIX}/info/emacs-ja ${PREFIX}/info/dir
+.for i in ${INFO}
+ install-info ${PREFIX}/${INFO_PATH}/$i.info ${PREFIX}/${INFO_PATH}/dir
+.endfor
.include <bsd.port.post.mk>
diff --git a/japanese/emacs-manual/files/Makefile.in b/japanese/emacs-manual/files/Makefile.in
deleted file mode 100644
index f6727b76474a..000000000000
--- a/japanese/emacs-manual/files/Makefile.in
+++ /dev/null
@@ -1,19 +0,0 @@
-TEXIFILE= emacs.texi
-INFOFILE= ../info/emacs-ja
-
-EMACS?= emacs
-
-EMACS_ARGS= -batch -nw --multibyte -no-init-file -no-site-file
-EMACS_LOADLIBS= --load=texinfmt.el --load=PORT_TEXIFMT.MK
-EMACS_FUNCALLS= --eval "(port-texinfo-format \"${TEXIFILE}\" 'junet)"
-
-all: ${INFOFILE}
-
-${INFOFILE}: ${TEXIFILE}
- ${EMACS} ${EMACS_ARGS} ${EMACS_LOADLIBS} ${EMACS_FUNCALLS}
-
-install: all
- ${BSD_INSTALL_DATA} ${INFOFILE} ${PREFIX}/info
-
-clean:
- rm -f ${INFOFILE}
diff --git a/japanese/emacs-manual/files/patch-aa b/japanese/emacs-manual/files/patch-aa
index 1b426c743e0f..e2924ee7b46a 100644
--- a/japanese/emacs-manual/files/patch-aa
+++ b/japanese/emacs-manual/files/patch-aa
@@ -5,7 +5,7 @@
@c @settitle GNU Emacs Manual
@settitle GNU Emacsマニュアル
-@setfilename ../info/emacs
-+@setfilename ../info/emacs-ja
++@setfilename ../info/emacs-ja.info
+@footnotestyle end
@synindex pg cp
diff --git a/japanese/emacs-manual/pkg-plist b/japanese/emacs-manual/pkg-plist
deleted file mode 100644
index 84f56e30fc33..000000000000
--- a/japanese/emacs-manual/pkg-plist
+++ /dev/null
@@ -1,3 +0,0 @@
-@unexec install-info --delete %D/info/emacs-ja %D/info/dir
-info/emacs-ja
-@exec install-info %D/info/emacs-ja %D/info/dir