From hrs@allbsd.org  Fri Jun 27 05:16:15 2003
Return-Path: <hrs@allbsd.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D234637B401
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 27 Jun 2003 05:16:15 -0700 (PDT)
Received: from smtp.eos.ocn.ne.jp (eos.ocn.ne.jp [211.6.83.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 316D443FFB
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 27 Jun 2003 05:16:14 -0700 (PDT)
	(envelope-from hrs@allbsd.org)
Received: from mail.d.allbsd.org (p19167-adsao12honb4-acca.tokyo.ocn.ne.jp [219.165.47.167])
	by smtp.eos.ocn.ne.jp (Postfix) with ESMTP id C2F7F37AC
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 27 Jun 2003 21:16:12 +0900 (JST)
Received: from alph.allbsd.org (alph.allbsd.org [192.168.0.10])
	by mail.d.allbsd.org (8.12.9/3.7W/DomainMaster) with ESMTP id h5RCCaSI040777
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 27 Jun 2003 21:12:37 +0900 (JST)
	(envelope-from hrs@allbsd.org)
Received: from alph.allbsd.org (localhost [127.0.0.1])
	by alph.allbsd.org (8.12.9/8.12.9) with ESMTP id h5RCCZ5I002504
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 27 Jun 2003 21:12:36 +0900 (JST)
	(envelope-from hrs@alph.d.allbsd.org)
Received: (from hrs@localhost)
	by alph.allbsd.org (8.12.9/8.12.9/Submit) id h5RCCZjK002503;
	Fri, 27 Jun 2003 21:12:35 +0900 (JST)
Message-Id: <200306271212.h5RCCZjK002503@alph.allbsd.org>
Date: Fri, 27 Jun 2003 21:12:35 +0900 (JST)
From: Hiroki Sato <hrs@freebsd.org>
Reply-To: Hiroki Sato <hrs@freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Switch to use xmlcatmgr: textproc/html
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         53819
>Category:       ports
>Synopsis:       Switch to use xmlcatmgr: textproc/html
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 27 05:20:12 PDT 2003
>Closed-Date:    Mon Jun 30 23:21:59 PDT 2003
>Last-Modified:  Mon Jun 30 23:21:59 PDT 2003
>Originator:     Hiroki Sato
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
Tokyo University of Science
>Environment:
System: FreeBSD alph.allbsd.org 4.8-STABLE FreeBSD 4.8-STABLE #7: Tue May 20 00:05:43 JST 2003     hrs@alph.allbsd.org:/home/obj/home/src/sys/ALPH  i386

>Description:
	Change this port to use textproc/xmlcatmgr and bump ${PORTREVISION}.
	This PR supersedes ports/52640 and please read the original PR
	for the motivation.


>How-To-Repeat:
	N/A

>Fix:

Index: html/Makefile
===================================================================
RCS file: /home/ncvs/ports/textproc/html/Makefile,v
retrieving revision 1.13
diff -d -u -I\$FreeBSD:.*\$ -I\$Id:.*\$ -I\$hrs:.*\$ -u -r1.13 Makefile
--- html/Makefile	22 Feb 2003 07:48:49 -0000	1.13
+++ html/Makefile	27 Jun 2003 11:03:37 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	html
 PORTVERSION=	4.01
+PORTREVISION=	1
 CATEGORIES=	textproc
 MASTER_SITES=	${MASTER_SITE_LOCAL}
 MASTER_SITE_SUBDIR=	kuriyama
@@ -15,15 +16,18 @@
 MAINTAINER=	kuriyama@FreeBSD.org
 COMMENT=	All W3C published SGML DTDs for HTML
 
-RUN_DEPENDS=	${MKCATALOG}:${PORTSDIR}/textproc/mkcatalog
+RUN_DEPENDS=	${XMLCATMGR}:${PORTSDIR}/textproc/xmlcatmgr
 
 NO_MTREE=	yes
 NO_BUILD=	yes
 NO_WRKSUBDIR=	yes
-PLIST_SUB=	DTD_NAME=${PORTNAME} MKCATALOG=${MKCATALOG}
+
+PLIST_SUB=	DTD_NAME=${PORTNAME} XMLCATMGR=${XMLCATMGR}
+PLIST_SUB+=	CATALOG_PORTS_SGML=${CATALOG_PORTS_SGML}
 
 INSTDIR=	${PREFIX}/share/sgml/html
-MKCATALOG=	${PREFIX}/sbin/mkcatalog
+XMLCATMGR=	${LOCALBASE}/bin/xmlcatmgr
+CATALOG_PORTS_SGML=	${PREFIX}/share/sgml/catalog.ports
 
 pre-install:
 	@[ -d ${INSTDIR} ] || ${MKDIR} ${INSTDIR}
@@ -34,6 +38,6 @@
 	@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${INSTDIR}
 
 post-install:
-	@${MKCATALOG} -q install ${PORTNAME}
+	@${XMLCATMGR} -sc ${CATALOG_PORTS_SGML} add CATALOG ${PORTNAME}/catalog
 
 .include <bsd.port.mk>
Index: html/pkg-plist
===================================================================
RCS file: /home/ncvs/ports/textproc/html/pkg-plist,v
retrieving revision 1.5
diff -d -u -I\$FreeBSD:.*\$ -I\$Id:.*\$ -I\$hrs:.*\$ -u -r1.5 pkg-plist
--- html/pkg-plist	27 Oct 2000 15:32:58 -0000	1.5
+++ html/pkg-plist	27 Jun 2003 09:20:52 -0000
@@ -21,9 +21,9 @@
 share/sgml/html/4.01/frameset.dtd
 share/sgml/html/4.01/loose.dtd
 share/sgml/html/4.01/strict.dtd
-@unexec %%MKCATALOG%% -q deinstall %%DTD_NAME%%
+@unexec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% remove %%DTD_NAME%%/catalog
 share/sgml/html/catalog
-@exec %%MKCATALOG%% -q install %%DTD_NAME%%
+@exec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% add %%DTD_NAME%%/catalog
 @dirrm share/sgml/html/2.0
 @dirrm share/sgml/html/3.2
 @dirrm share/sgml/html/4.0
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: kuriyama 
State-Changed-When: Mon Jun 30 23:21:39 PDT 2003 
State-Changed-Why:  
Committed, thanks! 

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