diff options
author | kuriyama <kuriyama@FreeBSD.org> | 2003-07-01 14:21:09 +0800 |
---|---|---|
committer | kuriyama <kuriyama@FreeBSD.org> | 2003-07-01 14:21:09 +0800 |
commit | 450fec8db3e9eb0d8c8809de0f930ae71f924516 (patch) | |
tree | 65732c72a7497c02275f6c7b1e1555bd342a0e29 /textproc/tei-xlite | |
parent | 01e8c93ae718c09798243b52145ad64a7b7a5a65 (diff) | |
download | freebsd-ports-gnome-450fec8db3e9eb0d8c8809de0f930ae71f924516.tar.gz freebsd-ports-gnome-450fec8db3e9eb0d8c8809de0f930ae71f924516.tar.zst freebsd-ports-gnome-450fec8db3e9eb0d8c8809de0f930ae71f924516.zip |
Switch to using xmlcatmgr from mkcatalog.
# Maintainers, please let me know if I break something in your port.
Submitted by: hrs
PR: ports/53819, ports/53820, ports/53821, ports/53822,
ports/53823, ports/53824, ports/53825, ports/53826,
ports/53827, ports/53828, ports/53829, ports/53830,
ports/53831, ports/53832, ports/53833, ports/53834,
ports/53835, ports/53836, ports/53837
Diffstat (limited to 'textproc/tei-xlite')
-rw-r--r-- | textproc/tei-xlite/Makefile | 21 | ||||
-rw-r--r-- | textproc/tei-xlite/files/catalog | 2 | ||||
-rw-r--r-- | textproc/tei-xlite/files/catalog.xml | 9 | ||||
-rw-r--r-- | textproc/tei-xlite/pkg-plist | 7 |
4 files changed, 29 insertions, 10 deletions
diff --git a/textproc/tei-xlite/Makefile b/textproc/tei-xlite/Makefile index 65704b8e79ae..f8885fd0fc8c 100644 --- a/textproc/tei-xlite/Makefile +++ b/textproc/tei-xlite/Makefile @@ -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 @@ EXTRACT_ONLY= # Empty 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> diff --git a/textproc/tei-xlite/files/catalog b/textproc/tei-xlite/files/catalog index f761017481c1..1445e115f797 100644 --- a/textproc/tei-xlite/files/catalog +++ b/textproc/tei-xlite/files/catalog @@ -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" diff --git a/textproc/tei-xlite/files/catalog.xml b/textproc/tei-xlite/files/catalog.xml new file mode 100644 index 000000000000..b4d7c76e7aab --- /dev/null +++ b/textproc/tei-xlite/files/catalog.xml @@ -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> diff --git a/textproc/tei-xlite/pkg-plist b/textproc/tei-xlite/pkg-plist index 900e6070cbf7..0b4940b0696e 100644 --- a/textproc/tei-xlite/pkg-plist +++ b/textproc/tei-xlite/pkg-plist @@ -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 |