Skip site navigation (1)Skip section navigation (2)
Date:      11 Sep 1998 23:04:32 +0900
From:      sada@e-mail.ne.jp
To:        FreeBSD-gnats-submit@FreeBSD.ORG, horikawa@jp.FreeBSD.org
Subject:   ports/7897: japanese/man-doc: building on-demand PLIST
Message-ID:  <19980911140432.20904.qmail@sada.e-mail.ne.jp>

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

>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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980911140432.20904.qmail>