- Add namespace-aware DocBook XSLT stylesheets

This commit is contained in:
Gabor Kovesdan 2013-05-29 19:00:34 +00:00
parent b179b768b4
commit 0561da0d0b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=319387
5 changed files with 3293 additions and 0 deletions

View file

@ -131,6 +131,7 @@
SUBDIR += docbook-xml-450
SUBDIR += docbook-xsd
SUBDIR += docbook-xsl
SUBDIR += docbook-xsl-ns
SUBDIR += docbook2X
SUBDIR += docbookide.el
SUBDIR += docdiff

View file

@ -0,0 +1,74 @@
# $FreeBSD$
PORTNAME= docbook-xsl-ns
PORTVERSION= 1.78.1
CATEGORIES= textproc
MASTER_SITES= SF/docbook/${PORTNAME}/${PORTVERSION}:src \
SF/docbook/docbook-xsl-doc/${PORTVERSION}:doc
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:src
MAINTAINER= gabor@FreeBSD.org
COMMENT= Namespace-aware DocBook XSLT stylesheets
BUILD_DEPENDS= xmlcatmgr:${PORTSDIR}/textproc/xmlcatmgr
RUN_DEPENDS= docbook>=0:${PORTSDIR}/textproc/docbook \
xmlcatmgr:${PORTSDIR}/textproc/xmlcatmgr
USE_BZIP2= yes
NO_BUILD= yes
INSTDIR= share/xsl/docbook-ns
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
DOCSRC= ${WRKDIR}/docbook-xsl-${PORTVERSION}
SUB_FILES= pkg-install pkg-deinstall
SUB_LIST+= INSTDIR="${INSTDIR}" \
XMLCATMGR="${XMLCATMGR}" \
CATALOG_PORTS="${LOCALBASE}/share/xml/catalog.ports"
XMLCATMGR= ${LOCALBASE}/bin/xmlcatmgr
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
DISTFILES+= docbook-xsl-doc-${PORTVERSION}${EXTRACT_SUFX}:doc
.endif
post-extract:
${FIND} ${WRKSRC} \( -name '.*' -or -name '*.sh' -or -name '*.LOG' \) -delete
${FIND} ${WRKSRC}/extensions -type d -mindepth 1 -maxdepth 1 -print0 |\
${XARGS} -0 ${RM} -rf
do-install:
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
cd ${DOCSRC}/doc && \
${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \; && \
${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
.endif
${MKDIR} ${PREFIX}/${INSTDIR}
cd ${WRKSRC} && \
${FIND} . -type d -exec ${MKDIR} ${PREFIX}/${INSTDIR}/{} \; && \
${FIND} . -type f -exec ${INSTALL_DATA} {} ${PREFIX}/${INSTDIR}/{} \;
post-install:
@${SETENV} PKG_PREFIX=${PREFIX} \
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
plist:
@cd ${WRKSRC} && \
${FIND} . -type f -exec echo ${INSTDIR}/{} \; | ${SED} 's|/./|/|g'
@${ECHO_CMD} ${INSTDIR}/catalog
@cd ${WRKSRC} && \
${FIND} . -type d -exec echo @dirrm ${INSTDIR}/{} \; | ${SED} 's|/./|/|g' | ${SORT} -r
@${ECHO_CMD} @dirrmtry ${INSTDIR}
@cd ${DOCSRC}/doc && \
${FIND} . -type f -exec echo %%PORTDOCS%%%%DOCSDIR%%/{} \; | ${SED} 's|/./|/|g'
@cd ${DOCSRC}/doc && \
${FIND} . -type d -exec echo %%PORTDOCS%%@dirrm %%DOCSDIR%%/{} \; | ${SED} 's|/./|/|g' | ${SORT} -r
@${ECHO_CMD} @dirrmtry ${DOCSDIR}
.include <bsd.port.mk>

View file

@ -0,0 +1,4 @@
SHA256 (docbook-xsl-ns-1.78.1.tar.bz2) = cf8ede7284d7f825c24b95ea273551439c55e9af9a4209ac89e3a7d915607af4
SIZE (docbook-xsl-ns-1.78.1.tar.bz2) = 5004236
SHA256 (docbook-xsl-doc-1.78.1.tar.bz2) = cea88089e88a5b01554b123d1d89278763eab4e8e42974853a112a54bb76905d
SIZE (docbook-xsl-doc-1.78.1.tar.bz2) = 1022536

View file

@ -0,0 +1,4 @@
These are namespace-aware XSLT stylesheets for the DocBook DTD and its
derivatives (Simplified DocBook, etc.).
WWW: http://docbook.sourceforge.net/projects/xsl/

File diff suppressed because it is too large Load diff