Date: Mon, 14 Sep 1998 13:20:01 -0700 (PDT) From: sada@e-mail.ne.jp To: freebsd-ports@FreeBSD.ORG Subject: Re: ports/7897: japanese/man-doc: building on-demand PLIST Message-ID: <199809142020.NAA06976@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/7897; it has been noted by GNATS. From: sada@e-mail.ne.jp To: freebsd-gnats-submit@freebsd.org Cc: Subject: Re: ports/7897: japanese/man-doc: building on-demand PLIST Date: 15 Sep 1998 05:15:54 +0900 The patch of ports/7897 couldn't perform about hard links of man page files. I have updated the patch, which had been reviewed by the maintainer of the port, Mr.Horikawa. Please remove pkg/PLIST from original skeleton > Committer -- diff -urN man-doc.orig/Makefile man-doc/Makefile --- man-doc.orig/Makefile Mon Apr 27 07:05:15 1998 +++ man-doc/Makefile Mon Sep 14 09:17:50 1998 @@ -17,8 +17,8 @@ NO_CHECKSUM= yes NO_MTREE= yes WRKSRC= ${WRKDIR}/man +PLIST= ${WRKDIR}/PLIST -LANGNAME= ja MANSECS= 1 5 8 JAMANDIR?= /usr/opt/doc/ja/man @@ -35,8 +35,31 @@ .for sec in ${MANSECS} @if [ -d ${JAMANDIR}/man${sec} ]; then \ ${CP} -R ${JAMANDIR}/man${sec} ${WRKSRC}/ ; \ + ${ECHO} >>${WRKSRC}/man${sec}/Makefile; \ + ${ECHO} pages-list: >>${WRKSRC}/man${sec}/Makefile; \ + ${ECHO} " @\$${ECHO} \$${MAN${sec}} \$${MLINKS}" \ + >>${WRKSRC}/man${sec}/Makefile; \ fi .endfor + +post-build: + @${RM} -f ${PLIST} + @for sec in ${MANSECS}; do \ + if [ -d ${WRKSRC}/man$${sec} ]; then \ + cd ${WRKSRC}/man$${sec}; \ + list=`${MAKE} pages-list`; \ + set `${ECHO} $$list " "|${SED} 's/\.\([^.]*\) /.\1 \1 /g'`; \ + while : ; do \ + case $$# in \ + 0) break;; \ + [1]) ${ECHO} "can not happen"; break;; \ + esac; \ + ${ECHO} share/man/ja/man$$2/$$1.gz; shift 2; \ + done; \ + fi; \ + done|sort|uniq >>${PLIST} + @${ECHO} "@exec ln -sf %D/share/man/ja %D/share/man/ja_JP.EUC" >>${PLIST} + @${ECHO} "@unexec ${RM} -f %D/share/man/ja_JP.EUC" >>${PLIST} pre-install: .for sec in ${MANSECS} To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809142020.NAA06976>