aboutsummaryrefslogtreecommitdiff
path: root/japanese
diff options
context:
space:
mode:
authorOKAZAKI Tetsurou <okazaki@FreeBSD.org>2004-06-14 03:42:15 +0000
committerOKAZAKI Tetsurou <okazaki@FreeBSD.org>2004-06-14 03:42:15 +0000
commitd163bd3efbc34740bb9878b4e13140af43a47cfd (patch)
tree02c33caf50af662a2d5f9a4ef49ab7e2ca580050 /japanese
parent6594e43353cab8206bbb4cecb4d50ead2d56c008 (diff)
downloadports-d163bd3efbc34740bb9878b4e13140af43a47cfd.tar.gz
ports-d163bd3efbc34740bb9878b4e13140af43a47cfd.zip
Notes
Diffstat (limited to 'japanese')
-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