Skip to content

Commit

Permalink
docbook-xsl-ns: update to 1.79.2
Browse files Browse the repository at this point in the history
Add patch for compatibility with 1.79.1.
  • Loading branch information
CameronNemo authored and Piraty committed Sep 23, 2020
1 parent f2c7daa commit db553c4
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 5 deletions.
22 changes: 22 additions & 0 deletions srcpkgs/docbook-xsl-ns/patches/catalog-compat.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
From: Boyuan Yang <byang@debian.org>
Date: Tue, 2 Jun 2020 22:11:52 -0400
Subject: catalog.xml: Compatibility with 1.79.1 or earlier

The docbook-xsl project changed the canonical URI since 1.79.2.
Besides changes made in debian/*.xmlcatalogs files, this patch
completes the support of the old URI so that existing software
does not break with changed registered URI.

Forwarded: not-needed
Last-Update: 2020-06-02

--- catalog.xml
+++ catalog.xml
@@ -5,4 +5,7 @@
<rewriteSystem systemIdStartString="http://cdn.docbook.org/release/xsl/current/" rewritePrefix="./"/>
<rewriteURI uriStartString="http://cdn.docbook.org/release/xsl/1.79.2/" rewritePrefix="./"/>
<rewriteSystem systemIdStartString="http://cdn.docbook.org/release/xsl/1.79.2/" rewritePrefix="./"/>
+ <!-- Also support old URI of v1.79.1 or earlier -->
+ <rewriteURI uriStartString="http://docbook.sourceforge.net/release/xsl-ns/current/" rewritePrefix="./"/>
+ <rewriteSystem systemIdStartString="http://docbook.sourceforge.net/release/xsl-ns/current/" rewritePrefix="./"/>
</catalog>
11 changes: 6 additions & 5 deletions srcpkgs/docbook-xsl-ns/template
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# Template file for 'docbook-xsl-ns'
pkgname=docbook-xsl-ns
# keep in sync with docbook-xsl
version=1.79.1
version=1.79.2
revision=1
archs=noarch
# at v1.79.2, docbook-xsl-ns was renamed to just docbook-xsl
wrksrc="docbook-xsl-${version}"
depends="xmlcatmgr docbook-xml>=4.2"
short_desc="Docbook XSL modular stylesheet"
maintainer="Cameron Nemo <cnemo@tutanota.com>"
license="MIT"
homepage="http://docbook.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/docbook/${pkgname}-${version}.tar.bz2"
checksum=36ca9026e05b8985baebd61a23af8ded8e2cf71cc3163b673159c9d78a7b0f9c
homepage="https://docbook.org/"
distfiles="https://github.com/docbook/xslt10-stylesheets/releases/download/release/${version}/${wrksrc}.tar.bz2"
checksum=316524ea444e53208a2fb90eeb676af755da96e1417835ba5f5eb719c81fa371
xml_entries="nextCatalog /usr/share/xsl-ns/docbook/catalog.xml --"

do_install() {
Expand Down

0 comments on commit db553c4

Please sign in to comment.