docbook-xsl: update to 1.79.2.
This commit is contained in:
parent
a308e015e6
commit
8bcdf4d78f
2 changed files with 39 additions and 5 deletions
33
srcpkgs/docbook-xsl/patches/non-recursive_string_subst.patch
Normal file
33
srcpkgs/docbook-xsl/patches/non-recursive_string_subst.patch
Normal 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">
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,16 @@
|
||||||
# Template file for 'docbook-xsl'
|
# Template file for 'docbook-xsl'
|
||||||
pkgname=docbook-xsl
|
pkgname=docbook-xsl
|
||||||
version=1.79.1
|
version=1.79.2
|
||||||
revision=2
|
revision=1
|
||||||
noarch=yes
|
noarch=yes
|
||||||
|
wrksrc="${pkgname}-nons-${version}"
|
||||||
depends="xmlcatmgr docbook-xml>=4.2"
|
depends="xmlcatmgr docbook-xml>=4.2"
|
||||||
short_desc="Docbook XSL modular stylesheet"
|
short_desc="Docbook XSL modular stylesheet"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="http://docbook.sourceforge.net/"
|
homepage="https://docbook.org"
|
||||||
distfiles="${SOURCEFORGE_SITE}/docbook/$pkgname-$version.tar.bz2"
|
distfiles="https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F${version}/docbook-xsl-nons-${version}.tar.gz"
|
||||||
checksum=725f452e12b296956e8bfb876ccece71eeecdd14b94f667f3ed9091761a4a968
|
checksum=f89425b44e48aad24319a2f0d38e0cb6059fdc7dbaf31787c8346c748175ca8e
|
||||||
xml_entries="nextCatalog /usr/share/xsl/docbook/catalog.xml --"
|
xml_entries="nextCatalog /usr/share/xsl/docbook/catalog.xml --"
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue