Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Oct 2003 16:28:38 +0900
From:      Kimura Fuyuki <fuyuki@nigredo.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/58108: Update port: textproc/xhtml-1.1 (use xmlcatmgr, plus repo-copy request)
Message-ID:  <868ynlzlnd.wl%fuyuki@nigredo.org>
Resent-Message-ID: <200310160730.h9G7UJEc091504@freefall.freebsd.org>

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

>Number:         58108
>Category:       ports
>Synopsis:       Update port: textproc/xhtml-1.1 (use xmlcatmgr, plus repo-copy request)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 16 00:30:18 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Kimura Fuyuki
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
>Environment:

  FreeBSD ns.nigredo.org 5.1-CURRENT i386

>Description:
- Use xmlcatmgr

- Please repo-copy textproc/xhtml-1.1 to textproc/xhtml-11, since the
  current directory name doesn't follow the ports' naming convention.

>How-To-Repeat:

>Fix:
cvs diff: Diffing .
Index: Makefile
===================================================================
RCS file: /cvs/FreeBSD/ports/textproc/xhtml-1.1/Makefile,v
retrieving revision 1.1
diff -u -r1.1 Makefile
--- Makefile	11 Jul 2003 19:09:30 -0000	1.1
+++ Makefile	16 Oct 2003 07:16:45 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	xhtml
 PORTVERSION=	1.1
+PORTREVISION=	1
 CATEGORIES=	textproc
 MASTER_SITES=	http://www.w3.org/TR/xhtml11/
 DISTNAME=	xhtml11
@@ -15,12 +16,24 @@
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	W3C's XHTML 1.1 DTD
 
+RUN_DEPENDS=	${XMLCATMGR}:${PORTSDIR}/textproc/xmlcatmgr
+
 WRKSRC=		${WRKDIR}/xhtml11-20010531
 NO_BUILD=	yes
+PLIST_SUB=	XMLCATMGR=${XMLCATMGR}
+PLIST_SUB+=	DTDDIR=${DTDDIR}
+PLIST_SUB+=	CATALOG_PORTS_SGML=${CATALOG_PORTS_SGML}
+
 DTDDIR=		${PREFIX}/share/xml/${PORTNAME}/${PORTVERSION}
+XMLCATMGR=	${LOCALBASE}/bin/xmlcatmgr
+CATALOG_PORTS_SGML=	${PREFIX}/share/sgml/catalog.ports
 
 do-install:
 	${MKDIR} ${DTDDIR}
 	${INSTALL_DATA} ${WRKSRC}/DTD/* ${DTDDIR}
+
+post-install:
+	${XMLCATMGR} -sc ${CATALOG_PORTS_SGML}	\
+		add CATALOG ${DTDDIR}/xhtml11.cat
 
 .include <bsd.port.mk>
Index: pkg-plist
===================================================================
RCS file: /cvs/FreeBSD/ports/textproc/xhtml-1.1/pkg-plist,v
retrieving revision 1.1
diff -u -r1.1 pkg-plist
--- pkg-plist	11 Jul 2003 19:09:30 -0000	1.1
+++ pkg-plist	16 Oct 2003 07:15:15 -0000
@@ -1,7 +1,9 @@
 share/xml/xhtml/1.1/VERSION
 share/xml/xhtml/1.1/xhtml11-flat.dtd
 share/xml/xhtml/1.1/xhtml11-model-1.mod
+@unexec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% remove %%DTDDIR%%/xhtml11.cat
 share/xml/xhtml/1.1/xhtml11.cat
+@exec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% add CATALOG %%DTDDIR%%/xhtml11.cat
 share/xml/xhtml/1.1/xhtml11.dtd
 share/xml/xhtml/1.1/xml1.dcl
 share/xml/xhtml/1.1/xml1n.dcl

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?868ynlzlnd.wl%fuyuki>