mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-25 20:19:18 -05:00
doc: Inherit md5.scm fix in custom 'guile-lib' variant.
* doc/build.scm (guile-lib/htmlprag-fixed)[source]: Remove. [arguments]: Add 'fix-htmlprag' phase.
This commit is contained in:
parent
58024d86e1
commit
e5b495c18f
1 changed files with 17 additions and 20 deletions
|
@ -182,30 +182,27 @@ (define guile-lib/htmlprag-fixed
|
||||||
;; Guile-Lib with a hotfix for (htmlprag).
|
;; Guile-Lib with a hotfix for (htmlprag).
|
||||||
(package
|
(package
|
||||||
(inherit guile-lib)
|
(inherit guile-lib)
|
||||||
(source (origin
|
|
||||||
(inherit (package-source guile-lib))
|
|
||||||
(modules '(( guix build utils)))
|
|
||||||
(snippet
|
|
||||||
'(begin
|
|
||||||
;; When parsing
|
|
||||||
;; "<body><blockquote><p>foo</p>\n</blockquote></body>",
|
|
||||||
;; 'html->shtml' would mistakenly close 'blockquote' right
|
|
||||||
;; before <p>. This patch removes 'p' from the
|
|
||||||
;; 'parent-constraints' alist to fix that.
|
|
||||||
(substitute* "src/htmlprag.scm"
|
|
||||||
(("^[[:blank:]]*\\(p[[:blank:]]+\\. \\(body td th\\)\\).*")
|
|
||||||
""))
|
|
||||||
#t))))
|
|
||||||
(arguments
|
(arguments
|
||||||
(substitute-keyword-arguments (package-arguments guile-lib)
|
(substitute-keyword-arguments (package-arguments guile-lib)
|
||||||
((#:phases phases '%standard-phases)
|
((#:phases phases '%standard-phases)
|
||||||
`(modify-phases ,phases
|
`(modify-phases ,phases
|
||||||
(add-before 'check 'skip-known-failure
|
(add-before 'build 'fix-htmlprag
|
||||||
(lambda _
|
(lambda _
|
||||||
;; XXX: The above change causes one test failure among
|
;; When parsing
|
||||||
;; the htmlprag tests.
|
;; "<body><blockquote><p>foo</p>\n</blockquote></body>",
|
||||||
(setenv "XFAIL_TESTS" "htmlprag.scm")
|
;; 'html->shtml' would mistakenly close 'blockquote' right
|
||||||
#t))))))))
|
;; before <p>. This patch removes 'p' from the
|
||||||
|
;; 'parent-constraints' alist to fix that.
|
||||||
|
(substitute* "src/htmlprag.scm"
|
||||||
|
(("^[[:blank:]]*\\(p[[:blank:]]+\\. \\(body td th\\)\\).*")
|
||||||
|
""))
|
||||||
|
#t))
|
||||||
|
(add-before 'check 'skip-known-failure
|
||||||
|
(lambda _
|
||||||
|
;; XXX: The above change causes one test failure among
|
||||||
|
;; the htmlprag tests.
|
||||||
|
(setenv "XFAIL_TESTS" "htmlprag.scm")
|
||||||
|
#t))))))))
|
||||||
|
|
||||||
(define* (syntax-highlighted-html input
|
(define* (syntax-highlighted-html input
|
||||||
#:key
|
#:key
|
||||||
|
|
Loading…
Reference in a new issue