From owner-freebsd-ports Fri Sep 11 07:10:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA05115 for freebsd-ports-outgoing; Fri, 11 Sep 1998 07:10:10 -0700 (PDT) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA05094 for ; Fri, 11 Sep 1998 07:10:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id HAA29465; Fri, 11 Sep 1998 07:10:02 -0700 (PDT) Received: from thalamus.my.domain (h221.p060.iij4u.or.jp [210.130.60.221]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id HAA04825 for ; Fri, 11 Sep 1998 07:04:43 -0700 (PDT) (envelope-from sada@rr.iij4u.or.jp) Received: (qmail 20905 invoked by uid 1000); 11 Sep 1998 23:04:32 +0900 Message-Id: <19980911140432.20904.qmail@sada.e-mail.ne.jp> Date: 11 Sep 1998 23:04:32 +0900 From: sada@e-mail.ne.jp Reply-To: sada@e-mail.ne.jp To: FreeBSD-gnats-submit@FreeBSD.ORG, horikawa@jp.FreeBSD.org X-Send-Pr-Version: 3.2 Subject: ports/7897: japanese/man-doc: building on-demand PLIST Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 7897 >Category: ports >Synopsis: japanese/man-doc: building on-demand PLIST >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Sep 11 07:10:01 PDT 1998 >Last-Modified: >Originator: SADA Kenji >Organization: Nagoya.Aichi.Japan >Release: FreeBSD 2.2.7-RELEASE i386 >Environment: FreeBSD 2.2.7-RELEASE i386 >Description: Recent japanese/man-doc port has a fixed PLIST, and build package would lost some newly added man page files. If you create a PLIST at port build time, a compete ja-man-doc package could be build. >How-To-Repeat: >Fix: Apply the patch below. 'pkg/PLIST' is no more necessary, please remove. --- Makefile.orig Mon Apr 27 07:05:15 1998 +++ Makefile Fri Sep 11 20:29:38 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 @@ -37,6 +37,19 @@ ${CP} -R ${JAMANDIR}/man${sec} ${WRKSRC}/ ; \ fi .endfor + +post-build: + @${RM} -f ${PLIST} +.for sec in ${MANSECS} + @if [ -d ${WRKSRC}/man${sec} ]; then \ + cd ${WRKSRC}; \ + find man${sec} -name '*.gz' \ + | ${SED} -e 's;^.*$$;share/man/ja/&;' \ + | sort >>${PLIST}; \ + fi +.endfor + @${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} >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message