Skip site navigation (1)Skip section navigation (2)
Date:      11 Sep 1998 18:19:32 +0900
From:      sada@e-mail.ne.jp
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/7894: japanese/handbook: building on-demand PLIST
Message-ID:  <19980911091932.12436.qmail@sada.e-mail.ne.jp>

next in thread | raw e-mail | index | archive | help

>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 <bsd.port.mk>
>Audit-Trail:
>Unformatted:

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?19980911091932.12436.qmail>