Archived
1
0
Fork 0

gnu: libxml++: Update to 5.0.2.

* gnu/packages/gnome.scm (libxml++): Update to 5.0.2.
[phases]: Use gexps.
{fix-documentation}: Use search-input-file.
[propagated-inputs]: Remove glibmm-2.64.
(libxml++-2): Update to 2.42.2.
[propagated-inputs]: Add glibmm-2.64.
This commit is contained in:
Maxim Cournoyer 2022-09-09 22:09:24 -04:00
parent 09da72fa0a
commit 69d87bccb9
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -8484,7 +8484,7 @@ the available networks and allows users to easily switch between them.")
(define-public libxml++ (define-public libxml++
(package (package
(name "libxml++") (name "libxml++")
(version "3.2.0") (version "5.0.2")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -8493,37 +8493,41 @@ the available networks and allows users to easily switch between them.")
(commit version))) (commit version)))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "0wjz591rjlgbah7dcq8i0yn0zw9d62b7g6r0pppx81ic0cx8n8ga")))) (base32 "13jlhz57yjxapplflm8aarczxv6ll3d336y1446mr5n4ylkcc1xz"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases #:phases
(add-after 'unpack 'fix-documentation #~(modify-phases %standard-phases
(lambda* (#:key inputs #:allow-other-keys) (add-after 'unpack 'fix-documentation
(let ((xmldoc (string-append (assoc-ref inputs "docbook-xml") (lambda* (#:key native-inputs inputs #:allow-other-keys)
"/xml/dtd/docbook")) (let* ((xsl-version #$(package-version docbook-xsl))
(xsldoc (string-append (assoc-ref inputs "docbook-xsl") (xsldoc (string-append "xml/xsl/docbook-xsl-"
"/xml/xsl/docbook-xsl-" xsl-version)))
,(package-version docbook-xsl)))) (substitute* '("examples/dom_xpath/example.xml"
(substitute* '("examples/dom_xpath/example.xml" "docs/manual/libxml++_without_code.xml")
"docs/manual/libxml++_without_code.xml") (("http://.*/docbookx\\.dtd")
(("http://.*/docbookx\\.dtd") (search-input-file (or native-inputs inputs)
(string-append xmldoc "/docbookx.dtd"))) "xml/dtd/docbook/docbookx.dtd")))
(setenv "SGML_CATALOG_FILES" (setenv "SGML_CATALOG_FILES"
(string-append xmldoc "/catalog.xml")) (search-input-file (or native-inputs inputs)
(substitute* "docs/manual/docbook-customisation.xsl" (string-append
(("http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl") xsldoc "/catalog.xml")))
(string-append xsldoc "/html/chunk.xsl"))))))))) (substitute* "docs/manual/docbook-customisation.xsl"
(("http://docbook.sourceforge.net/release/xsl\
/current/html/chunk.xsl")
(search-input-file (or native-inputs inputs)
(string-append xsldoc
"/html/chunk.xsl"))))))))))
(propagated-inputs (propagated-inputs
;; libxml++-3.0.pc refers to all these. (list libxml2)) ;required by .pc file
(list glibmm-2.64 libxml2))
(native-inputs (native-inputs
(list autoconf (list autoconf
automake automake
doxygen doxygen
docbook-xml docbook-xml
docbook-xsl docbook-xsl
graphviz ; for dot graphviz ;for dot
libtool libtool
libxslt libxslt
mm-common mm-common
@ -8542,7 +8546,7 @@ library.")
(package (package
(inherit libxml++) (inherit libxml++)
(name "libxml++") (name "libxml++")
(version "2.40.1") (version "2.42.2")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -8551,7 +8555,9 @@ library.")
(commit version))) (commit version)))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "0gbfi4l88w828gmyc9br11l003ylyi4vigp5d1kfgsn0k4cig3y9")))))) (base32 "05slsbhc25z7kwlc28ydl3dfyp7rgbmz1fxj9z6gcvpg3hkghj2m"))))
(propagated-inputs (modify-inputs (package-propagated-inputs libxml++)
(append glibmm-2.64)))))
(define-public gdm (define-public gdm
(package (package