Date: Fri, 27 Jun 2003 21:12:30 +0900 (JST) From: Hiroki Sato <hrs@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/53835: Switch to use xmlcatmgr: textproc/docbook-300 Message-ID: <200306271212.h5RCCUFP002238@alph.allbsd.org> Resent-Message-ID: <200306271220.h5RCKIJm049287@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 53835 >Category: ports >Synopsis: Switch to use xmlcatmgr: textproc/docbook-300 >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:18 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: docbook-300/Makefile =================================================================== RCS file: /home/ncvs/ports/textproc/docbook-300/Makefile,v retrieving revision 1.13 diff -d -u -I\$FreeBSD:.*\$ -I\$Id:.*\$ -I\$hrs:.*\$ -u -r1.13 Makefile --- docbook-300/Makefile 7 Mar 2003 06:11:38 -0000 1.13 +++ docbook-300/Makefile 27 Jun 2003 11:09:47 -0000 @@ -9,6 +9,7 @@ PORTNAME= docbook PORTVERSION= 3.0 +PORTREVISION= 1 CATEGORIES= textproc MASTER_SITES= ftp://ftp.ora.com/pub/davenport/ DISTFILES= docbk30.tar.Z @@ -17,32 +18,35 @@ COMMENT= V3.0 of the DocBook DTD, designed for technical documentation RUN_DEPENDS= ${ISOCAT}:${PORTSDIR}/textproc/iso8879 \ - ${MKCATALOG}:${PORTSDIR}/textproc/mkcatalog + ${XMLCATMGR}:${PORTSDIR}/textproc/xmlcatmgr NO_MTREE= yes EXTRACT_ONLY= # empty NO_BUILD= yes NO_WRKSUBDIR= yes -PLIST_SUB= DTD_NAME=${PORTNAME} DTD_VERSION=${PORTVERSION} \ - MKCATALOG=${MKCATALOG} +PLIST_SUB= DTD_NAME=${PORTNAME} +PLIST_SUB+= DTD_VERSION=${PORTVERSION} +PLIST_SUB+= XMLCATMGR=${XMLCATMGR} +PLIST_SUB+= CATALOG_PORTS_SGML=${CATALOG_PORTS_SGML} INSTDIR= ${PREFIX}/share/sgml/docbook ISOCAT= ${PREFIX}/share/sgml/iso8879/catalog -MKCATALOG= ${PREFIX}/sbin/mkcatalog +XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr +CATALOG_PORTS_SGML= ${PREFIX}/share/sgml/catalog.ports -LATEST_LINK= docbook-300 +LATEST_LINK= docbook-${PORTVERSION} pre-install: - @[ -d ${INSTDIR}/3.0 ] || ${MKDIR} ${INSTDIR}/3.0 + @[ -d ${INSTDIR}/${PORTVERSION} ] || ${MKDIR} ${INSTDIR}/${PORTVERSION} do-install: - @zcat ${DISTDIR}/docbk30.tar.Z |(cd ${INSTDIR}/3.0; pax -r) - @${INSTALL_DATA} ${FILESDIR}/catalog ${INSTDIR}/3.0/catalog - @${ECHO_CMD} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/3.0/catalog - @${CHMOD} ${SHAREMODE} ${INSTDIR}/3.0/* + @zcat ${DISTDIR}/docbk30.tar.Z |(cd ${INSTDIR}/${PORTVERSION}; pax -r) + @${INSTALL_DATA} ${FILESDIR}/catalog ${INSTDIR}/${PORTVERSION}/catalog + @${ECHO_CMD} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/${PORTVERSION}/catalog + @${CHMOD} ${SHAREMODE} ${INSTDIR}/${PORTVERSION}/* @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${INSTDIR} post-install: - @${MKCATALOG} -q install ${PORTNAME}/${PORTVERSION} + @${XMLCATMGR} -sc ${CATALOG_PORTS_SGML} add CATALOG ${PORTNAME}/${PORTVERSION}/catalog .include <bsd.port.mk> Index: docbook-300/pkg-plist =================================================================== RCS file: /home/ncvs/ports/textproc/docbook-300/pkg-plist,v retrieving revision 1.3 diff -d -u -I\$FreeBSD:.*\$ -I\$Id:.*\$ -I\$hrs:.*\$ -u -r1.3 pkg-plist --- docbook-300/pkg-plist 27 Oct 2000 15:27:51 -0000 1.3 +++ docbook-300/pkg-plist 27 Jun 2003 09:03:55 -0000 @@ -8,8 +8,8 @@ share/sgml/docbook/3.0/docbook.cat share/sgml/docbook/3.0/docbook.dcl share/sgml/docbook/3.0/docbook.dtd -@unexec %%MKCATALOG%% -q deinstall %%DTD_NAME%%/%%DTD_VERSION%% +@unexec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% remove %%DTD_NAME%%/%%DTD_VERSION%%/catalog share/sgml/docbook/3.0/catalog -@exec %%MKCATALOG%% -q install %%DTD_NAME%%/%%DTD_VERSION%% +@exec %%XMLCATMGR%% -sc %%CATALOG_PORTS_SGML%% add %%DTD_NAME%%/%%DTD_VERSION%%/catalog @dirrm share/sgml/docbook/3.0 @unexec rmdir %D/share/sgml/docbook 2>/dev/null || true >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306271212.h5RCCUFP002238>