gnu: libxslt: Allow cross-compilation.
* gnu/packages/xml.scm (libxslt)[arguments]: Rewrite using gexps. Add #:configure-flags.
This commit is contained in:
parent
0c425b8d18
commit
ef893df92a
1 changed files with 26 additions and 14 deletions
|
@ -335,20 +335,32 @@ formulas and hyperlinks to multiple worksheets in an Excel 2007+ XLSX file.")
|
||||||
(patches (search-patches "libxslt-generated-ids.patch"))))
|
(patches (search-patches "libxslt-generated-ids.patch"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases (modify-phases %standard-phases
|
(list #:phases
|
||||||
(add-before 'check 'disable-fuzz-tests
|
#~(modify-phases %standard-phases
|
||||||
(lambda _
|
(add-before 'check 'disable-fuzz-tests
|
||||||
;; Disable libFuzzer tests, because they require
|
(lambda _
|
||||||
;; instrumentation builds of libxml2 and libxslt.
|
;; Disable libFuzzer tests, because they require
|
||||||
(substitute* "tests/Makefile"
|
;; instrumentation builds of libxml2 and libxslt.
|
||||||
(("exslt plugins fuzz")
|
(substitute* "tests/Makefile"
|
||||||
"exslt plugins"))
|
(("exslt plugins fuzz")
|
||||||
;; Also disable Python tests since they require
|
"exslt plugins"))
|
||||||
;; python-libxml2 which would introduce a
|
;; Also disable Python tests since they require
|
||||||
;; circular dependency.
|
;; python-libxml2 which would introduce a
|
||||||
(substitute* "python/Makefile"
|
;; circular dependency.
|
||||||
(("cd tests && \\$\\(MAKE\\) tests")
|
(substitute* "python/Makefile"
|
||||||
"$(info Python tests are disabled by Guix.)")))))))
|
(("cd tests && \\$\\(MAKE\\) tests")
|
||||||
|
"$(info Python tests are disabled by Guix.)")))))
|
||||||
|
#:configure-flags
|
||||||
|
(if (%current-target-system)
|
||||||
|
;; 'configure.ac' uses 'AM_PATH_PYTHON', which looks for
|
||||||
|
;; 'python' in $PATH, even though it's only used in the shebang
|
||||||
|
;; of examples. Thus, when cross-compiling, set 'PYTHON' so
|
||||||
|
;; that 'configure' doesn't search $PATH.
|
||||||
|
#~(list (string-append "PYTHON="
|
||||||
|
#$(this-package-input
|
||||||
|
"python-minimal-wrapper")
|
||||||
|
"/bin/python"))
|
||||||
|
#~'())))
|
||||||
(home-page "http://xmlsoft.org/XSLT/index.html")
|
(home-page "http://xmlsoft.org/XSLT/index.html")
|
||||||
(synopsis "C library for applying XSLT stylesheets to XML documents")
|
(synopsis "C library for applying XSLT stylesheets to XML documents")
|
||||||
(inputs
|
(inputs
|
||||||
|
|
Reference in a new issue