summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim@guixotic.coop>2025-10-03 12:23:07 +0900
committerMaxim Cournoyer <maxim@guixotic.coop>2025-10-03 12:23:07 +0900
commitf9323c458500432ee38ff7fa0382c1571fc12268 (patch)
treedfe0fe6bcfbae53790bf4cd32a85fde7b0c9630d /gnu
parent7e5d0624f31c1cd130d1838914be0bfa63ef5df7 (diff)
gnu: perl-xml-libxslt: Update to 2.003000.
* gnu/packages/xml.scm (perl-xml-libxslt): Update to 2.003000. [source] {patches}: Delete. [#:phases]: New argument. [inputs]: Replace libxml2 with libxml2-2.11, for the test suite to pass. Change-Id: I850e9bec260bfd527372509bbe8eaa30883840a3
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/xml.scm27
1 files changed, 19 insertions, 8 deletions
diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index e587fcaa0d6..b2665e51ae5 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -697,7 +697,7 @@ XML parser and the high performance DOM implementation.")
(define-public perl-xml-libxslt
(package
(name "perl-xml-libxslt")
- (version "1.96")
+ (version "2.003000")
(source
(origin
(method url-fetch)
@@ -705,14 +705,25 @@ XML parser and the high performance DOM implementation.")
"XML-LibXSLT-" version ".tar.gz"))
(sha256
(base32
- "0wyl8klgr65j8y8fzgwz9jlvfjwvxazna8j3dg9gksd2v973fpia"))
- ;; Remove patch with update to version 2.003000.
- (patches (search-patches "perl-xml-libxslt-fix-configure.patch"))))
+ "11s5spf0x5h6qzajfsza28m62z50cilcpvl4iffyafzmfbp5makw"))))
(build-system perl-build-system)
- (inputs
- (list libxslt))
- (propagated-inputs
- (list perl-xml-libxml))
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'extend-INCLUDE_PATH
+ ;; This hack is because the build system does not appear to use
+ ;; the pkg-config Cflags, and expects the libxml2 headers to be
+ ;; directly available from the FHS location (or C_INCLUDE_PATH),
+ ;; but they are nested under a libxml2 subdirectory.
+ (lambda* (#:key inputs #:allow-other-keys)
+ (setenv "C_INCLUDE_PATH"
+ (string-append
+ (getenv "C_INCLUDE_PATH")
+ ":" (search-input-directory inputs
+ "include/libxml2"))))))))
+ (inputs (list libxml2-2.11 libxslt))
+ (propagated-inputs (list perl-xml-libxml))
(home-page "https://metacpan.org/release/XML-LibXSLT")
(synopsis "Perl bindings to GNOME libxslt library")
(description "This Perl module is an interface to the GNOME project's