Date: Fri, 27 Jun 2003 21:12:43 +0900 (JST) From: Hiroki Sato <hrs@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/53829: Switch to use xmlcatmgr: textproc/tei-xlite Message-ID: <200306271212.h5RCChYb003037@alph.allbsd.org> Resent-Message-ID: <200306271220.h5RCKGkk049154@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 53829 >Category: ports >Synopsis: Switch to use xmlcatmgr: textproc/tei-xlite >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:16 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: tei-xlite/Makefile =================================================================== RCS file: /home/ncvs/ports/textproc/tei-xlite/Makefile,v retrieving revision 1.2 diff -d -u -I\$FreeBSD:.*\$ -I\$Id:.*\$ -I\$hrs:.*\$ -u -r1.2 Makefile --- tei-xlite/Makefile 21 Feb 2003 13:42:48 -0000 1.2 +++ tei-xlite/Makefile 27 Jun 2003 11:04:54 -0000 @@ -7,6 +7,7 @@ PORTNAME= tei PORTVERSION= 1.0 +PORTREVISION= 1 CATEGORIES= textproc MASTER_SITES= http://www.tei-c.org/Lite/DTD/ PKGNAMESUFFIX= -xlite @@ -17,21 +18,27 @@ MAINTAINER= henrik.motakef@web.de COMMENT= XML version of the TEI-Lite DTD -RUN_DEPENDS= ${MKCATALOG}:${PORTSDIR}/textproc/mkcatalog +RUN_DEPENDS= ${XMLCATMGR}:${PORTSDIR}/textproc/xmlcatmgr NO_BUILD= yes -PLIST_SUB= MKCATALOG=${MKCATALOG} CATALOG=${CATALOG} +PLIST_SUB= XMLCATMGR=${XMLCATMGR} +PLIST_SUB+= DTDDIR=${INSTDIR} +PLIST_SUB+= CATALOG_PORTS_SGML=${CATALOG_PORTS_SGML} +PLIST_SUB+= CATALOG_PORTS_XML=${CATALOG_PORTS_XML} INSTDIR= ${PREFIX}/share/xml/tei/xlite -CATALOG= ${PREFIX}/share/xml/catalog -MKCATALOG= ${PREFIX}/sbin/mkcatalog +XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr +CATALOG_PORTS_SGML= ${PREFIX}/share/sgml/catalog.ports +CATALOG_PORTS_XML= ${PREFIX}/share/xml/catalog.ports do-install: @[ -d ${INSTDIR} ] || ${MKDIR} ${INSTDIR} @${INSTALL_DATA} ${DISTDIR}/teixlite.dtd ${INSTDIR} - @${SED} -e 's!%%INSTDIR%%!${INSTDIR}!' ${FILESDIR}/catalog \ - > ${INSTDIR}/catalog + @${INSTALL_DATA} ${FILESDIR}/catalog ${INSTDIR} + @${SED} -e 's!%%INSTDIR%%!${INSTDIR}!' ${FILESDIR}/catalog.xml \ + > ${INSTDIR}/catalog.xml post-install: - @${MKCATALOG} -q -c ${CATALOG} install ${PORTNAME}/xlite + ${XMLCATMGR} -sc ${CATALOG_PORTS_SGML} add CATALOG ${INSTDIR}/catalog + ${XMLCATMGR} -c ${CATALOG_PORTS_XML} add nextCatalog ${INSTDIR}/catalog.xml .include <bsd.port.mk> Index: tei-xlite/pkg-plist =================================================================== RCS file: /home/ncvs/ports/textproc/tei-xlite/pkg-plist,v retrieving revision 1.2 diff -d -u -I\$FreeBSD:.*\$ -I\$Id:.*\$ -I\$hrs:.*\$ -u -r1.2 pkg-plist --- tei-xlite/pkg-plist 14 Jan 2003 05:29:55 -0000 1.2 +++ tei-xlite/pkg-plist 27 Jun 2003 10:02:37 -0000 @@ -1,6 +1,9 @@ -@unexec %%MKCATALOG%% -q -c %%CATALOG%% deinstall tei/xlite share/xml/tei/xlite/teixlite.dtd +@unexec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% remove %%DTDDIR%%/catalog share/xml/tei/xlite/catalog -@exec %%MKCATALOG%% -q -c %%CATALOG%% install tei/xlite +@exec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% add CATALOG %%DTDDIR%%/catalog +@unexec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% remove %%DTDDIR%%/catalog.xml +share/xml/tei/xlite/catalog.xml +@exec %%XMLCATMGR%% -c %%CATALOG_PORTS_XML%% add nextCatalog %%DTDDIR%%/catalog.xml @dirrm share/xml/tei/xlite @unexec rmdir %D/share/xml/tei 2>/dev/null || true Index: tei-xlite/files/catalog =================================================================== RCS file: /home/ncvs/ports/textproc/tei-xlite/files/catalog,v retrieving revision 1.1 diff -d -u -I\$FreeBSD:.*\$ -I\$Id:.*\$ -I\$hrs:.*\$ -u -r1.1 catalog --- tei-xlite/files/catalog 3 Jan 2003 12:16:48 -0000 1.1 +++ tei-xlite/files/catalog 27 Jun 2003 10:06:35 -0000 @@ -1 +1 @@ -PUBLIC "-//TEI//DTD TEI Lite XML ver. 1//EN" "%%INSTDIR%%/teixlite.dtd" +PUBLIC "-//TEI//DTD TEI Lite XML ver. 1//EN" "teixlite.dtd" Index: tei-xlite/files/catalog.xml =================================================================== RCS file: tei-xlite/files/catalog.xml diff -N tei-xlite/files/catalog.xml --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ tei-xlite/files/catalog.xml 27 Jun 2003 10:00:35 -0000 @@ -0,0 +1,9 @@ +<?xml version="1.0"?> +<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" + "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd"> + +<!-- Created by xmlcatmgr-0.2 --> + +<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"> + <public publicId="-//TEI//DTD TEI Lite XML ver. 1//EN" uri="file://%%INSTDIR%%/teixlite.dtd" /> +</catalog> >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306271212.h5RCChYb003037>