docbook-xsl: update to 1.79.2.

This commit is contained in:
maxice8 2018-12-09 05:41:38 -02:00 committed by maxice8
parent a308e015e6
commit 8bcdf4d78f
2 changed files with 39 additions and 5 deletions

View file

@ -0,0 +1,33 @@
Description: use EXSLT "replace" function when available
A recursive implementation of string.subst is problematic,
long strings with many matches will cause stack overflows.
Author: Peter De Wachter <pdewacht@gmail.com>
Bug-Debian: https://bugs.debian.org/750593
--- lib/lib.xsl
+++ lib/lib.xsl
@@ -6,7 +6,11 @@
This module implements DTD-independent functions
- ******************************************************************** --><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ ******************************************************************** -->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:str="http://exslt.org/strings"
+ exclude-result-prefixes="str"
+ version="1.0">
<xsl:template name="dot.count">
<!-- Returns the number of "." characters in a string -->
@@ -52,6 +56,9 @@
<xsl:param name="replacement"/>
<xsl:choose>
+ <xsl:when test="function-available('str:replace')">
+ <xsl:value-of select="str:replace($string, string($target), string($replacement))"/>
+ </xsl:when>
<xsl:when test="contains($string, $target)">
<xsl:variable name="rest">
<xsl:call-template name="string.subst">

View file

@ -1,15 +1,16 @@
# Template file for 'docbook-xsl'
pkgname=docbook-xsl
version=1.79.1
revision=2
version=1.79.2
revision=1
noarch=yes
wrksrc="${pkgname}-nons-${version}"
depends="xmlcatmgr docbook-xml>=4.2"
short_desc="Docbook XSL modular stylesheet"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="MIT"
homepage="http://docbook.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/docbook/$pkgname-$version.tar.bz2"
checksum=725f452e12b296956e8bfb876ccece71eeecdd14b94f667f3ed9091761a4a968
homepage="https://docbook.org"
distfiles="https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F${version}/docbook-xsl-nons-${version}.tar.gz"
checksum=f89425b44e48aad24319a2f0d38e0cb6059fdc7dbaf31787c8346c748175ca8e
xml_entries="nextCatalog /usr/share/xsl/docbook/catalog.xml --"
do_install() {