ports/95619: japanese manpage of pdumpfs is wrong

Tsurutani Naoki turutani at scphys.kyoto-u.ac.jp
Sat Apr 15 22:37:45 UTC 2006


Here is a new patch:
--- Makefile.orig	Fri Nov 18 04:31:57 2005
+++ Makefile		Tue Apr 15 23:04:04 2006
@@ -19,13 +19,20 @@
 ALL_TARGET=	 pdumpfs
 DOCS=			ChangeLog README doc/*

+.if exists(${LOCALBASE}/bin/nkf)
 MANLANG=	"" ja
+.endif
 MAN8=		pdumpfs.8

 do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/pdumpfs ${PREFIX}/sbin/
	${INSTALL_MAN} ${WRKSRC}/man/man8/pdumpfs.8 ${PREFIX}/man/man8/
+.if exists(${LOCALBASE}/bin/nkf)
+    ${MV} ${WRKSRC}/man/ja/man8/pdumpfs.8 ${WRKSRC}/man/ja/man8/pdumpfs.8j
+    ${LOCALBASE}/bin/nkf -e ${WRKSRC}/man/ja/man8/pdumpfs.8j > ${WRKSRC}/man/ja/man8/pdumpfs.8
     ${INSTALL_MAN} ${WRKSRC}/man/ja/man8/pdumpfs.8 ${PREFIX}/man/ja/man8/
+.endif
 .if !defined(NOPORTDOCS)
     ${MKDIR} ${DOCSDIR}
 .for f in ${DOCS}

Variable of WITH_JPMAN is used to build Japanese man pages from doc-all.
I did not have any idea whether it can be re-used here, but I thought that
anyone who build Japanese man pages will find this knob, hence I used
this variable.



More information about the freebsd-ports-bugs mailing list