From ijliao@FreeBSD.csie.NCTU.edu.tw  Mon Feb 16 23:58:43 2004
Return-Path: <ijliao@FreeBSD.csie.NCTU.edu.tw>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C095916A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 16 Feb 2004 23:58:43 -0800 (PST)
Received: from FreeBSD.csie.NCTU.edu.tw (freebsd.csie.nctu.edu.tw [140.113.17.209])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9553443D1F
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 16 Feb 2004 23:58:43 -0800 (PST)
	(envelope-from ijliao@FreeBSD.csie.NCTU.edu.tw)
Received: from localhost (localhost.csie.nctu.edu.tw [127.0.0.1])
	by FreeBSD.csie.NCTU.edu.tw (Postfix) with ESMTP id BE40A106C1B
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 17 Feb 2004 15:58:35 +0800 (CST)
Received: from FreeBSD.csie.NCTU.edu.tw ([127.0.0.1])
 by localhost (FreeBSD.csie.NCTU.edu.tw [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 10781-10 for <FreeBSD-gnats-submit@freebsd.org>;
 Tue, 17 Feb 2004 15:58:35 +0800 (CST)
Received: by FreeBSD.csie.NCTU.edu.tw (Postfix, from userid 1041)
	id 6D6E2106C00; Tue, 17 Feb 2004 15:58:35 +0800 (CST)
Message-Id: <20040217075835.6D6E2106C00@FreeBSD.csie.NCTU.edu.tw>
Date: Tue, 17 Feb 2004 15:58:35 +0800 (CST)
From: Ying-Chieh Liao <ijliao@FreeBSD.csie.NCTU.edu.tw>
Reply-To: Ying-Chieh Liao <ijliao@FreeBSD.csie.NCTU.edu.tw>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: auto-gen plist for gettext .mo files
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         62949
>Category:       ports
>Synopsis:       [patch] auto-gen plist for gettext .mo files
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    portmgr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 17 00:00:32 PST 2004
>Closed-Date:    Fri Oct 15 23:22:02 GMT 2004
>Last-Modified:  Fri Oct 15 23:22:02 GMT 2004
>Originator:     Ying-Chieh Liao
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
NCTU CSIE
>Environment:
System: FreeBSD FreeBSD.csie.NCTU.edu.tw 4.9-STABLE FreeBSD 4.9-STABLE #8: Wed Oct 29 10:04:27 CST 2003 root@FreeBSD.csie.NCTU.edu.tw:/big/usr.obj/big/freebsd/pub/branches/4.0-stable/src/sys/FREEBSD i386


	
>Description:
	
>How-To-Repeat:
	
>Fix:

	

--- patch begins here ---
Index: bsd.port.mk
===================================================================
RCS file: /home/pcvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.484
diff -u -r1.484 bsd.port.mk
--- bsd.port.mk	4 Feb 2004 04:27:04 -0000	1.484
+++ bsd.port.mk	5 Feb 2004 08:54:51 -0000
@@ -3791,7 +3791,7 @@
 			    run-depends lib-depends pre-install pre-install-script \
 				generate-plist check-already-installed
 _INSTALL_SUSEQ= check-umask install-mtree pre-su-install \
-				pre-su-install-script do-install add-plist-info post-install \
+				pre-su-install-script do-install add-plist-info add-plist-mo post-install \
 				post-install-script add-plist-docs compress-man run-ldconfig fake-pkg \
 				security-check
 _PACKAGE_DEP=	install
@@ -4913,6 +4913,10 @@
 	@${ECHO_CMD} "@exec install-info %D/info/$i.info %D/info/dir" \
 		>> ${TMPPLIST}
 .endfor
+
+add-plist-mo:
+	@${FIND} ${PREFIX}/share/locale -name ${PORTNAME}.mo | \
+		${SED} "s:^${PREFIX}/::" >> ${TMPPLIST}
 
 # Compress (or uncompress) and symlink manpages.
 .if !target(compress-man)
--- patch ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->portmgr  
Responsible-Changed-By: krion 
Responsible-Changed-When: Tue Feb 17 01:46:54 PST 2004 
Responsible-Changed-Why:  
portmgr territory 

http://www.freebsd.org/cgi/query-pr.cgi?pr=62949 
State-Changed-From-To: open->feedback 
State-Changed-By: kris 
State-Changed-When: Thu Jun 17 07:28:37 GMT 2004 
State-Changed-Why:  
I'm not sure this patch is a good idea; there's no guarantee that the 
files were installed by this port, e.g. there are probably cases where 
two ports install .mo files with the same name.  Also, they may be 
old files that were installed by a previous port, or by the user. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=62949 
State-Changed-From-To: feedback->closed 
State-Changed-By: kris 
State-Changed-When: Fri Oct 15 23:21:52 GMT 2004 
State-Changed-Why:  
Feedback timeout 

http://www.freebsd.org/cgi/query-pr.cgi?pr=62949 
>Unformatted:
