diff options
author | John Marino <marino@FreeBSD.org> | 2014-05-28 21:12:56 +0000 |
---|---|---|
committer | John Marino <marino@FreeBSD.org> | 2014-05-28 21:12:56 +0000 |
commit | 3067d29901cd5f4e74f8b071ed99bfe7e318bc16 (patch) | |
tree | fededf14ea374b0d96d33f0dc4cd4d2aba16d4a7 /textproc/sdocbook-xml/Makefile | |
parent | b5289d218d1d7f976ec79a313bbb9cc12032ae8c (diff) | |
download | ports-3067d29901cd5f4e74f8b071ed99bfe7e318bc16.tar.gz ports-3067d29901cd5f4e74f8b071ed99bfe7e318bc16.zip |
Notes
Diffstat (limited to 'textproc/sdocbook-xml/Makefile')
-rw-r--r-- | textproc/sdocbook-xml/Makefile | 33 |
1 files changed, 28 insertions, 5 deletions
diff --git a/textproc/sdocbook-xml/Makefile b/textproc/sdocbook-xml/Makefile index 06f3a368fa0f..33a579e38d94 100644 --- a/textproc/sdocbook-xml/Makefile +++ b/textproc/sdocbook-xml/Makefile @@ -5,18 +5,41 @@ PORTNAME= sdocbook-xml PORTVERSION= 1.1 PORTREVISION= 1 PORTEPOCH= 2 +CATEGORIES= textproc MASTER_SITES= http://www.oasis-open.org/docbook/xml/simple/${PORTVERSION}/ DISTNAME= docbook-simple-${PORTVERSION} MAINTAINER= gabor@FreeBSD.org COMMENT= "Simplified" DocBook XML DTD -NO_ISOCAT= yes -XML_DTD= yes -MANUAL_DOCS= yes +RUN_DEPENDS+= ${LOCALBASE}/${XMLCATMGR}:${PORTSDIR}/textproc/xmlcatmgr + +USES= zip +NO_MTREE= yes +NO_BUILD= yes + +XMLCATMGR= bin/xmlcatmgr +XMLCAT= share/xml/catalog.ports +SGMLCAT= share/sgml/catalog.ports CATALOG_FILES= catalog catalog.xml +DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}/${PORTVERSION} +DTD_NAME= sdocbook +DTD_VERSION= ${PORTVERSION} +DTD_SUBDIR= /dtd +DTDDIR= share/xml/${DTD_NAME}/${DTD_VERSION}${DTD_SUBDIR} +PLIST_SUB+= XMLCATMGR=${XMLCATMGR} SGMLCAT=${SGMLCAT} XMLCAT=${XMLCAT} \ + DTDDIR=${DTDDIR} +SUB_FILES= ${CATALOG_FILES} +SUB_LIST+= DTDDIR=${PREFIX}/${DTDDIR} +WRKSRC= ${WRKDIR} -DTD_NAME= ${PORTNAME:S/-xml//} +do-install: + @${MKDIR} ${STAGEDIR}${PREFIX}/${DTDDIR} + cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${DTDDIR} +.for f in ${CATALOG_FILES} + ${INSTALL_DATA} ${WRKDIR}/${f} ${STAGEDIR}${PREFIX}/${DTDDIR} +.endfor + @${ECHO_CMD} "@dirrm share/xml/${DTD_NAME}/${DTD_VERSION}" >> ${TMPPLIST} + @${ECHO_CMD} "@unexec rmdir %D/share/xml/${DTD_NAME} 2>/dev/null || :" >> ${TMPPLIST} -.include "../../textproc/docbook/bsd.docbook.mk" .include <bsd.port.mk> |