Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jun 2003 21:12:38 +0900 (JST)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/53825: Switch to use xmlcatmgr: textproc/linuxdoc
Message-ID:  <200306271212.h5RCCcjS002716@alph.allbsd.org>
Resent-Message-ID: <200306271220.h5RCKEVb049099@freefall.freebsd.org>

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

>Number:         53825
>Category:       ports
>Synopsis:       Switch to use xmlcatmgr: textproc/linuxdoc
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 27 05:20:14 PDT 2003
>Closed-Date:
>Last-Modified:
>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: linuxdoc/Makefile
===================================================================
RCS file: /home/ncvs/ports/textproc/linuxdoc/Makefile,v
retrieving revision 1.15
diff -d -u -I\$FreeBSD:.*\$ -I\$Id:.*\$ -I\$hrs:.*\$ -u -r1.15 Makefile
--- linuxdoc/Makefile	22 Feb 2003 07:48:49 -0000	1.15
+++ linuxdoc/Makefile	27 Jun 2003 12:08:20 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	linuxdoc
 PORTVERSION=	1.1
+PORTREVISION=	1
 CATEGORIES=	textproc
 MASTER_SITES=	http://fallout.campusview.indiana.edu/ports/distfiles/
 
@@ -14,16 +15,19 @@
 COMMENT=	The Linuxdoc SGML DTD
 
 RUN_DEPENDS=	${ISOCAT}:${PORTSDIR}/textproc/iso8879 \
-		${MKCATALOG}:${PORTSDIR}/textproc/mkcatalog
+		${XMLCATMGR}:${PORTSDIR}/textproc/xmlcatmgr
 
 EXTRACT_ONLY=	# empty
 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/linuxdoc
 ISOCAT=		${PREFIX}/share/sgml/iso8879/catalog
-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: linuxdoc/pkg-plist
===================================================================
RCS file: /home/ncvs/ports/textproc/linuxdoc/pkg-plist,v
retrieving revision 1.7
diff -d -u -I\$FreeBSD:.*\$ -I\$Id:.*\$ -I\$hrs:.*\$ -u -r1.7 pkg-plist
--- linuxdoc/pkg-plist	10 Nov 2002 22:30:18 -0000	1.7
+++ linuxdoc/pkg-plist	27 Jun 2003 10:12:56 -0000
@@ -1,7 +1,7 @@
 share/sgml/linuxdoc/README
-@unexec %%MKCATALOG%% -q deinstall %%DTD_NAME%%
+@unexec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% remove %%DTD_NAME%%/catalog
 share/sgml/linuxdoc/catalog
-@exec %%MKCATALOG%% -q install %%DTD_NAME%%
+@exec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% add %%DTD_NAME%%/catalog
 share/sgml/linuxdoc/freebsd-1.0.dtd
 share/sgml/linuxdoc/freebsd-1.1.dtd
 share/sgml/linuxdoc/linuxdoc.dec
>Release-Note:
>Audit-Trail:
>Unformatted:



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