From owner-freebsd-ports Fri Sep 11 02:20:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA08659 for freebsd-ports-outgoing; Fri, 11 Sep 1998 02:20:14 -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 CAA08624 for ; Fri, 11 Sep 1998 02:20:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id CAA14685; Fri, 11 Sep 1998 02:20:02 -0700 (PDT) Received: from thalamus.my.domain (h098.p060.iij4u.or.jp [210.130.60.98]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id CAA08552 for ; Fri, 11 Sep 1998 02:19:45 -0700 (PDT) (envelope-from sada@rr.iij4u.or.jp) Received: (qmail 12437 invoked by uid 1000); 11 Sep 1998 18:19:32 +0900 Message-Id: <19980911091932.12436.qmail@sada.e-mail.ne.jp> Date: 11 Sep 1998 18:19:32 +0900 From: sada@e-mail.ne.jp Reply-To: sada@rr.iij4u.or.jp To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: ports/7894: japanese/handbook: building on-demand PLIST Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 7894 >Category: ports >Synopsis: japanese/handbook: 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 02:20: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/handbook port has a fixed PLIST, and build package could lost some newly added *.html files. If you create a PLIST at port build time, a complete ja-handbook package could be build. >How-To-Repeat: >Fix: Apply the patch below. 'pkg/PLIST' is no more necessary, please remove. --- Makefile.orig Wed Sep 9 03:33:27 1998 +++ Makefile Fri Sep 11 17:13:55 1998 @@ -6,7 +6,7 @@ # $Id: Makefile,v 1.9 1998/08/15 14:56:05 kuriyama Exp $ # -DISTNAME= ja-handbook-2.2.6 +DISTNAME= ja-handbook-2.2.7 CATEGORIES= japanese DISTFILES= # none @@ -17,9 +17,10 @@ PREFIX= /usr NO_MTREE= yes WRKSRC= ${WRKDIR}/handbook +PLIST= ${WRKDIR}/PLIST HANDBOOKDIR?= /usr/opt/doc/ja/handbook -DOCDIR= ${PREFIX}/share/doc/ja +DOC_SUBDIR?= share/doc/ja/handbook do-extract: @if [ ! -d ${HANDBOOKDIR} ]; then \ @@ -33,9 +34,25 @@ ${CP} ${HANDBOOKDIR}/Makefile ${WRKSRC} ${CP} ${HANDBOOKDIR}/*.sgml ${WRKSRC} +post-build: + @${ECHO} "${DOC_SUBDIR}/handbook.html" >${PLIST} + @${ECHO} "${DOC_SUBDIR}/handbook.ln" >>${PLIST} + @${ECHO} "@exec cd %B; /bin/sh %f" >>${PLIST} + @${ECHO} "${DOC_SUBDIR}/handbook.roff" >>${PLIST} + @cd ${WRKSRC} && \ + /bin/ls handbook[0-9]*.html \ + | /usr/bin/sort|${AWK} '{printf "${DOC_SUBDIR}/%s\n", $$1}' \ + >>${PLIST} + @${ECHO} "${DOC_SUBDIR}/handbook_toc.html" >>${PLIST} + @${ECHO} "@comment remove all links" >>${PLIST} + @${ECHO} "@unexec cd %B; for i in *.html; do if [ -h \$$i ]; then /bin/rm -f \$$i; fi; done" \ + >>${PLIST} + @${ECHO} "@dirrm ${DOC_SUBDIR}" >>${PLIST} + pre-install: - ${MKDIR} ${DOCDIR}/handbook + ${MKDIR} ${PREFIX}/${DOC_SUBDIR} + post-install: - ${INSTALL_DATA} ${WRKSRC}/handbook.ln ${DOCDIR}/handbook + ${INSTALL_DATA} ${WRKSRC}/handbook.ln ${PREFIX}/${DOC_SUBDIR} .include >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message